aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2012-08-05 15:45:12 +0800
committerChong Yidong2012-08-05 15:45:12 +0800
commite5d9c0d111daaff5d1a6ca26ebde4f926da5e410 (patch)
tree65465ddeb2c2e7e1d025520eefa91722fd411114 /lisp
parenta4f2deaaeba642460b7a0899aa61f7d68e1c69f2 (diff)
downloademacs-e5d9c0d111daaff5d1a6ca26ebde4f926da5e410.tar.gz
emacs-e5d9c0d111daaff5d1a6ca26ebde4f926da5e410.zip
Docfix for kill-buffer-hook and others.
* lisp/files.el (kill-buffer-hook): Provide a defvar. * src/term.c (Vsuspend_tty_functions, Vresume_tty_functions): * src/frame.c (Vdelete_frame_functions): * src/emacs.c (Vkill_emacs_hook): Doc fix.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/files.el6
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7e9da4fa8ff..71d7b50482c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-08-05 Chong Yidong <cyd@gnu.org>
2
3 * files.el (kill-buffer-hook): Provide a defvar.
4
12012-08-05 Glenn Morris <rgm@gnu.org> 52012-08-05 Glenn Morris <rgm@gnu.org>
2 6
3 * eshell/esh-ext.el (eshell/addpath): 7 * eshell/esh-ext.el (eshell/addpath):
diff --git a/lisp/files.el b/lisp/files.el
index 2b4ae460c3e..b54d3d1b60e 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1514,7 +1514,11 @@ expand wildcards (if any) and replace the file with multiple files."
1514 (other-window 1) 1514 (other-window 1)
1515 (find-alternate-file filename wildcards)))) 1515 (find-alternate-file filename wildcards))))
1516 1516
1517(defvar kill-buffer-hook) ; from buffer.c 1517;; Defined and used in buffer.c, but not as a DEFVAR_LISP.
1518(defvar kill-buffer-hook nil
1519 "Hook run when a buffer is killed.
1520The buffer being killed is current while the hook is running.
1521See `kill-buffer'.")
1518 1522
1519(defun find-alternate-file (filename &optional wildcards) 1523(defun find-alternate-file (filename &optional wildcards)
1520 "Find file FILENAME, select its buffer, kill previous buffer. 1524 "Find file FILENAME, select its buffer, kill previous buffer.