GNU bug report logs -
#10381
24.0.92; delete-other-windows-vertically depends on the window split order
Previous Next
Reported by: sds <at> gnu.org
Date: Tue, 27 Dec 2011 21:35:01 UTC
Severity: normal
Tags: notabug
Found in version 24.0.92
Done: Glenn Morris <rgm <at> gnu.org>
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 10381 in the body.
You can then email your comments to 10381 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10381
; Package
emacs
.
(Tue, 27 Dec 2011 21:35:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
sds <at> gnu.org
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 27 Dec 2011 21:35:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In GNU Emacs 24.0.92.4 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2011-12-26 on t520sds
Windowing system distributor `The X.Org Foundation', version 11.0.11004000
configured using `configure '--with-wide-int''
`delete-other-windows-vertically' behavior depends on the order in which
the windows were created.
emacs -Q
C-x 3
C-x 2
C-x o
C-x o
C-x 2
there are now 4 windows like this:
-------
| | |
-------
| | |
-------
M-x delete-other-windows-vertically RET
now there are 3 windows like this:
-------
| | |
---| |
| | |
-------
which is correct.
Now, create the 4 windows in a different order:
emacs -Q
C-x 2
C-x 3
C-x o
C-x o
C-x 3
there are now 4 windows like this:
-------
| | |
-------
| | |
-------
M-x delete-other-windows-vertically RET
now there are 3 windows like this:
-------
| |
-------
| | |
-------
which is _WRONG_.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://thereligionofpeace.com http://jihadwatch.org http://truepeace.org
http://honestreporting.com http://openvotingconsortium.org http://camera.org
Those who can't write, write manuals.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10381
; Package
emacs
.
(Wed, 28 Dec 2011 09:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10381 <at> debbugs.gnu.org (full text, mbox):
> `delete-other-windows-vertically' behavior depends on the order in which
> the windows were created.
Yes.
> M-x delete-other-windows-vertically RET
>
> now there are 3 windows like this:
> -------
> | |
> -------
> | | |
> -------
>
> which is _WRONG_.
Why? Your doc-string says
Delete the windows in the same column with WINDOW, but not WINDOW itself.
That sentence is vague but doesn't contradict what the function does.
If you want the function do something different, I'd suggest reading
section 28.2 Windows and Frames of the Elisp manual first and make
yourself acquainted with internal windows. Then you will probably
understand that the behavior you apparently strive for cannot be
obtained when the first split of a frame's root window creates windows
one above the other.
martin
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10381
; Package
emacs
.
(Wed, 28 Dec 2011 17:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 10381 <at> debbugs.gnu.org (full text, mbox):
> * martin rudalics <ehqnyvpf <at> tzk.ng> [2011-12-28 10:50:23 +0100]:
>
>> `delete-other-windows-vertically' behavior depends on the order in which
>> the windows were created.
>
> Yes.
>
>> M-x delete-other-windows-vertically RET
>>
>> now there are 3 windows like this:
>> -------
>> | |
>> -------
>> | | |
>> -------
>>
>> which is _WRONG_.
>
> Why?
Because in this case delete-other-windows-vertically deletes windows
horizontally.
I would have understood if the function did _nothing_, but deleting
windows horizontally is clearly wrong.
> Your doc-string says
>
> Delete the windows in the same column with WINDOW, but not WINDOW itself.
>
> That sentence is vague but doesn't contradict what the function does.
this makes for a very unintuitive notion of a column.
> If you want the function do something different, I'd suggest reading
> section 28.2 Windows and Frames of the Elisp manual first and make
> yourself acquainted with internal windows. Then you will probably
> understand that the behavior you apparently strive for cannot be
> obtained when the first split of a frame's root window creates windows
> one above the other.
this is very unfortunate.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.PetitionOnline.com/tap12009/ http://memri.org http://dhimmi.com
http://pmw.org.il http://jihadwatch.org http://palestinefacts.org
A professor is someone who talks in someone else's sleep.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10381
; Package
emacs
.
(Wed, 28 Dec 2011 18:06:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 10381 <at> debbugs.gnu.org (full text, mbox):
> * martin rudalics <ehqnyvpf <at> tzk.ng> [2011-12-28 10:50:23 +0100]:
>
> If you want the function do something different, I'd suggest reading
> section 28.2 Windows and Frames of the Elisp manual first and make
C-h i runs the command info:
in Elisp manual:
28 Maintaining Large Programs
28.2 Change Logs
you probably meant
20.2 Splitting Windows
which does not speak about columns of windows.
> yourself acquainted with internal windows.
C-s in info does not find "internal w"
The bottom line is that there should be an easy way to merge two windows
which is one under the other, no matter what the history of their
creation was.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://memri.org http://mideasttruth.com http://honestreporting.com
http://jihadwatch.org http://pmw.org.il http://thereligionofpeace.com
Flying is not dangerous; crashing is.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10381
; Package
emacs
.
(Wed, 28 Dec 2011 18:38:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 10381 <at> debbugs.gnu.org (full text, mbox):
> Because in this case delete-other-windows-vertically deletes windows
> horizontally.
Really?
> I would have understood if the function did _nothing_, but deleting
> windows horizontally is clearly wrong.
If you want the function to do nothing in that case, you would have to
tell it do nothing. `window-combined-p' can help here.
>> Delete the windows in the same column with WINDOW, but not WINDOW itself.
>>
>> That sentence is vague but doesn't contradict what the function does.
>
> this makes for a very unintuitive notion of a column.
You probably should use the term "edge" instead of "column". Then you
would see that the function indeed deletes every window whose
corresponding edge has the same coordinate value as that of WINDOW.
>> Then you will probably
>> understand that the behavior you apparently strive for cannot be
>> obtained when the first split of a frame's root window creates windows
>> one above the other.
>
> this is very unfortunate.
... but deeply rooted in the way Emacs splits windows ever since.
martin
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10381
; Package
emacs
.
(Wed, 28 Dec 2011 18:38:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 10381 <at> debbugs.gnu.org (full text, mbox):
> C-h i runs the command info:
> in Elisp manual:
>
> 28 Maintaining Large Programs
> 28.2 Change Logs
If you read this your are in the Emacs manual. Elisp manual stands for
the "The Emacs Lisp Reference Manual".
martin
Added tag(s) notabug.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 08 Feb 2013 01:20:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
10381 <at> debbugs.gnu.org and sds <at> gnu.org
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 08 Feb 2013 01:20:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 08 Mar 2013 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 107 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.