From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35487: Make visiting function from help-mode more customizable Date: Mon, 29 Apr 2019 22:54:34 +0300 Organization: LINKOV.NET Message-ID: <87sgu0wps5.fsf@mail.linkov.net> References: <20190429.213014.526232842075202623.tkk@misasa.okayama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204059"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35487@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 29 22:22:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLCnc-000qwY-Ou for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 22:22:52 +0200 Original-Received: from localhost ([127.0.0.1]:34826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLCnb-0004MN-P5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 16:22:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLClt-0003EJ-UB for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 16:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLCls-0003jQ-MS for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 16:21:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLCls-0003j4-2q for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 16:21:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLClr-0000lI-Tx for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 16:21:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Apr 2019 20:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35487 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35487-submit@debbugs.gnu.org id=B35487.15565692292817 (code B ref 35487); Mon, 29 Apr 2019 20:21:03 +0000 Original-Received: (at 35487) by debbugs.gnu.org; 29 Apr 2019 20:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:39884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLClI-0000jN-GW for submit@debbugs.gnu.org; Mon, 29 Apr 2019 16:20:28 -0400 Original-Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:61968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLClE-0000jB-H1 for 35487@debbugs.gnu.org; Mon, 29 Apr 2019 16:20:25 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6CAD03E602F; Mon, 29 Apr 2019 20:20:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (unknown [100.96.28.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CE7BF3E5FDE; Mon, 29 Apr 2019 20:20:22 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Mon, 29 Apr 2019 20:20:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Reaction-Fumbling: 61f45eb700fa774a_1556569222972_2302656892 X-MC-Loop-Signature: 1556569222972:2424465484 X-MC-Ingress-Time: 1556569222972 Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a39.g.dreamhost.com (Postfix) with ESMTP id 57A5682B5D; Mon, 29 Apr 2019 13:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=2NBsvNGDCGmt2o/VT4Gc37sRrHw=; b= EZ/QfCXZD70Lzlwh2MuT7WNE9lim0+LeVOFsOPcT0IdyZmMx5QvKpkz7pMb2Zzau pGA+uV/YLNI3sqbRE0eYDpvKs4Z83hqpkors0HrQA9AHRn5HUDLg1jdVcJsP/2/U VlMSmRXWynVcTKprauSSxXM4DnjvPsWzd/zFg//JJ6w= Original-Received: from mail.jurta.org (m91-129-107-198.cust.tele2.ee [91.129.107.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a39.g.dreamhost.com (Postfix) with ESMTPSA id 602E182B64; Mon, 29 Apr 2019 13:20:18 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a39 In-Reply-To: <20190429.213014.526232842075202623.tkk@misasa.okayama-u.ac.jp> (Tak Kunihiro's message of "Mon, 29 Apr 2019 21:30:14 +0900 (JST)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddriedvgdduhedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrudelkeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrdduleekpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepthhkkhesmhhishgrshgrrdhokhgrhigrmhgrqdhurdgrtgdrjhhpnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158455 Archived-At: > I often want to visit function from help-mode in `this window' in > stead of `other window'. To do so, I found that to revise > help-function in help-function-def works. > > I propose to (1) move help-function described as lambda function out > of button definition and (2) make function to visit function from > help-mode customizable. > > After the revision, I can visit function from help-mode in `this > windows' as shown below. I have exactly the same problem. Fortunately, we have a powerful customization mechanism of display-buffer-alist to allow clicking a link from the *Help* buffer to open source code in the same window: #+begin_src emacs-lisp (custom-set-variables '(display-buffer-alist '((display-buffer-condition-from-help display-buffer-same-window)))) (defun display-buffer-condition-from-help (_buffer-name _action) (string-match-p "\\`\\*\\(Help\\)\\*\\(\\|<[0-9]+>\\)\\'" (buffer-name (current-buffer)))) #+end_src