GNU bug report logs - #4812
23.1.50; delete-window move point to the wrong window

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Tue, 27 Oct 2009 08:35:04 UTC

Severity: normal

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 4812 in the body.
You can then email your comments to 4812 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4812; Package emacs. (Tue, 27 Oct 2009 08:35:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 27 Oct 2009 08:35:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; delete-window move point to the wrong window
Date: Tue, 27 Oct 2009 08:29:18 +0000
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

A frame is setup as follows with point in window 1.

    +------------------+----------+
    |                  |          |
    |        1         |     2    |
    |                  |          |
    |                  |          |
    |------------------+----------+
    |                  |          |
    |        4         |     3    |
    |                  |          |
    |                  |          |
    +------------------+----------+


Assume each window is displaying different buffers. If I move point to
window 4 and `M-x delete-window', the point is moved to window 2.

It seems to me it is more intuitive if the point is remained in the
window that is enlarged due to delete-window, in this case, window 1.


In GNU Emacs 23.1.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2009-09-22 on neutron.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

Leo



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4812; Package emacs. (Tue, 27 Oct 2009 09:55:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 27 Oct 2009 09:55:05 GMT) Full text and rfc822 format available.

Message #10 received at 4812 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Leo <sdl.web <at> gmail.com>, 4812 <at> debbugs.gnu.org
Subject: Re: bug#4812: 23.1.50; delete-window move point to the wrong window
Date: Tue, 27 Oct 2009 10:46:39 +0100
> A frame is setup as follows with point in window 1.
>
>     +------------------+----------+
>     |                  |          |
>     |        1         |     2    |
>     |                  |          |
>     |                  |          |
>     |------------------+----------+
>     |                  |          |
>     |        4         |     3    |
>     |                  |          |
>     |                  |          |
>     +------------------+----------+
>
>
> Assume each window is displaying different buffers. If I move point to
> window 4 and `M-x delete-window', the point is moved to window 2.

When describing window-layouts please alway describe the sequence of
events that got you there.  In the layout above it's not clear whether
the initial split was a horizontal one or a vertical one.

> It seems to me it is more intuitive if the point is remained in the
> window that is enlarged due to delete-window, in this case, window 1.

I suppose you refer to the case where window 4 is selected at the time
you delete it and want window 1 get selected thereafter.  `point' is
never changed by deleting windows.

The situation is not that simple, unfortunately.  In your first bug
report you talked about quitting the calc window.  In that case, I
suppose, you'd rather want to select the window that was selected at the
time you invoked calc (unless another window got selected in between).
So suppose you're in window 1, invoke calc which splits window 4, and
quit calc, you'd rather go back to window 1 instead of window 4.  But
you might have, in between, selected window 3 so quitting calc should
get you back to window 3.  Handling all possible scenarios (including
those that create/delete other windows in between) is tricky.

Also, note that in a configuration like

 -----------
|  1  |  2  |
|-----------|
|     3     |
 -----------

deleting window 3 will enlarge windows 1 and 2 so you still need another
strategy to decide which window should get selected.

martin



Reply sent to martin rudalics <rudalics <at> gmx.at>:
You have taken responsibility. (Mon, 05 Sep 2011 08:58:03 GMT) Full text and rfc822 format available.

Notification sent to Leo <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Mon, 05 Sep 2011 08:58:03 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: 4812-done <at> debbugs.gnu.org
Subject: Re: bug#4812: 23.1.50; delete-window move point to the wrong window
Date: Mon, 05 Sep 2011 10:53:38 +0200
> A frame is setup as follows with point in window 1.
> 
>     +------------------+----------+
>     |                  |          |
>     |        1         |     2    |
>     |                  |          |
>     |                  |          |
>     |------------------+----------+
>     |                  |          |
>     |        4         |     3    |
>     |                  |          |
>     |                  |          |
>     +------------------+----------+
> 
> 
> Assume each window is displaying different buffers. If I move point to
> window 4 and `M-x delete-window', the point is moved to window 2.
> 
> It seems to me it is more intuitive if the point is remained in the
> window that is enlarged due to delete-window, in this case, window 1.

Point now moves to the most recently selected window.

Closed, martin.





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

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

Previous Next


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