unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Van Ly via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 64868@debbugs.gnu.org
Subject: bug#64868: 29.1; C-x O binding suggestion for (other-window -1)
Date: Wed, 26 Jul 2023 06:46:30 GMT	[thread overview]
Message-ID: <202307260646.36Q6kU0Q011468@sdf.org> (raw)


When there are three or more windows in a frame C-x o runs the command
other-window.  Wanting to goto the previous window the keybinding for
that is not obvious.  C-x p is a keymap prefix for project related work.

May I suggest to make possible the binding C-x O for (other-window -1)
as follows

(global-set-key 
 (kbd "C-x O") 
 #'(lambda ()
     "Previous window."
     (interactive)
     (other-window -1)))

Use case to demonstrate idea suggested

 1. run, emacs -Q -nw --color=no
 2. create three windows in one frame
 3. when wanting to goto the prev window, C-x o runs the command other-window that goes the long way around
 4. C-x O that runs the command (other-window -1) improves the life quality experience

The *Messages* buffer says

 C-x o (translated from C-x O) runs the command other-window

Similarly if C-j behaves like C-m in the dired buffer to run the command dired-find-file that feels better.





             reply	other threads:[~2023-07-26  6:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26  6:46 Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-07-26 11:15 ` bug#64868: 29.1; C-x O binding suggestion for (other-window -1) Eli Zaretskii
2023-07-26 13:19   ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-26 13:47     ` Eli Zaretskii
2023-08-02 13:07       ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 14:26         ` Drew Adams
2023-08-02 16:25           ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 16:45             ` Drew Adams
2023-08-03  2:42               ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 14:28         ` Eli Zaretskii
2023-08-02 16:45           ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 17:01             ` Eli Zaretskii
2023-07-26 14:37 ` Drew Adams
2023-08-02 21:00 ` Jim Porter

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=202307260646.36Q6kU0Q011468@sdf.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=64868@debbugs.gnu.org \
    --cc=van.ly@sdf.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).