unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: Return to Marker
Date: Thu, 30 Jan 2003 21:44:37 +0100	[thread overview]
Message-ID: <m31y2u9xl6.fsf@defun.localdomain> (raw)
In-Reply-To: Bkf_9.2252$2y.93266@twister.austin.rr.com

"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.

  reply	other threads:[~2003-01-30 20:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-30 17:38 Return to Marker CarlC
2003-01-30 18:23 ` Jesper Harder
2003-01-30 19:48   ` CarlC
2003-01-30 20:44     ` Jesper Harder [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-30 20:35 Bingham, Jay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m31y2u9xl6.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).