]> git.eshelyaron.com Git - emacs.git/commitdiff
Use write-file-functions instead of write-file-hooks.
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 May 2005 13:31:22 +0000 (13:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 May 2005 13:31:22 +0000 (13:31 +0000)
lisp/emulation/tpu-extras.el

index 9c417dd3a4057fe93edb70b0e2a858901e5e85e0..427ef19bccdf9143317558f93ad184cc90034a12 100644 (file)
@@ -144,9 +144,9 @@ the previous line when starting from a line beginning."
   "Eliminate whitespace at ends of lines, if the cursor is free."
   (if (and (buffer-modified-p) tpu-cursor-free) (tpu-trim-line-ends)))
 
-(or (memq 'tpu-write-file-hook write-file-hooks)
-    (setq write-file-hooks
-         (cons 'tpu-write-file-hook write-file-hooks)))
+(or (memq 'tpu-write-file-hook write-file-functions)
+    (setq write-file-functions
+         (cons 'tpu-write-file-hook write-file-functions)))
 
 
 ;;;  Utility routines for implementing scroll margins