[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/help-mode.el
From: |
Nick Roberts |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/help-mode.el |
Date: |
Tue, 27 Dec 2005 21:11:50 +0000 |
Index: emacs/lisp/help-mode.el
diff -u emacs/lisp/help-mode.el:1.41 emacs/lisp/help-mode.el:1.42
--- emacs/lisp/help-mode.el:1.41 Tue Dec 20 09:02:23 2005
+++ emacs/lisp/help-mode.el Tue Dec 27 21:11:50 2005
@@ -648,6 +648,15 @@
(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)