From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: hyperlinks in variable's value - links to libraries Date: Thu, 05 Jan 2006 23:44:56 -0500 Message-ID: <877j9enf6t.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136522725 21318 80.91.229.2 (6 Jan 2006 04:45:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2006 04:45:25 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 06 05:45:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EujTa-0006cX-1K for ged-emacs-devel@m.gmane.org; Fri, 06 Jan 2006 05:45:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EujVK-0003JL-PR for ged-emacs-devel@m.gmane.org; Thu, 05 Jan 2006 23:47:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EujV3-0003Hq-JH for emacs-devel@gnu.org; Thu, 05 Jan 2006 23:46:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EujV1-0003Fh-Ur for emacs-devel@gnu.org; Thu, 05 Jan 2006 23:46:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EujV1-0003FU-RU for emacs-devel@gnu.org; Thu, 05 Jan 2006 23:46:47 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EujWi-0001Vc-LA for emacs-devel@gnu.org; Thu, 05 Jan 2006 23:48:32 -0500 Original-Received: from alfajor ([67.71.26.159]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060106044457.SHNJ20927.tomts13-srv.bellnexxia.net@alfajor>; Thu, 5 Jan 2006 23:44:57 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id D5560D72A7; Thu, 5 Jan 2006 23:44:56 -0500 (EST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Thu, 5 Jan 2006 19:23:44 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48779 Archived-At: > Resending. Shall I assume no one is interested? > ;; Hyperlinks in variable's value are quite frequently > ;; inappropriate e.g C-h v features > ;; (help-xref-on-pp from (point)) > I disagree with the "fix" of commenting out this > line - at the least, I would like such links to be an option. > Although it can be slow, it is very useful: looking at `features' > should be an entry point to accessing the features listed. I originally coded up the help-xref-on-pp feature. I think it was a good feature, except that it didn't work quite right: it sometimes added "spurious" xrefs and other times missed good xrefs. Also it significantly slows down the construction of the *Help* text, so much so that we had to put an arbitrary limit (hard coded at 5000 chars right now) above which the highlighting is disabled. So I added another feature, which is that clicking mouse-2 anywhere in the buffer (not just on a visually announced xref with mouse-face highlight and everything) will try to interpret the symbol under point as a var-name, fun-name, or face-name. This has the advantage of working no matter how large the output is. It also works in the docstrings where the author forgot to mark symbols with `...'. The main disadvantage of course is the lack of visual cue which makes this feature barely known. Stefan