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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9605 in the body.
You can then email your comments to 9605 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9605; Package emacs. (Mon, 26 Sep 2011 14:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 26 Sep 2011 14:30:03 GMT) Full text and rfc822 format available.

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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.90; initial point in *scratch* buffer
Date: Mon, 26 Sep 2011 23:28:13 +0900
When I start Emacs with the argument `-q' and type `q' the cursor
is put at the beginning of the *scratch* buffer.  But shouldn't it
be the end of the buffer?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9605; Package emacs. (Wed, 28 Sep 2011 17:21:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 9605 <at> debbugs.gnu.org
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Wed, 28 Sep 2011 13:19:35 -0400
Katsumi Yamaoka wrote:

> When I start Emacs with the argument `-q' and type `q' the cursor
> is put at the beginning of the *scratch* buffer.  But shouldn't it
> be the end of the buffer?

Yes it should. It goes to point-min because the *GNU Emacs* window has a
quit-restore parameter that looks like:

(other (#<buffer *scratch*> 1 1 33 ...

I don't know what is supposed to update this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9605; Package emacs. (Wed, 28 Sep 2011 17:28:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 9605 <at> debbugs.gnu.org
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Wed, 28 Sep 2011 13:26:38 -0400
I wonder if this summarizes the issue:

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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9605; Package emacs. (Wed, 28 Sep 2011 18:27:02 GMT) Full text and rfc822 format available.

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




Reply sent to martin rudalics <rudalics <at> gmx.at>:
You have taken responsibility. (Thu, 29 Sep 2011 08:25:02 GMT) Full text and rfc822 format available.

Notification sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
bug acknowledged by developer. (Thu, 29 Sep 2011 08:25:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: 9605-done <at> debbugs.gnu.org
Cc: Glenn Morris <rgm <at> gnu.org>, Katsumi Yamaoka <yamaoka <at> jpl.org>
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Thu, 29 Sep 2011 10:23:25 +0200
>> When I start Emacs with the argument `-q' and type `q' the cursor
>> is put at the beginning of the *scratch* buffer.  But shouldn't it
>> be the end of the buffer?
> 
> Yes it should. It goes to point-min because the *GNU Emacs* window has a
> quit-restore parameter that looks like:
> 
> (other (#<buffer *scratch*> 1 1 33 ...
> 
> I don't know what is supposed to update this.

Should be fixed now.  Please try again.

martin





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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Glenn Morris <rgm <at> gnu.org>, 9605-done <at> debbugs.gnu.org
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Thu, 29 Sep 2011 18:02:47 +0900
martin rudalics wrote:
> Should be fixed now.  Please try again.

Thanks!  Building Emacs on cygwin from scratch takes hours, so I
verified it in this way: load patched startup.elc and eval the form:
(progn (with-current-buffer "*scratch*" (erase-buffer)) (command-line-1 nil))




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

From: martin rudalics <rudalics <at> gmx.at>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9605-done <at> debbugs.gnu.org
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Fri, 30 Sep 2011 15:28:13 +0200
> Thanks!  Building Emacs on cygwin from scratch takes hours, so I
> verified it in this way: load patched startup.elc and eval the form:
> (progn (with-current-buffer "*scratch*" (erase-buffer)) (command-line-1 nil))

Unfortunately the fix introduced bug#9636 so I had to change this again.
Please try once more.

Sorry for the inconvenience, martin




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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Glenn Morris <rgm <at> gnu.org>, 9605-done <at> debbugs.gnu.org
Subject: Re: bug#9605: 24.0.90; initial point in *scratch* buffer
Date: Fri, 30 Sep 2011 22:54:34 +0900
martin rudalics <rudalics <at> gmx.at> wrote:
> Unfortunately the fix introduced bug#9636 so I had to change this again.
> Please try once more.

Works fine no matter what scroll-conservatively is.  Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 29 Oct 2011 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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