[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109439: Docfix for kill-buffer-hook
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109439: Docfix for kill-buffer-hook and others. |
Date: |
Sun, 05 Aug 2012 15:45:12 +0800 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109439
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Sun 2012-08-05 15:45:12 +0800
message:
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.
modified:
lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/emacs.c
src/frame.c
src/term.c
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-08-05 05:24:50 +0000
+++ b/lisp/ChangeLog 2012-08-05 07:45:12 +0000
@@ -1,3 +1,7 @@
+2012-08-05 Chong Yidong <address@hidden>
+
+ * files.el (kill-buffer-hook): Provide a defvar.
+
2012-08-05 Glenn Morris <address@hidden>
* eshell/esh-ext.el (eshell/addpath):
=== modified file 'lisp/files.el'
--- a/lisp/files.el 2012-08-05 03:03:31 +0000
+++ b/lisp/files.el 2012-08-05 07:45:12 +0000
@@ -1514,7 +1514,11 @@
(other-window 1)
(find-alternate-file filename wildcards))))
-(defvar kill-buffer-hook) ; from buffer.c
+;; Defined and used in buffer.c, but not as a DEFVAR_LISP.
+(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'.")
(defun find-alternate-file (filename &optional wildcards)
"Find file FILENAME, select its buffer, kill previous buffer.
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-08-04 14:36:36 +0000
+++ b/src/ChangeLog 2012-08-05 07:45:12 +0000
@@ -1,3 +1,9 @@
+2012-08-05 Chong Yidong <address@hidden>
+
+ * term.c (Vsuspend_tty_functions, Vresume_tty_functions):
+ * frame.c (Vdelete_frame_functions):
+ * emacs.c (Vkill_emacs_hook): Doc fix.
+
2012-08-04 Eli Zaretskii <address@hidden>
* xfns.c (x_set_menu_bar_lines): Fix compilation error in
=== modified file 'src/emacs.c'
--- a/src/emacs.c 2012-08-04 14:17:10 +0000
+++ b/src/emacs.c 2012-08-05 07:45:12 +0000
@@ -2424,7 +2424,7 @@
doc: /* Non-nil means Emacs is running without interactive
terminal. */);
DEFVAR_LISP ("kill-emacs-hook", Vkill_emacs_hook,
- doc: /* Hook to be run when `kill-emacs' is called.
+ doc: /* Hook run when `kill-emacs' is called.
Since `kill-emacs' may be invoked when the terminal is disconnected (or
in other similar situations), functions placed on this hook should not
expect to be able to interact with the user. To ask for confirmation,
=== modified file 'src/frame.c'
--- a/src/frame.c 2012-08-03 23:36:11 +0000
+++ b/src/frame.c 2012-08-05 07:45:12 +0000
@@ -4351,7 +4351,7 @@
Vmake_pointer_invisible = Qt;
DEFVAR_LISP ("delete-frame-functions", Vdelete_frame_functions,
- doc: /* Functions to be run before deleting a frame.
+ doc: /* Functions run before deleting a frame.
The functions are run with one arg, the frame to be deleted.
See `delete-frame'.
=== modified file 'src/term.c'
--- a/src/term.c 2012-07-31 12:36:19 +0000
+++ b/src/term.c 2012-08-05 07:45:12 +0000
@@ -3571,14 +3571,14 @@
#endif
DEFVAR_LISP ("suspend-tty-functions", Vsuspend_tty_functions,
- doc: /* Functions to be run after suspending a tty.
+ doc: /* Functions run after suspending a tty.
The functions are run with one argument, the terminal object to be suspended.
See `suspend-tty'. */);
Vsuspend_tty_functions = Qnil;
DEFVAR_LISP ("resume-tty-functions", Vresume_tty_functions,
- doc: /* Functions to be run after resuming a tty.
+ doc: /* Functions run after resuming a tty.
The functions are run with one argument, the terminal object that was revived.
See `resume-tty'. */);
Vresume_tty_functions = Qnil;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109439: Docfix for kill-buffer-hook and others.,
Chong Yidong <=