# HG changeset patch # User Richard M. Stallman # Date 943637486 0 # Node ID 7970b988aada48ab41c6d94557ae91ace89a2b4b # Parent 07aba963acc924d2507186c48eabe0352bd440aa (write-file-hooks): Doc fix. diff -r 07aba963acc9 -r 7970b988aada lisp/files.el --- a/lisp/files.el Fri Nov 26 15:17:52 1999 +0000 +++ b/lisp/files.el Fri Nov 26 17:31:26 1999 +0000 @@ -298,7 +298,8 @@ If one of them returns non-nil, the file is considered already written and the rest are not called. These hooks are considered to pertain to the visited file. -So this list is cleared if you change the visited file name. +So any buffer-local binding of `write-file-hooks' is +discarded if you change the visited file name with \\[set-visited-file-name]. Don't make this variable buffer-local; instead, use `local-write-file-hooks'. See also `write-contents-hooks'.")