From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64868: 29.1; C-x O binding suggestion for (other-window -1) Date: Wed, 02 Aug 2023 20:01:29 +0300 Message-ID: <83fs51z8d2.fsf@gnu.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> <202308021645.372GjZ84027586@sdf.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13556"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64868@debbugs.gnu.org To: Van Ly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 19:03:20 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 1qRFFn-0003Di-Ep for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 19:03:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRFEg-0000NG-JZ; Wed, 02 Aug 2023 13:02:10 -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 1qRFEY-0000Ma-Nl for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 13:02:05 -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 1qRFEY-0003TO-Fd for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 13:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRFEX-0005YT-Vd for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 13:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Aug 2023 17:02:01 +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.169099569321317 (code B ref 64868); Wed, 02 Aug 2023 17:02:01 +0000 Original-Received: (at 64868) by debbugs.gnu.org; 2 Aug 2023 17:01:33 +0000 Original-Received: from localhost ([127.0.0.1]:50085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRFE5-0005Xl-2B for submit@debbugs.gnu.org; Wed, 02 Aug 2023 13:01:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRFE0-0005XV-IF for 64868@debbugs.gnu.org; Wed, 02 Aug 2023 13:01:32 -0400 Original-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 ) id 1qRFDv-0003OU-9x; Wed, 02 Aug 2023 13:01:23 -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=2mlzDsiOa6YM+Oz3zcuIZXRXW0sXipTkMIDRw77ZAXw=; b=g0GLVZcsCRnY ngt6OfbZM66s1esEL1RCMn15XPc9xX6QFmOQBiAvNRXupkzOUGqkVD39ptPmno/77U6FAqcjWmcz5 /z1lChqNrJcS6BOjeHBrO2jik+KgLevR+wJ6iVmA1P/v0cM7RTFuJJC6r1hfRvML3MFBAFB2vLQJt ChZgHLZ4Fd1O0bS+jDf+u6AitQKriT5x6TK50s0fOZFNdDf/4A+9O0pxgx9P1cAPBVTCG75dvI/iz lMLS0EENmxlqMxQ5McP3frISVguOMa4N56L5Frmhoddcr55OFdfEWro0xX/ruZayndiZzrCk+nnt6 HUGvTA02LGi3Ob5hLlYK/g==; Original-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 ) id 1qRFDu-0000su-PF; Wed, 02 Aug 2023 13:01:23 -0400 In-Reply-To: <202308021645.372GjZ84027586@sdf.org> (message from Van Ly on Wed, 2 Aug 2023 16:45:35 GMT) 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:266527 Archived-At: > Date: Wed, 2 Aug 2023 16:45:35 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? Each mode has its own keymap. So no, that's not possible, by using just the key binding commands. > 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. That's not how such Emacs modes work. Having commands bound to self-inserting characters make it easy to invoke those commands.