diff options
| author | Nick Roberts | 2005-12-27 21:11:50 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-12-27 21:11:50 +0000 |
| commit | ee90fe92139cea8ecd5700a0e0099f6e47d38c9f (patch) | |
| tree | 5343d65f2f9f3fa0b5f6fbe2be31dcce3c7233de | |
| parent | 6280f20d8457bd6638dc321b3a818d6594b9b0eb (diff) | |
| download | emacs-ee90fe92139cea8ecd5700a0e0099f6e47d38c9f.tar.gz emacs-ee90fe92139cea8ecd5700a0e0099f6e47d38c9f.zip | |
(help-insert-string): New function. Save buffer
contents in cases where it is impossible to recompute the old
contents.
| -rw-r--r-- | lisp/help-mode.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 9941f0604bd..2e5bbb9315b 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -648,6 +648,15 @@ For the cross-reference format, see `help-make-xrefs'." | |||
| 648 | (fboundp sym) (facep sym)) | 648 | (fboundp sym) (facep sym)) |
| 649 | (help-do-xref pos #'help-xref-interned (list sym)))))) | 649 | (help-do-xref pos #'help-xref-interned (list sym)))))) |
| 650 | 650 | ||
| 651 | (defun help-insert-string (string) | ||
| 652 | "Insert STRING to the help buffer and install xref info for it. | ||
| 653 | This function can be used to restore the old contents of the help buffer | ||
| 654 | when going back to the previous topic in the xref stack. It is needed | ||
| 655 | in case when it is impossible to recompute the old contents of the | ||
| 656 | help buffer by other means." | ||
| 657 | (setq help-xref-stack-item (list #'help-insert-string string)) | ||
| 658 | (with-output-to-temp-buffer (help-buffer) | ||
| 659 | (insert string))) | ||
| 651 | 660 | ||
| 652 | (provide 'help-mode) | 661 | (provide 'help-mode) |
| 653 | 662 | ||