From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#9054: 24.0.50; show source in other window Date: Wed, 8 Sep 2021 10:29:38 +0200 Message-ID: <7fedbe7c-33f8-d275-5b10-39b36137194a@gmx.at> References: <87k4bovfd0.fsf@sophokles.streitblatt.de> <87eea09rwg.fsf@gnus.org> <0dac16cd-9ae2-496e-7a44-9a7b8860e13a@gmx.at> <87zgso8ab0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Florian Beck , 9054@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 08 10:31:08 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 1mNsz4-0004ES-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 10:31:06 +0200 Original-Received: from localhost ([::1]:37626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNsz3-0005rY-HN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 04:31:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNsy3-0005QA-5F for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 04:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNsy2-0007j6-S5 for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 04:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNsy2-00073G-NW for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 04:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Sep 2021 08:30: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.163108978827058 (code B ref 9054); Wed, 08 Sep 2021 08:30:02 +0000 Original-Received: (at 9054) by debbugs.gnu.org; 8 Sep 2021 08:29:48 +0000 Original-Received: from localhost ([127.0.0.1]:58537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNsxo-00072M-6z for submit@debbugs.gnu.org; Wed, 08 Sep 2021 04:29:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:53513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNsxm-000725-U7 for 9054@debbugs.gnu.org; Wed, 08 Sep 2021 04:29:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631089780; bh=Lu+EvABR++AlnKT2kmMIaHFZim+wF0mtCu4SDxWxX0U=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=RA6nEvLyXB1p1/UtLz4lDlPvzmNSg1KgftJVYDBuvkDtlLj6w4aFk5X7eTjHHsSBN lxmeu2JSedeOEKUXZHWUKbfK3YbhUsZ/KBdNG3MViMwKAtzohwnaLVaJTrQJWa55Pj WehEEvmO/vFnHIwFpZIjb+iBUc9ON04rISydUHPI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.191]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MHoRK-1mCHZ41fJ0-00Ewr0; Wed, 08 Sep 2021 10:29:40 +0200 In-Reply-To: <87zgso8ab0.fsf@gnus.org> Content-Language: en-US X-Provags-ID: V03:K1:nkW+eCxZPseWvgXtdTAb/jtstHWJiURy5LlCpeehhGnJUWXpR99 ex7LrZzFnLk9GTR89wUWQc01kHPkOna6oMntDMhZVV8eaP0VvYRqcF8dARYK/ris6L+5eXM xjhL/GtlDrXIrKLDzLeLlijacy/i7FO5WaD1TfWphh22ObIhNseDWko2U/trJWL2YGFSbfA 8zvHNKoPaHpGQa9R3FSfg== X-UI-Out-Filterresults: notjunk:1;V03:K0:YzSz1nrdHkg=:aVO9nNGlIzgb/RM1GkJM3F vSZCAf1a5IWcC3KUJyO1MiMhKlfQiFiR3vRxN1Mg8j8telyPl1LDFIAVtIhUa+Wp3tiLvRS4F BygYn3Y9MthA9HYLrJ9yzCTleCZ/jM1lGBX6796nS0GNh8lZBEeHGiYC4iqifmyk4ouw+Zij2 YV48KPSvjYf5esa1sREeqSGJJE9FGAgIxKZMLyVbOk+XOqgwaD1RBLLF3Jxjs/hWJvgfwZ8bZ r1q7gL5twi9HhOwZdxC8bk8VPoMPpMPbMitU1uOmmtJsmdxATiK2XbaI9bhJCatZ5Hx0o056m bb10N8g0FSVyCcq4dwoCPKBnRQCvsNnPhM2u4Gro8yKTFWcJmxwapETSyTWmprp6mAJtlH5QF tUQf+wbfhSN9B+2i5/pV314S5ggujqnlHViqtewO++W2spPtYET/jjHRBkECAJd1OejH0KgoA /+MFMAFXMrGRPKgKWEDpMOeNAagACx4bEARMQIB2AFiAsg9emoK6Fhx8DVDphctx5/0gJ4Z+k bUJ5ojoVq4uwQi285gpOhCLGb+FvvdtfeUpbnsH2uF0ytvrgsPKqwhGe0fDxkmlzU0XGEyQkY kJ8V1lcoVEfo61z32xQ5JM0sOaWMBHrGtjgKKJIL2OqaV3MIxpY61hhXy5N1ug0SdyLKe84nG IYUc8tfThaw4lkNsAw/mROroYOS6jC0N3jXpa8pzQzfvDkYrjyZfOMW8rjO7nvfdH9NzVrNeJ iS99EU6tQzJQ78AbDeD/bBtKxc/MMy2aMhAh6vlwVrXhsy9T9FlKc8+mGAuDBjkClu24mCKm 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:213802 Archived-At: >>> Yes, it would be nice to allow displaying the source in the same window >>> as the *Help* buffer was displayed in. Martin, can this somehow be done >>> via `display-buffer-alist', or would we have to add a new user option >>> for `help-mode' for this? >> >> See the discussion of Bug#36767. > > Do you mean the help-link-follow patch you proposed there? I don't > think that's quite what the user wanted here -- we just want to make the > pop-to-buffer in help-function-def--button-function not pop to another > window, but just display in the current window. Both are about displaying the source in the same window. And since we cannot use `display-buffer-alist' here (we'd hardly be able to come up with a suitable regexp for any buffer that is referenced by *Help*) we do have to provide a suitable function for displaying the source anyway. But what I'd like to see first are the typical usage patterns (Eli gave one) that apply here. [Personally, I'm using a function bound to M- that tries to go to the source of any symbol or tag around point and I usually build up an entire chain of such calls to find the object I am really interested in. So I never have to follow a link from *Help* but instead follow the function or variable name cited at position 1 of the *Help* buffer via M-.] Are people usually done after they followed the link once or do they dig further - in that window? Do they want to return to the *Help* buffer after they found what they wanted (probably not) and/or do they want to restore the window configuration that existed before popping up *Help*. Eli, for example, wants to keep the *Help* window live - for some time at least, IIRC. As soon as we've established these patterns, we can provide a solution that fixes the `pop-to-buffer' in `help-function-def--button-function' and in a calling convention based on key combinations only. martin