1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Add support for man page hyperlinks in doc strings

* lisp/help-mode.el (help-man): New button type.
(help-xref-man-regexp): New const.
(help-make-xrefs): Use them to allow making man page buttons.
* doc/lispref/tips.texi (Documentation Tips): Document the new
hyperlink type.  (Bug#39215)
This commit is contained in:
Stefan Kangas 2021-09-25 03:03:34 +02:00
parent 0b2596432d
commit 0917919337
3 changed files with 29 additions and 2 deletions

View file

@ -755,6 +755,14 @@ anchor}. The Info file name defaults to @samp{emacs}. For example,
See Info node `Font Lock' and Info node `(elisp)Font Lock Basics'.
@end smallexample
To make a hyperlink to a man page, write the single-quoted name of the
man page, preceded by @samp{Man page}, @samp{man page}, or @samp{man
page for}. For example,
@smallexample
See the man page `chmod' for details.
@end smallexample
To link to a customization group, write the single-quoted name of the
group, preceded by @samp{customization group} (the first character in
each word is case-insensitive). For example,