mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(help-insert-string): New function. Save buffer
contents in cases where it is impossible to recompute the old contents.
This commit is contained in:
parent
6280f20d84
commit
ee90fe9213
1 changed files with 9 additions and 0 deletions
|
|
@ -648,6 +648,15 @@ For the cross-reference format, see `help-make-xrefs'."
|
|||
(fboundp sym) (facep sym))
|
||||
(help-do-xref pos #'help-xref-interned (list sym))))))
|
||||
|
||||
(defun help-insert-string (string)
|
||||
"Insert STRING to the help buffer and install xref info for it.
|
||||
This function can be used to restore the old contents of the help buffer
|
||||
when going back to the previous topic in the xref stack. It is needed
|
||||
in case when it is impossible to recompute the old contents of the
|
||||
help buffer by other means."
|
||||
(setq help-xref-stack-item (list #'help-insert-string string))
|
||||
(with-output-to-temp-buffer (help-buffer)
|
||||
(insert string)))
|
||||
|
||||
(provide 'help-mode)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue