Mercurial > emacs
changeset 42083:981f93cc55d1
(temp-buffer-show-hook, temp-buffer-setup-hook): Add defvars.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 16 Dec 2001 18:36:34 +0000 |
parents | 20c1f73d3db3 |
children | 38fcd503c300 |
files | lisp/subr.el |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Sun Dec 16 18:36:16 2001 +0000 +++ b/lisp/subr.el Sun Dec 16 18:36:34 2001 +0000 @@ -1084,6 +1084,19 @@ (defvar suspend-resume-hook nil "Normal hook run by `suspend-emacs', after Emacs is continued.") +(defvar temp-buffer-show-hook nil + "Normal hook run by `with-output-to-temp-buffer' after displaying the buffer. +When the hook runs, the temporary buffer is current, and the window it +was displayed in is selected. This hook is normally set up with a +function to make the buffer read only, and find function names and +variable names in it, provided the major mode is still Help mode.") + +(defvar temp-buffer-setup-hook nil + "Normal hook run by `with-output-to-temp-buffer' at the start. +When the hook runs, the temporary buffer is current. +This hook is normally set up with a function to put the buffer in Help +mode.") + ;; Avoid compiler warnings about this variable, ;; which has a special meaning on certain system types. (defvar buffer-file-type nil