From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.bugs Subject: bug#40916: [PATCH] Add "p" and "n" convenience bindings to help-mode-map Date: Mon, 27 Apr 2020 20:26:33 -0400 Organization: GNU Message-ID: <87blnctpza.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128559"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 40916@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 02:27:13 2020 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 1jTE5g-000XHc-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 02:27:12 +0200 Original-Received: from localhost ([::1]:37210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTE5f-0005o8-1k for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 20:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTE5Y-0005nl-Cd for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:27:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTE5W-0001AK-PN for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:27:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTE5W-0001AB-DT for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTE5W-0001aB-8a for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Apr 2020 00:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40916 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15880335986040 (code B ref -1); Tue, 28 Apr 2020 00:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2020 00:26:38 +0000 Original-Received: from localhost ([127.0.0.1]:38426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTE57-0001ZM-Jy for submit@debbugs.gnu.org; Mon, 27 Apr 2020 20:26:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTE56-0001ZF-7c for submit@debbugs.gnu.org; Mon, 27 Apr 2020 20:26:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55198) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTE55-0005l5-L8 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:26:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48212) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTE55-00015J-CF for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:26:35 -0400 Original-Received: from [2607:fea8:3fe0:17d:3c6d:3db7:9fd3:f352] (port=44802 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jTE54-0004jx-AV for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 20:26:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:179191 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, The following binds "p" to backward-button, and "n" to forward-button in help-mode-map for more conveniently jumping between buttons in *Help* buffers. I have found myself constantly reaching for these in *Help* buffers after using helpful [0] for a while. [0]: https://github.com/Wilfred/helpful I thought about adding these to button-map itself, but that seemed like a more invasive change, and I wasn't sure about its side effects e.g. in non-read-only buffers. The patch is against emacs-27, since it's a trivial and hopefully completely harmless change. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Add-p-and-n-convenience-bindings-to-help-mode-map.patch Content-Transfer-Encoding: quoted-printable From=20efcca34ed0cab882318e2654dd667e31f6d32511 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 27 Apr 2020 20:06:55 -0400 Subject: [PATCH] Add "p" and "n" convenience bindings to help-mode-map * lisp/help-mode.el (help-mode-map): Bind "p" to backward-button, and "n" to forward-button for more conveniently jumping between buttons in *Help* buffers. =2D-- lisp/help-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/help-mode.el b/lisp/help-mode.el index bae8281147..0f8380255e 100644 =2D-- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -37,6 +37,8 @@ help-mode-map (let ((map (make-sparse-keymap))) (set-keymap-parent map (make-composed-keymap button-buffer-map special-mode-map)) + (define-key map "p" 'backward-button) + (define-key map "n" 'forward-button) (define-key map [mouse-2] 'help-follow-mouse) (define-key map "l" 'help-go-back) (define-key map "r" 'help-go-forward) =2D-=20 2.25.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl6neDkQHGJhbmRhbGlA Z251Lm9yZwAKCRCLRKDNx7lW8pZ2D/97YoHym/IQLjVctJMLIGXlcGOI3ychsl2r doJ+wz5aDJ7sV9I8LwjsPTgC/JiwyVQRgwfLUO8bTN+2tq0O4qZHR83frjnoag1C wMT5NuAsnVn1ET0XEo/7r8/Gvk5vsLOIqtPREI2EdFkiP1ja2j6jeJiGkroTdBsQ hvvgUBPdna6y4/fitH+nDHyrDoNg4U+48qpoS6FqAQ+F1EGt+bSRMD/HQb1uod2x UiuLCyfHhx2fZM9GyMSRqR/P58E4IPw2To+Yxw4Xq9Xl9kTU2smmKC+iS8CuJOGN u0SC+zHR76fzjaqAhQrSE3+N2282tKJl8b1Y8fFuyHs+HK9GIfQyqyyMGgMvIpKF WMZJcu+yT3U1fg22jdMSfNOKJ3gWE7lqJUJqj0neXy4xb073t2hGNh54WnxudvEf kboNyNVZ3I7b94n8z57j0Ym63trRWNDRzJST6RE4csnDFguhFL7jAWNj5PcKAGq4 xq9UkHO5E1J6EmihbJb7blHvlOu/TPm9etaeXNThZS23qDzRR9zFPU6kyt9BmQSD yZcRApiegiwfes14vaFim5PVhX/j0t1mWX126rCCS8Sp2ZrkCt0CE7YrmY13SsoP 8Csbtl6wfYQq2pkQKqUoSUd+NGCCmfPEmfhWTXTioOIdIf7LMEmHj8fHCzsD1Oqn 593uE3Ttgw== =JFb5 -----END PGP SIGNATURE----- --==-=-=--