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#36767: 26.1; request: add more quick keys to the *Help* buffer Date: Fri, 18 Jun 2021 21:25:12 +0300 Message-ID: <83im2bxc6v.fsf@gnu.org> References: <87mtrrq7t7.fsf@gnus.org> <87eed0nsez.fsf@mail.linkov.net> <83bl83zp5h.fsf@gnu.org> <874kdv63ml.fsf@gmail.com> <8335tfzbfr.fsf@gnu.org> <87wnqrgs5k.fsf@gmx.net> <83o8c3xmdi.fsf@gnu.org> <87o8c3rwt8.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 36767@debbugs.gnu.org, rpluim@gmail.com, emacsuser@freemail.hu, larsi@gnus.org, juri@linkov.net To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 18 20:27:56 2021 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 1luJDf-00028v-0o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Jun 2021 20:27:55 +0200 Original-Received: from localhost ([::1]:36744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luJDd-0008P6-Vo for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Jun 2021 14:27:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luJBr-00046l-Vm for bug-gnu-emacs@gnu.org; Fri, 18 Jun 2021 14:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luJBq-0003ow-KV for bug-gnu-emacs@gnu.org; Fri, 18 Jun 2021 14:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1luJBq-0006Yz-GJ for bug-gnu-emacs@gnu.org; Fri, 18 Jun 2021 14:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Jun 2021 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36767 X-GNU-PR-Package: emacs Original-Received: via spool by 36767-submit@debbugs.gnu.org id=B36767.162404073125193 (code B ref 36767); Fri, 18 Jun 2021 18:26:02 +0000 Original-Received: (at 36767) by debbugs.gnu.org; 18 Jun 2021 18:25:31 +0000 Original-Received: from localhost ([127.0.0.1]:58175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luJBL-0006YH-Ch for submit@debbugs.gnu.org; Fri, 18 Jun 2021 14:25:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luJBJ-0006Y4-Pp for 36767@debbugs.gnu.org; Fri, 18 Jun 2021 14:25:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35280) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luJBC-0003S4-U4; Fri, 18 Jun 2021 14:25:22 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3053 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 1luJAv-0001NS-2O; Fri, 18 Jun 2021 14:25:22 -0400 In-Reply-To: <87o8c3rwt8.fsf@gmx.net> (message from Stephen Berman on Fri, 18 Jun 2021 18:02:54 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:208703 Archived-At: > From: Stephen Berman > Cc: rpluim@gmail.com, 36767@debbugs.gnu.org, larsi@gnus.org, > emacsuser@freemail.hu, juri@linkov.net > Date: Fri, 18 Jun 2021 18:02:54 +0200 > > > Thanks. But what I'd like to have is not a way of burying the Help > > window, because I frequently need to consult it for quite some time. > > What I'd like to have is a way of using its buttons without going to > > that other window first. For example, I'd love a command, bound to a > > key globally, that would display the source of the function in the > > same window as the Help window, then allow me to go back to the Help > > window. > > The command `help-view-source' that Lars recently added could probably > help here, with some tweaking. It calls > help-function-def--button-function, which calls pop-to-buffer with no > ACTION argument, which results in the source buffer being displayed a > different window than the *Help* buffer's window. So the first > adjustment would be to add an optional ACTION argument. As far a > returning from the source file to the *Help* buffer, the easiest way I > can think of to do that is if the source file is visited in View mode: > then `q' would bury its buffer, returning to *Help* (I think). Or would > that not satisfy your use case? I don't know, I'd have to try. But surely, we could devise other methods to get back to the Help buffer, ones that don't require View mode.