[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 21:44:37 +0100 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu) |
"CarlC" <carlc@snowbd.com> writes:
> "Jesper Harder" <harder@myrealbox.com> wrote...
>>
>> Don't use `beginning-of-buffer' in Lisp code, it'll cause the type of
>> problem you describe. Use (goto-char (point-min)) instead.
>
> Thanks, Jesper. Problem solved. Seems like this is something that
> should be "fixed".
It isn't really a bug. It's just that some functions are designed as
user-level interactive commands -- they do more than you want when you
use them in a program.
You're not the first to hit this problem :-) and the docstring for
`beginning-of-buffer' does warn about it :
| Don't use this command in Lisp programs!
| (goto-char (point-min)) is faster and avoids clobbering the mark.