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.devel Subject: Re: Customize how xrefs are followed in help-mode? Date: Sun, 19 May 2019 22:50:24 +0300 Organization: LINKOV.NET Message-ID: <87imu6s3vb.fsf@mail.linkov.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="15956"; 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: emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 19 22:33:28 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 1hSSUp-00041z-QG for ged-emacs-devel@m.gmane.org; Sun, 19 May 2019 22:33:27 +0200 Original-Received: from localhost ([127.0.0.1]:53029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSSUo-0007MH-LW for ged-emacs-devel@m.gmane.org; Sun, 19 May 2019 16:33:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSSHy-0005Za-Qc for emacs-devel@gnu.org; Sun, 19 May 2019 16:20:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSS5C-0007pN-1E for emacs-devel@gnu.org; Sun, 19 May 2019 16:06:58 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:39692) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hSS5B-0007k6-Mx for emacs-devel@gnu.org; Sun, 19 May 2019 16:06:57 -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 A12DA5E06B3; Sun, 19 May 2019 20:06:52 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (100-96-91-22.trex.outbound.svc.cluster.local [100.96.91.22]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 097F95E18D4; Sun, 19 May 2019 20:06:52 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 19 May 2019 20:06:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Suffer-Unite: 45cb7a6841801ace_1558296412492_3739340822 X-MC-Loop-Signature: 1558296412491:861003753 X-MC-Ingress-Time: 1558296412491 Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id B379A80050; Sun, 19 May 2019 13:06:47 -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=S4vu6jKbiUBDk9WRd0HcpJdZpxQ=; b= s+ACiYy+HS1BEUtZjGIMKUv6RETm4U8lfPvlsdb+4MHK9+ONFtoqDdjoP1TDsyoF fDMN2cokelW8q6WEpYcEJD+QWZBPWywkthWz5vvq6UdXCo/a9K0VAf8hPV4cFgp/ yQh9pk76eHL1uLTzW5yRoNk1FnbKRUonNkTXmYhdhDc= Original-Received: from mail.jurta.org (m91-129-96-230.cust.tele2.ee [91.129.96.230]) (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-a42.g.dreamhost.com (Postfix) with ESMTPSA id 19C8580045; Sun, 19 May 2019 13:06:45 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a42 In-Reply-To: <87v9yadx7h.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 16 May 2019 12:18:58 -0700") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddruddtiedgudeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirddvfedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirddvfedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghrihgtsegvrhhitggrsghrrghhrghmshgvnhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.151 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:236764 Archived-At: > 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. To depend on a prefix arg is a good idea. (defun display-buffer-from-help-p (_buffer-name _action) (when current-prefix-arg (with-current-buffer (window-buffer) (eq major-mode 'help-mode)))) (setq display-buffer-alist '((display-buffer-from-help-p display-buffer-same-window)))