GNU bug report logs - #9605
24.0.90; initial point in *scratch* buffer

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Mon, 26 Sep 2011 14:30:03 UTC

Severity: normal

Found in version 24.0.90

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 9605 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Katsumi Yamaoka <yamaoka <at> jpl.org>, 9605 <at> debbugs.gnu.org
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Wed, 28 Sep 2011 20:25:35 +0200
> emacs -Q
>
> M-<   ; point at start of *scratch*
> C-x b foo
>
> In foo, insert and evaluate:
>
> (with-current-buffer "*scratch*"
>   (goto-char (point-max))
>   (insert "foo"))
>
> Then
>
> M-x quit-window
>
> In Emacs 23.3, point in *scratch* is now at point-max (after "foo").
> In Emacs 24.0.90, it is at point-min.

It's not easy to find a general solution for this.  Suppose you edit the
same buffer in two windows A and B, temporarily switch to another buffer
in window B, continue editing in window A, and eventually quit window B.
In this case you want point in window B be at the position it had before
you switched to another buffer in it.

In the case at hand we could call `kill-buffer' in `exit-splash-screen'.
But can't we do the insertion before or while the buffer is displayed?

martin




This bug report was last modified 13 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.