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

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

Re: Return to Marker


From: Jesper Harder
Subject: Re: Return to Marker
Date: Thu, 30 Jan 2003 19:23:42 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu)

"CarlC" <carlc@snowbd.com> writes:

>           (beginning-of-buffer)

Don't use `beginning-of-buffer' in Lisp code, it'll cause the type of
problem you describe.  Use (goto-char (point-min)) instead.  The same
applies to `end-of-buffer'.

>           (previous-line 1)

You usually don't want `previous-line' in Lisp programs  -- use
(forward-line -1) instead.  Ditto for `next-line'.


reply via email to

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