all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates
@ 2019-03-04 16:25 Drew Adams
  2019-03-05 10:12 ` martin rudalics
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Drew Adams @ 2019-03-04 16:25 UTC (permalink / raw)
  To: 34749

There are several things wrong with `delete-windows-on', and several things that call for improvement.


1. The doc string should first of all completely describe the
interactive behavior and only secondarily describe the Lisp behavior
(completely).

In particular, this doc string should say explicitly what happens with a
prefix arg, including what happens with different kinds of raw prefix
arg (including, but not limited to, 0).

The doc string should also say that a prefix arg is ignored when the
condition of the last paragraph applies (dedicated window alone in
frame, with other frames existing), if that's true.

In general: Please fix the doc string to provide a correct and complete
description of the interactive behavior.


2. The doc string says that when FRAME is anything other than t,
`visible', 0, or a frame then all windows showing the buffer on any
frame are deleted.  But that's not the case:

emacs -Q

`C-h f delete-windows-on'

With window *Help* selected: `C-x 5 2', to display it also in another
frame.

With window *Help* in the original frame selected:
`C-u M-x delete-windows-on *Help*'

Only the *Help* window on the selected frame is deleted, not the one on
the separate frame.  But the doc says that FRAME, which is `(4)' should
cause all windows showing buffer *Help* to be deleted from all frames.

It seems like the interactive behavior is not correct, as well as being
poorly documented.  It's hard to know just what behavior was intended,
or what behavior would be best if (as it seems) we still need to design
this.


3. Why is `B' used in the interactive spec instead of `b'?  What's the
use case for deleting windows showing a nonexistent buffer?


4. The buffer candidates available for completion (which should also be
the only buffer names available for entry - see #3) should depend on
which frames are used, i.e., on the prefix arg or its absence.

You should be presented only with the names of buffers that are actually
shown in windows on the frames that you've chosen to consider for
window-deletion.

In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





^ permalink raw reply	[flat|nested] 28+ messages in thread
[parent not found: <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>]
[parent not found: <<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>]
[parent not found: <<<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>]

end of thread, other threads:[~2022-04-26 12:32 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-04 16:25 bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates Drew Adams
2019-03-05 10:12 ` martin rudalics
2019-03-08 10:29   ` Eli Zaretskii
2019-03-08 11:02     ` martin rudalics
2019-03-08 13:15       ` Eli Zaretskii
2019-03-08 18:52         ` martin rudalics
2019-03-08 19:45           ` Drew Adams
2019-03-09  8:39             ` martin rudalics
2019-03-09 16:37               ` Drew Adams
2019-03-08 19:58           ` Eli Zaretskii
2019-03-09  8:39             ` martin rudalics
2019-03-09 10:58               ` Eli Zaretskii
2019-03-09 13:16                 ` martin rudalics
2019-03-09 16:33                   ` Drew Adams
2019-03-09 16:46                     ` Eli Zaretskii
2019-03-10  8:46                     ` martin rudalics
2019-03-10  8:48                 ` martin rudalics
2019-03-08 10:27 ` Eli Zaretskii
2022-04-26 12:32 ` Lars Ingebrigtsen
     [not found] <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>
     [not found] ` <<83o96lacf8.fsf@gnu.org>
2019-03-08 16:34   ` Drew Adams
2019-03-08 17:00     ` Eli Zaretskii
     [not found] ` <<5C7E4BAB.3050508@gmx.at>
     [not found]   ` <<83mum5accd.fsf@gnu.org>
     [not found]     ` <<5C824BAC.4090907@gmx.at>
     [not found]       ` <<83lg1pa4oa.fsf@gnu.org>
     [not found]         ` <<5C82B9E1.1080302@gmx.at>
     [not found]           ` <<83zhq587g6.fsf@gnu.org>
     [not found]             ` <<5C837BD6.9010200@gmx.at>
     [not found]               ` <<83ef7g8gbc.fsf@gnu.org>
     [not found]                 ` <<5C83BC9B.5020803@gmx.at>
     [not found]                   ` <<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
     [not found]                     ` <<8336nw807g.fsf@gnu.org>
2019-03-09 17:35                       ` Drew Adams
2019-03-09 18:12                         ` Eli Zaretskii
     [not found] <<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>
     [not found] ` <<<83o96lacf8.fsf@gnu.org>
     [not found]   ` <<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>
     [not found]     ` <<83a7i59u85.fsf@gnu.org>
2019-03-08 17:14       ` Drew Adams
2019-03-08 18:58         ` Eli Zaretskii
     [not found] ` <<<5C7E4BAB.3050508@gmx.at>
     [not found]   ` <<<83mum5accd.fsf@gnu.org>
     [not found]     ` <<<5C824BAC.4090907@gmx.at>
     [not found]       ` <<<83lg1pa4oa.fsf@gnu.org>
     [not found]         ` <<<5C82B9E1.1080302@gmx.at>
     [not found]           ` <<<83zhq587g6.fsf@gnu.org>
     [not found]             ` <<<5C837BD6.9010200@gmx.at>
     [not found]               ` <<<83ef7g8gbc.fsf@gnu.org>
     [not found]                 ` <<<5C83BC9B.5020803@gmx.at>
     [not found]                   ` <<<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
     [not found]                     ` <<<8336nw807g.fsf@gnu.org>
     [not found]                       ` <<dd8e2b24-ab4a-4a4c-b9b8-9249f9ec035b@default>
     [not found]                         ` <<83sgvv7w99.fsf@gnu.org>
2019-03-09 22:32                           ` Drew Adams
     [not found] <<<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>
     [not found] ` <<<<83o96lacf8.fsf@gnu.org>
     [not found]   ` <<<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>
     [not found]     ` <<<83a7i59u85.fsf@gnu.org>
     [not found]       ` <<a1314708-0feb-4092-8b60-37d7282a328f@default>
     [not found]         ` <<834l8d9orm.fsf@gnu.org>
2019-03-08 19:48           ` Drew Adams
2019-03-08 20:14             ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.