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

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

RE: Return to Marker


From: Bingham, Jay
Subject: RE: Return to Marker
Date: Thu, 30 Jan 2003 14:35:49 -0600

On Thursday, January 30, 2003 1:49 PM CarlC wrote:


>"Jesper Harder" <harder@myrealbox.com> wrote in message
>news:m3d6mea441.fsf@defun.localdomain...
>> "CarlC" <carlc@snowbd.com> writes:
>>
>> 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'.
>>
>
>Thanks, Jesper. Problem solved. Seems like this is something that
should be
>"fixed".

Why do you want to fix something that is not broken?  The elisp manual
specifically and clearly states that beginning-of-buffer and
end-of-buffer were designed for interactive use and that the goto-char
construct is the proper way to move to the ends of the buffer in elsip
programs.  The reason for this is that the of-buffer functions "set the
mark and display messages in the echo area."  You can read all about it
in the "Motion to an End of the Buffer" section of the elisp manual at:
http://www.gnu.org/manual/elisp-manual-21-2.8/html_mono/elisp.html.

Regards,
-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Quality
Assurance
.    Austin, TX
. "Language is the apparel in which your thoughts parade in public.
.  Never clothe them in vulgar and shoddy attire."     -Dr. George W.
Crane-





reply via email to

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