GNU bug report logs -
#27717
other-window when there is no other window
Previous Next
Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Sat, 15 Jul 2017 21:38:04 UTC
Severity: wishlist
Tags: fixed
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.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 27717 in the body.
You can then email your comments to 27717 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#27717; Package
emacs.
(Sat, 15 Jul 2017 21:38:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Sat, 15 Jul 2017 21:38:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sun, 16 Jul 2017 08:29:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 27717 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sun, 16 Jul 2017 15:14:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 27717 <at> debbugs.gnu.org (full text, mbox):
>>>>> "mr" == martin rudalics <rudalics <at> gmx.at> writes:
mr> The documentation of ‘other-window’ contains the sentence "COUNT zero
mr> means do not skip any window, so select the selected window." which
mr> clearly indicates that "doing nothing" is a valid action in this case.
"In an interactive call, COUNT is the numeric prefix argument."
All I know is the user did C-x o, not C-u 0 C-x o.
So I would hope the program would distinguish the two.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sun, 16 Jul 2017 16:05:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 27717 <at> debbugs.gnu.org (full text, mbox):
> From: 積丹尼 Dan Jacobson
> <jidanni <at> jidanni.org>
> Date: Sun, 16 Jul 2017 23:13:33 +0800
> Cc: 27717 <at> debbugs.gnu.org
>
> "In an interactive call, COUNT is the numeric prefix argument."
>
> All I know is the user did C-x o, not C-u 0 C-x o.
>
> So I would hope the program would distinguish the two.
If your ring has exactly one slot, then going to the next will end up
right where you started. There's nothing odd about that, and no
special reason to signal an error or output a message. You can
instantly know what happened without any message.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sun, 16 Jul 2017 16:12:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 27717 <at> debbugs.gnu.org (full text, mbox):
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
EZ> If your ring has exactly one slot, then going to the next will end up
EZ> right where you started. There's nothing odd about that, and no
EZ> special reason to signal an error or output a message. You can
EZ> instantly know what happened without any message.
OK then don't print a message. But I hope you will implement my ideas
when the ring has more than one slot.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sun, 16 Jul 2017 19:14:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 27717 <at> debbugs.gnu.org (full text, mbox):
On 2017-07-15, at 21:48, 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> wrote:
> 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.
How about this
http://mbork.pl/2017-02-26_other-window-or-switch-buffer
and that
http://mbork.pl/2017-06-12_smart-next-window-or-buffer
?
Best,
--
Marcin Borkowski
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sun, 16 Jul 2017 23:33:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 27717 <at> debbugs.gnu.org (full text, mbox):
>>>>> "MB" == Marcin Borkowski <mbork <at> mbork.pl> writes:
MB> How about this
MB> http://mbork.pl/2017-02-26_other-window-or-switch-buffer
Something's wrong.
I tried to modify this from your blog post,
(defun other-window-or-switch-buffer ()
"Call `other-window' if more than one window is visible, switch
to next buffer otherwise."
(interactive)
(if (one-window-p)
(switch-to-buffer nil)
(other-window 1)))
(global-set-key "\C-xb" #'other-window-or-switch-buffer)
but there is something wrong with the ASCII or something.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Mon, 17 Jul 2017 07:04:03 GMT)
Full text and
rfc822 format available.
Message #26 received at 27717 <at> debbugs.gnu.org (full text, mbox):
> (global-set-key "\C-xb" #'other-window-or-switch-buffer)
>
> but there is something wrong with the ASCII or something.
Try adding a space to get "\C-x b".
martin
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Mon, 17 Jul 2017 08:20:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 27717 <at> debbugs.gnu.org (full text, mbox):
OK. I think this would be a great redefinition of C-x o:
(defun other-window-or-switch-buffer ()
"Call `other-window' if more than one window is visible, switch
to next buffer otherwise."
(interactive)
(if (one-window-p)
(switch-to-buffer nil)
(other-window 1)))
(global-set-key (kbd "C-x o") 'other-window-or-switch-buffer)
(I don't use frames. So don't know much about that part.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#27717; Package
emacs.
(Sat, 17 Aug 2019 23:38:01 GMT)
Full text and
rfc822 format available.
Message #32 received at 27717 <at> debbugs.gnu.org (full text, mbox):
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:
> 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!
This has been fixed on the trunk now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Sat, 17 Aug 2019 23:39:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
27717 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Sat, 17 Aug 2019 23:39:02 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.
(Sun, 15 Sep 2019 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.