From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 19682@debbugs.gnu.org
Subject: bug#19682: 25.0.50; `other-window' doc string should say that by default it selects win in same frame
Date: Sun, 25 Jan 2015 15:40:08 -0800 (PST) [thread overview]
Message-ID: <1c4fcb28-17c3-48a6-81c2-c21376e5ac11@default> (raw)
In-Reply-To: <<83iofur7aj.fsf@gnu.org>>
> I don't see why this single details matters more than the others.
That is apparently, the problem here - you don't see it.
The answer to "Why?" is that this information is very useful and
yet not obvious. This is the primary use case for the command -
hence the chosen default behavior.
A user looking for a command that cycles among all windows in
the same frame will not necessarily understand, immediately upon
reading `C-h f other-window', that that is what this command does.
The only way for a user to discover that this is the case, by
default, is to read through the relatively esoteric and much
rarer use-case descriptions involving all of the following:
1. The `other-window' _window parameter_, something that is
not even mentioned in the Emacs manual (and rightfully so).
(It is of course mentioned in the Elisp manual, though you
will find that even there (node `Window Parameters') nothing
is really said about what that parameter is (!), what its
possible values are, or how it is used - another doc bug, IMO.
Nothing is really said in node `Window Parameters' about what
window parameters are, AFAICT.
The example of parameter `other-window' is typical here:
All that is said about it in `Window Parameters' is that
it "affects the execution of `other-window'" (really? how?).
The xref'd node (`Cyclic Window Ordering') and this node
just pass the ball back and forth without, either of them,
actually explaining anything.)
2. The (even rarer) possibility that window parameter
`other-window' can be a function. (Again, nothing is
said here or in the Elisp manual about where or how that
function is used.)
3. Non-option variable `ignore-window-parameters' (again,
something (rightfully) not even mentioned in the Emacs
manual).
4. Window parameter `no-other-window'. (Again,...)
After trying to understand all of that, our poor reader finally
gets to a reference to function `next-window' and its possible
arguments.
And after following that cross-reference and reading all about
parameters ALL-FRAMES and MINIBUF she will (hopefully) finally
grasp that command `other-window', by default, cycles among the
windows of the selected frame.
FWIW, the doc string from Emacs 20 was not deficient in this
regard, so this but is in fact a (minor) regression. In Emacs
20, `C-h f other-window' tells you this:
,----
| other-window is an interactive built-in function.
|
| Select the ARG'th different window on this frame.
^^^^^^^^^^^^^
| All windows on current frame are arranged in a cyclic order.
^^^^^^^^^^^^^^^^
| This command selects the window ARG steps away in that order.
| A negative ARG moves in the opposite order. If the optional
| second argument ALL_FRAMES is non-nil, cycle through all frames.
|
| (other-window ARG &optional ALL-FRAMES)
`----
That follows the usual (traditional) approach in Emacs: The
first line tells you about the default behavior. It does not
try to provide an overview of all possible behavior. And it
is fine if later sentences then qualify that initial
description, even contradicting it to some extent where it
might oversimplify.
Contrast that with the first sentence for Emacs 25:
"Select another window in cyclic ordering of windows."
That suggests that someone wanted the sentence to cover all,
or nearly all, possible behaviors. The result is that,
at least without some further statement about the default
behavior, users learn less than they should about the most
important thing to learn: the default behavior.
---
But it seems clear that there is little sense in continuing the
dialog. I don't think I can say anything more than I have to
persuade you, and you have apparently made up your mind not to
see further.
Thank you for anyway taking the time to think about it. I know
that you, too, are busy with other, and more important, things.
next parent reply other threads:[~2015-01-25 23:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<b0accd37-8912-4873-ad3c-2816b55cdaaa@default>
[not found] ` <<83iofur7aj.fsf@gnu.org>
2015-01-25 23:40 ` Drew Adams [this message]
2015-01-26 6:30 ` bug#19682: 25.0.50; `other-window' doc string should say that by default it selects win in same frame Eli Zaretskii
[not found] <<c78c5328-c0eb-4b91-afa1-2dbae2d03280@default>
[not found] ` <<83ppa2rbta.fsf@gnu.org>
2015-01-25 19:05 ` Drew Adams
2015-01-25 19:26 ` Eli Zaretskii
[not found] <<733fcda9-19ad-4096-aa8a-7f0f47062ac2@default>
[not found] ` <<83y4oqrgkv.fsf@gnu.org>
2015-01-25 17:12 ` Drew Adams
2015-01-25 17:48 ` Eli Zaretskii
2016-04-30 16:44 ` Lars Ingebrigtsen
2015-01-25 3:33 Drew Adams
2015-01-25 16:05 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1c4fcb28-17c3-48a6-81c2-c21376e5ac11@default \
--to=drew.adams@oracle.com \
--cc=19682@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).