# HG changeset patch # User Richard M. Stallman # Date 1116768682 0 # Node ID c9e18de90ee3052e5c02b9e3a3e227e63f4c7206 # Parent dd9b63b29d802f55e4cf97063e1f6f9d67071166 Use write-file-functions instead of write-file-hooks. diff -r dd9b63b29d80 -r c9e18de90ee3 lisp/emulation/tpu-extras.el --- a/lisp/emulation/tpu-extras.el Sun May 22 12:37:24 2005 +0000 +++ b/lisp/emulation/tpu-extras.el Sun May 22 13:31:22 2005 +0000 @@ -144,9 +144,9 @@ "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