unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>, 27717@debbugs.gnu.org
Subject: bug#27717: other-window when there is no other window
Date: Sun, 16 Jul 2017 10:28:24 +0200	[thread overview]
Message-ID: <596B23A8.6080801@gmx.at> (raw)
In-Reply-To: <87efthjxb2.fsf@jidanni.org>

 > C-x o runs the command other-window.
 >
 > Alas, if there is no other window, it does nothing.
 >
 > It doesn't even print a message "no other window". BUG!
 >
 > Better yet in this case would be just switch to an other buffer (the
 > same buffer that switch-to-buffer asks the user about, but without
 > asking the user.)
 >
 > And only if there is also no other buffer, then print the message.

The documentation of ‘other-window’ contains the sentence "COUNT zero
means do not skip any window, so select the selected window."  which
clearly indicates that "doing nothing" is a valid action in this case.
C-x 5 o behaves in a similar way.

Admittedly, saying that ‘other-window’ does "Select another window in
cyclic ordering of windows." is misleading.

martin






  reply	other threads:[~2017-07-16  8:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-15 19:48 bug#27717: other-window when there is no other window 積丹尼 Dan Jacobson
2017-07-16  8:28 ` martin rudalics [this message]
2017-07-16 15:13 ` 積丹尼 Dan Jacobson
2017-07-16 16:04   ` Eli Zaretskii
2017-07-16 16:11 ` 積丹尼 Dan Jacobson
2017-07-16 19:13 ` Marcin Borkowski
2017-07-16 23:31 ` 積丹尼 Dan Jacobson
2017-07-17  7:03   ` martin rudalics
2017-07-17  8:18 ` 積丹尼 Dan Jacobson
2019-08-17 23:37 ` Lars Ingebrigtsen

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=596B23A8.6080801@gmx.at \
    --to=rudalics@gmx.at \
    --cc=27717@debbugs.gnu.org \
    --cc=jidanni@jidanni.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).