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: Sat, 11 Sep 2021 10:35:56 +0200 Message-ID: <2444c393-7fb9-825b-4601-36027f653b4a@gmx.at> References: <87k4bovfd0.fsf@sophokles.streitblatt.de> <87eea09rwg.fsf@gnus.org> <878s05wxx8.fsf@mail.linkov.net> <87tuisras8.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="26083"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Florian Beck , 9054@debbugs.gnu.org To: Lars Ingebrigtsen , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 11 10:37:11 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 1mOyVb-0006fW-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 10:37:11 +0200 Original-Received: from localhost ([::1]:38148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOyVZ-0003Hq-V6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 04:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOyVS-0003He-TI for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 04:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOyVS-0003ZY-JC for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 04:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOyVS-0000Mi-FX for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 04:37: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: Sat, 11 Sep 2021 08:37: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.16313493691341 (code B ref 9054); Sat, 11 Sep 2021 08:37:02 +0000 Original-Received: (at 9054) by debbugs.gnu.org; 11 Sep 2021 08:36:09 +0000 Original-Received: from localhost ([127.0.0.1]:39519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOyUb-0000LY-3a for submit@debbugs.gnu.org; Sat, 11 Sep 2021 04:36:09 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:47521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOyUX-0000Kz-0v for 9054@debbugs.gnu.org; Sat, 11 Sep 2021 04:36:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631349358; bh=+Gbhy5e2vreXwUNSvKbnnmH5oTbj4Ij1bAyvwWcoxZY=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=GqFQ5TUPAbHWh/VQk6YVwIlVeCAY0/JQ3170zjb432Wz9Tyd8yOFJSGRCRw+cwE3u Qtmt2d5xFLL6xvzVu3rfn6uzFAPgOuuoQmDZ4Q9KVmpnGl7uxzSyMl7P+wm2m++jKb Q3CBjGewu7htDD3lucHYUattt2fDEO5dNbavVu9s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.115]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mf07E-1msGdI1dne-00gUuP; Sat, 11 Sep 2021 10:35:58 +0200 In-Reply-To: <87tuisras8.fsf@gnus.org> Content-Language: en-US X-Provags-ID: V03:K1:vadfrfJSDAgPdprdAuseeOSkz/nLXkVBCw/gEeaff4eI45OKD4R FEaKv0ZGZzUDRcNsoj/mEspUKb6xSUKXnNDH9jSxnLsE494LEclVky8Ne/1IKuJlo0Wf007 V0mKAyR0qT4JiDexh4eiWUnWe/sakpm1bnkIaMQD18iF3Qv31tasYXCjYvvq0UQ0XUtViNi VmejHs3J8gUCu+TVsbDrw== X-UI-Out-Filterresults: notjunk:1;V03:K0:yPMHRrCWvzw=:C3+cnaMGzKm9O2bgrYptsX LMNPoxa2l4EmHqqrUT0DjmBlEVPqCq7lB6Pr6SehdfpTXSa3kpmks/g+uiWxMRqVC+s2B7zD4 D25tHZqpAmYELOckrDXlrIEM72xbMfbYTO79bZEDez02ihMqJI6A6pFuC6487O8T3BjaGC+fc wjAppb6VW1vdL77w7tynMs1YHFu1XnPjR9dc+wgtsOKsfdOSWbTf43Al8J2k5B5RVxubzhm0V ES1ZcIJLbD4WuzWPaWNijWhgBAPwzE1QORW9++nNw1yfyx6aAFdErMxMOXZfkBIIW6Lg8t+WR z1ZA7LA1KYVzDJUqQ1BJeU4s6iA1R8r7najlKlCwWrVroWP/xrar0WN9Eth9NVuuw1kmSmtxL RJR31pdXv4sQZHpfqe63WqE/AM6VzVhMApkdQGXPYCOg04oJQ4NGLxQj60iNbM6zpLIQJi0YN i93otAXCGSMdeFQBpUBetS2P41gy+amxpKWX0NtukBds2foNh9fd9Aa7GHTdGcH6ddqkrUI2c tzqVPX6vJbwiF6AhfUW4Ux/4n8OlFmoAKfvY/V3X+a90tlHInBWSlIafYIV5XfWl8CndKwFhU CXQKnMDaSR4xE3GSrhg1qZe2DrEl5JKTCPjeY5NOFQv0JFhiS+gLdtr+HsRhrv310rNDLJjRO 8+RgcgDlez3KAgHZEx/KTyaKJzyFdCQSh2Ij3LwE4yr1eS4hSUMdGsQsXM/VQiy90ujcU7EKr E7lDwguUNhuU/npZanoLyCBHrTR+dovZaSHWuP/As9LX5rWIeK+uljdX1VFnupCuVB7TSW8f 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:214049 Archived-At: > Nice. It's a bit of a mouthful for users, though. It's a bit fragile as well. We have a `display-buffer' help-args text property at that position so everything seems in place already. But I would have to understand `help-function-def--button-function' first ... >> 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. Agreed. > Perhaps if we put the > `display-buffer-from-help-p' function into Emacs. I think we should specify something like a _general_ `display-buffer' text property that would specify the basic (aka historic) action (`pop-to-buffer' in the case at hand) here. Then have `display-buffer', before it does its `display-buffer-assq-regexp' job, look whether there "is a `display-buffer' text property around where the user just clicked or where point is" and perform a corresponding action based on whether `display-buffer-alist' has a "somehow specified" entry (not a regexp and not a function) for it and do either that or what the `display-buffer' text-property says. > `help-window-select' is (if you squint at it) the kinda-sorta user > option in the opposite direction, `help-window-select' is for users who want to get rid of the *Help* window by just typing "q" thus avoiding the "Type \"q\" in help window" excursion where they have to explicitly select the *Help* window just to quit it. > 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. Agreed. But we should decide whether we only want it for *Help* windows and what kind of additional semantics we should support, if any. martin