diff options
| author | Leo Liu <sdl.web@gmail.com> | 2013-03-24 14:42:25 +0800 |
|---|---|---|
| committer | Leo Liu <sdl.web@gmail.com> | 2013-03-24 14:42:25 +0800 |
| commit | 7b0e2f853fcd88c58715fd159923d50dfdeb9cba (patch) | |
| tree | 43c47e8af99b49d98f2fd1443a8641c37a225908 /lisp/files.el | |
| parent | 2bf7d27acd741bf870d6ca0c74dbed7b7260b5ad (diff) | |
| download | emacs-7b0e2f853fcd88c58715fd159923d50dfdeb9cba.tar.gz | |
* lisp/files.el (kill-buffer-hook): Doc fix.
* lisp/emacs-lisp/edebug.el (edebug-mode): Make sure edebug-kill-buffer
is the last entry in kill-buffer-hook.
* lisp/nxml/rng-valid.el (rng-validate-while-idle)
(rng-validate-quick-while-idle): Guard against deleted buffer.
Fixes: debbugs:13999
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 9da9ac6fd53..06958622d14 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1516,7 +1516,10 @@ expand wildcards (if any) and replace the file with multiple files." (defvar kill-buffer-hook nil "Hook run when a buffer is killed. The buffer being killed is current while the hook is running. -See `kill-buffer'.") +See `kill-buffer'. + +Note: Be careful with let-binding this hook considering it is +frequently used for cleanup.") (defun find-alternate-file (filename &optional wildcards) "Find file FILENAME, select its buffer, kill previous buffer. |
