From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#9054: 24.0.50; show source in other window Date: Fri, 10 Sep 2021 12:21:27 +0200 Message-ID: <87tuisras8.fsf@gnus.org> References: <87k4bovfd0.fsf@sophokles.streitblatt.de> <87eea09rwg.fsf@gnus.org> <878s05wxx8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36366"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Florian Beck , 9054@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 10 12:22:12 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 1mOdfg-0009FN-7p for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Sep 2021 12:22:12 +0200 Original-Received: from localhost ([::1]:41750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOdfe-0007O1-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Sep 2021 06:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOdfY-0007Ne-I7 for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 06:22:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOdfW-0004zW-Cz for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 06:22:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOdfW-0007jI-4K for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 06:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 10:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 9054-submit@debbugs.gnu.org id=B9054.163126929929675 (code B ref 9054); Fri, 10 Sep 2021 10:22:02 +0000 Original-Received: (at 9054) by debbugs.gnu.org; 10 Sep 2021 10:21:39 +0000 Original-Received: from localhost ([127.0.0.1]:36915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOdf8-0007iY-RV for submit@debbugs.gnu.org; Fri, 10 Sep 2021 06:21:39 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:53050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOdf7-0007iI-1o for 9054@debbugs.gnu.org; Fri, 10 Sep 2021 06:21:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Pw78EN2PiE9qfyNDHlk1rL5AwZtURWt5giCdPwHT6gM=; b=AD0wNwNqYmRMYv6T4VeBxI9Izu eOQacyhGa7AQyJC893bFafOZigbeA3CzTBfVuXPmAbR3brG2ciq3/AhOlD4Zw9AglTrzqhIampEJ1 Ur5xL1/UWWl+V5ebXaUpDVxVc0ePxxQzhdm4JC4fR4a4I6nfQ6m1roMTM9YyjBu+fy0k=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOdey-0002bH-Aq; Fri, 10 Sep 2021 12:21:30 +0200 In-Reply-To: <878s05wxx8.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 09 Sep 2021 20:20:27 +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" Xref: news.gmane.io gmane.emacs.bugs:213977 Archived-At: Juri Linkov writes: > I use such customization: > > * Clicking a link from the =*Help*= buffer opens source code in the same window: > > #+begin_src emacs-lisp > (defun display-buffer-from-help-p (_buffer-name _action) > (unless current-prefix-arg > (with-current-buffer (window-buffer) > (derived-mode-p 'help-mode)))) > > (push '(display-buffer-from-help-p > display-buffer-same-window > (inhibit-same-window . nil)) > display-buffer-alist) > #+end_src > Nice. It's a bit of a mouthful for users, though. martin rudalics writes: >>> The question here is whether you want to follow that "chain of calls" in >>> the same window where *Help* appeared or in another one - by default the >>> one selected when you did C-h f. >> >> Yes, that would be my preference. > > Did you try Juri's proposal? I don't think we can expect users to do all that just to change the behaviour of these *Help* commands. Perhaps if we put the `display-buffer-from-help-p' function into Emacs. `help-window-select' is (if you squint at it) the kinda-sorta user option in the opposite direction, so perhaps the way forward here is to just define a new user option, or all a new value (`both'?) that affects how windows are selected from the *Help* window. I guess a new user option would be the simplest. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no