changeset 12963:337ba86981f5

(basic-save-buffer): Doc fix. (after-save-hook): Add defvar.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Aug 1995 15:15:28 +0000
parents bc084caba958
children 16df4fd98d75
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Mon Aug 28 15:12:57 1995 +0000
+++ b/lisp/files.el	Mon Aug 28 15:15:28 1995 +0000
@@ -1691,8 +1691,12 @@
 	   (file-error nil))
 	 (set-buffer-auto-saved))))
 
+(defvar after-save-hook nil
+  "Normal hook that is run after a buffer is saved to its file.")
+
 (defun basic-save-buffer ()
-  "Save the current buffer in its visited file, if it has been modified."
+  "Save the current buffer in its visited file, if it has been modified.
+After saving the buffer, run `after-save-hook'."
   (interactive)
   (save-excursion
     ;; In an indirect buffer, save its base buffer instead.