Commit 77e19497 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Buttonize function values in help (and add a blank line)

* lisp/help-fns.el (describe-variable): Add a newline for better
readability (bug#46702).  This also has the side effect of
buttonizing `function-references-like-this' in the "Its value is"
part.

* lisp/help-mode.el (help-make-xrefs): Adjust comments.
parent abd8c9b4
Pipeline #9461 passed with stages
in 8 minutes and 16 seconds
......@@ -1026,7 +1026,7 @@ it is displayed along with the global value."
(princ (if file-name
(progn
(princ (format-message
" is a variable defined in `%s'.\n"
" is a variable defined in `%s'.\n\n"
(if (eq file-name 'C-source)
"C source code"
(help-fns-short-filename file-name))))
......
......@@ -476,8 +476,7 @@ that."
(with-current-buffer (or buffer (current-buffer))
(save-excursion
(goto-char (point-min))
;; Skip the header-type info, though it might be useful to parse
;; it at some stage (e.g. "function in `library'").
;; Skip the first bit, which has already been buttonized.
(forward-paragraph)
(let ((old-modified (buffer-modified-p)))
(let ((stab (syntax-table))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment