GNU bug report logs - #60587
30.0.50; Info pages are lacking links from symbol names to the symbol's help documentation

Previous Next

Package: emacs;

Reported by: "H. Dieter Wilhelm" <dieter <at> duenenhof-wilhelm.de>

Date: Thu, 5 Jan 2023 23:48:01 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: "H. Dieter Wilhelm" <dieter <at> duenenhof-wilhelm.de>, Eli Zaretskii <eliz <at> gnu.org>
Cc: "60587 <at> debbugs.gnu.org" <60587 <at> debbugs.gnu.org>, "monnier <at> iro.umontreal.ca" <monnier <at> iro.umontreal.ca>
Subject: bug#60587: Patch for adding links to symbols' help documentation
Date: Wed, 25 Jan 2023 22:24:24 +0000
Some quick minor feedback -

1.
+  :type '(choice (const :tag "Create links" t)
+                 (const :tag "Do not link" nil))

is better as just :type 'boolean, and say in the
doc which Boolean value means which behavior.

2.
+;; Toggle on or off the linking to help documents
+(when info-make-xref-flag
+  (add-hook 'Info-selection-hook 'info-make-xrefs))

Instead of putting it on the hook when loading the
code, add/remove it in a :set function.  E.g.
(untested):

:set (lambda (sym defs)
       (custom-set-default sym defs)
       (let ((fun  (if info-make-xref-flag
                       #'add-hook
                     #'remove-hook)))
         (funcall fun 'Info-selection-hook
                      'info-make-xrefs)))

3. Maybe add a toggle command for the option, so
users can switch the behavior anytime, on the fly.

4. Or instead of having an option, maybe just have
a minor mode.

5. Face `info-color' should be named something like
`info-symbol-help-link'.

6. "clicking @kbd{mouse-2} or @kbd{mouse-1} on it"
can't be right, I think.  At least that doesn't
express what `mouse-1-follows-link' does/means.

7. Again, I think it's unhelpful to call these
links "buttons".  Especially since Info docs call
Info links "links".  That these links show their
destination in another window isn't a reason to
call them something different (and with no
definition of the additional term "button").





This bug report was last modified 2 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.