help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looping cursor position in dired


From: Sebastian Luque
Subject: Re: looping cursor position in dired
Date: Thu, 17 Nov 2005 18:12:54 -0600
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

"rgb" <rbielaws@i1.net> wrote:

[...]

> Yes it would be a shame if you did something complicated;)

> (defadvice dired-next-line
> (before my-buff-wrap activate compile) "With wrapping"
> (when (eobp) (goto-char (point-min))))

> (defadvice dired-previous-line
> (before my-buff-wrap activate compile) "With wrapping"
> (when (bobp) (goto-char (point-max))))

Nice, thanks for both the solution and example of defadvice usage!


Thanks,

-- 
Sebastian P. Luque





reply via email to

[Prev in Thread] Current Thread [Next in Thread]