From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Van Ly via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64868: 29.1; C-x O binding suggestion for (other-window -1) Date: Wed, 2 Aug 2023 16:45:35 GMT Message-ID: <202308021645.372GjZ84027586@sdf.org> References: <202307260646.36Q6kU0Q011468@sdf.org> <83v8e6oret.fsf@gnu.org> <202307261319.36QDJmW9005492@sdf.org> <83pm4eokc7.fsf@gnu.org> <202308021307.372D7gOS017787@sdf.org> <83leetzffg.fsf@gnu.org> Reply-To: Van Ly Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="437"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64868@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 18:46:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qREzJ-000ATA-QG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 18:46:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qREz6-0005Mm-JP; Wed, 02 Aug 2023 12:46:04 -0400 Original-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 ) id 1qREz4-0005MT-W4 for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 12:46:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qREz4-0007D1-G2 for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 12:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qREz4-00054T-Cq for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Van Ly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Aug 2023 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64868 X-GNU-PR-Package: emacs Original-Received: via spool by 64868-submit@debbugs.gnu.org id=B64868.169099474319444 (code B ref 64868); Wed, 02 Aug 2023 16:46:02 +0000 Original-Received: (at 64868) by debbugs.gnu.org; 2 Aug 2023 16:45:43 +0000 Original-Received: from localhost ([127.0.0.1]:50060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qREyl-00053Y-9F for submit@debbugs.gnu.org; Wed, 02 Aug 2023 12:45:43 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:56391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qREyh-00053O-2n for 64868@debbugs.gnu.org; Wed, 02 Aug 2023 12:45:41 -0400 Original-Received: from sdf.org (IDENT:van.ly@ryo.sdf.org [209.160.32.186]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 372Gja1K005360 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 2 Aug 2023 16:45:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sdf.org; s=sdf.org; t=1690994737; bh=8NgAbLJh6IRO78nNb95kQREleCBR+UA+ea7INh9rvpw=; h=Date:From:To:Cc:In-Reply-To:Subject:References; b=spGhN3Hxnm3HgVBnmm6kiW8qVnyEO3VRoz3RPQrfBSR5G8oL1hbf8tgufkeVO+11m YfJGTGiWmiyI0UQ4ApSqWryRjS+0F0unm6Vr8fbuAqEHBwDe9X0pLDQBghyPAMS1+v bUROEiZc+oe+SOV03Mi8jKV8WBycf6cNGfkdDqOk= Original-Received: (from van.ly@localhost) by sdf.org (8.16.1/8.12.8/Submit) id 372GjZ84027586; Wed, 2 Aug 2023 16:45:35 GMT In-Reply-To: <83leetzffg.fsf@gnu.org> (message from Eli Zaretskii on Wed, 02 Aug 2023 17:28:51 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266524 Archived-At: > Date: Wed, 02 Aug 2023 17:28:51 +0300 > From: Eli Zaretskii > Cc: 64868@debbugs.gnu.org > > > Date: Wed, 2 Aug 2023 13:07:42 GMT > > From: Van Ly > > Cc: 64868@debbugs.gnu.org > > > > Is there a way to overlay ``b'' in the read-only modes such as > > view-mode to function in the opposite direction to SPC. > > I don't understand what you mean by "overlay". The function in the > opposite direction of SPC is View-scroll-page-backward, so if you want > to bind it to some non-default key, you can (although it already has a > convenient binding to S-SPC). > As examples, in the occur-mode-hook and view-mode-hook I map "b" to scroll-down-command and View-scroll-line-backward. Can that be done once by grouping occur-mode and view-mode as members in a read-only mode for "b" to function that way to page in the opposite direction SPC would scroll? By overlay I mean how the meaning of keybindings are stacked. At bottom are the defaults. A user interface lets an overlapping set to stack above them, kind of how the visual themes work I imagine. > > The ``self-insert'' default for keys in read-only modes feels like a > > bug you step on, notice but don't squish by habit. > > I don't understand what you are trying to say here. What "self-insert > default" are you alluding to? Well, in view-mode there are many "self-insert-command" keys mapped such as "b" or "i" or "j". I expect the key bindings to self-insert-command in read-only modes to be unused.