Received: (at 64868) by debbugs.gnu.org; 26 Jul 2023 11:14:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 26 07:14:28 2023 Received: from localhost ([127.0.0.1]:47635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qOcTM-0001t9-KI for submit <at> debbugs.gnu.org; Wed, 26 Jul 2023 07:14:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qOcTK-0001sw-Rw for 64868 <at> debbugs.gnu.org; Wed, 26 Jul 2023 07:14:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qOcTF-0006Vy-HB; Wed, 26 Jul 2023 07:14:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vgMpAA2g02VaCjCOnD+XQkanAqo9Xwx0wvAyKOkNi/A=; b=jGspYnpedc68 NhcVruP89p2RYGzTyqnf2GCr4vfEYy2iDkHiG5v4TcsZyrcXjmGiNyxr5ZEu4IVPO5KkSJfvLYHBK ZVECLUyII3ANo2ko+QG5+cpk3F+LjGjYUNM6w+rBDE/2yVZbTRq0LPT2V2ML/XzrAvFicTEhs7Aa2 oxmbb5pgybfWR0oVnr5vu6gmDUdSE9y0gF5KkIsZEnlCtyUDtvJTneE6id53iTytyID5XGIZS0kSK SPgg6DukYckvSCW4oICpdoAvOcCSEgIaiC7NiCEHjHiAwWynsg0izqe8BPJKQods8zxuyB+MVkc9V eJszx23LKZxbvsquyKDHuA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qOcTC-0001k6-R0; Wed, 26 Jul 2023 07:14:21 -0400 Date: Wed, 26 Jul 2023 14:15:06 +0300 Message-Id: <83v8e6oret.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Van Ly <van.ly@HIDDEN> In-Reply-To: <202307260646.36Q6kU0Q011468@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#64868: 29.1; C-x O binding suggestion for (other-window -1) References: <202307260646.36Q6kU0Q011468@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64868 Cc: 64868 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 26 Jul 2023 06:46:30 GMT > From: Van Ly via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > > 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. What's wrong with "C-- C-x o" (or "C-u - C-x o" if you are on a text-mode terminal)? > May I suggest to make possible the binding C-x O for (other-window -1) > as follows We don't have too many free key sequences, so "wasting" one on something that can be easily achieved via an existing binding is not a good idea, IMO. Of course, you can always make this binding in your own configuration. What I wrote above is about the default bindings -- I see no justification to change that.
bug-gnu-emacs@HIDDEN
:bug#64868
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 26 Jul 2023 06:47:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 26 02:47:02 2023 Received: from localhost ([127.0.0.1]:47457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qOYIY-0003B6-MS for submit <at> debbugs.gnu.org; Wed, 26 Jul 2023 02:47:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:52126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <van.ly@HIDDEN>) id 1qOYIW-0003Aa-Pu for submit <at> debbugs.gnu.org; Wed, 26 Jul 2023 02:47:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <van.ly@HIDDEN>) id 1qOYIR-0001xM-7t for bug-gnu-emacs@HIDDEN; Wed, 26 Jul 2023 02:46:55 -0400 Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <van.ly@HIDDEN>) id 1qOYIP-0000mY-FG for bug-gnu-emacs@HIDDEN; Wed, 26 Jul 2023 02:46:54 -0400 Received: from sdf.org (IDENT:van.ly@HIDDEN [209.160.32.186]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 36Q6kUf0017905 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 26 Jul 2023 06:46:41 GMT Received: (from van.ly@localhost) by sdf.org (8.16.1/8.12.8/Submit) id 36Q6kU0Q011468; Wed, 26 Jul 2023 06:46:30 GMT Date: Wed, 26 Jul 2023 06:46:30 GMT Message-Id: <202307260646.36Q6kU0Q011468@HIDDEN> From: Van Ly <van.ly@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 29.1; C-x O binding suggestion for (other-window -1) Received-SPF: pass client-ip=205.166.94.24; envelope-from=van.ly@HIDDEN; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.1 (/) 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.
Van Ly <van.ly@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#64868
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.