Add some documentation for 'help-find-source'
authorAndrea Corallo <acorallo@gnu.org>
Wed, 29 May 2024 14:30:16 +0000 (16:30 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Wed, 29 May 2024 14:34:51 +0000 (16:34 +0200)
* doc/emacs/help.texi (Name Help): Add 'help-find-source' entry.
* etc/NEWS: Likewise.

doc/emacs/help.texi
etc/NEWS

index d60310456ffbbeef85f3ec22570596f88764276c..6bd2d53b3b19785edbf15062648225399dca5373 100644 (file)
@@ -367,6 +367,11 @@ variable, or a face.  If the symbol has more than one definition, like
 it has both definition as a function and as a variable, this command
 will show the documentation of all of them, one after the other.
 
+@kindex C-h 4 s
+@findex help-find-source
+  @kbd{C-h 4 s} (@code{help-find-source}) switch to a buffer visiting
+the source definition of what is being described in the help buffer.
+
 @vindex completions-detailed
   If the @code{completions-detailed} user option is non-@code{nil},
 some commands provide details about the possible values when
index 805962488d80fde17d2a885836656b8a9a3cbbbe..6cdf6afbcea933046fe13d9abd9dede6e8533e3b 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -158,6 +158,11 @@ number has been bumped to 2048 bits.
 
 ** Help
 
++++
+*** New command 'help-find-source'.
+Switch to a buffer visiting the source of what is being described in
+"*Help*".  It is bound to 'C-h 4 s' globally.
+
 *** 'describe-function' shows function inferred type when available.
 For native compiled Lisp functions 'describe-function' prints (after
 the signature) the automatically inferred function type as well.