From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Customize how xrefs are followed in help-mode? Date: Thu, 16 May 2019 12:30:03 -0700 Message-ID: <87d0kidwp0.fsf@ericabrahamsen.net> References: <87v9yadx7h.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="32111"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 16 21:30:53 2019 Return-path: Envelope-to: ged-emacs-devel@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 1hRM5d-0008EA-3h for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 21:30:53 +0200 Original-Received: from localhost ([127.0.0.1]:34417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRM5c-0004M5-66 for ged-emacs-devel@m.gmane.org; Thu, 16 May 2019 15:30:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRM51-0004Lo-Fd for emacs-devel@gnu.org; Thu, 16 May 2019 15:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRM50-0008GQ-Bo for emacs-devel@gnu.org; Thu, 16 May 2019 15:30:15 -0400 Original-Received: from [195.159.176.226] (port=59514 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRM50-0008Fv-58 for emacs-devel@gnu.org; Thu, 16 May 2019 15:30:14 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hRM4y-0007De-Mz for emacs-devel@gnu.org; Thu, 16 May 2019 21:30:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:5uT2yUaDt3FUEPXZMGX47XEelR0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236594 Archived-At: Noam Postavsky writes: > On Thu, 16 May 2019 at 15:19, Eric Abrahamsen wrote: >> >> It's always bothered me that following a function/variable definition >> button from a *Help* buffer goes to the file in a separate window -- I >> almost always want to re-use the *Help* window. >> >> Essentially, help-mode.el:209 hard-codes the use of `pop-to-buffer', I'd >> like to be able to use `pop-to-buffer-same-window'. >> >> From a user's standpoint, I guess what I'd prefer is to be able to give >> a prefix arg to RET when following the button, but I don't see any way >> of passing that arg down, plus there's no good equivalent for the mouse >> click. >> >> Would people consider a customization option to control this? > > I think this the same as Bug#35487, where there are some suggestions > to use display-buffer-alist to control this. Oh weird, Tak Kunihiro posted his final solution (which I'm stealing) just a few hours ago, dunno how I missed that. Thanks! Eric