diff src/buffer.c @ 3693:3b847cba6d71

[xemacs-hg @ 2006-11-22 02:20:20 by stephent] Update buffer-file-truename with buffer-file-name in info.el. Document invariant. <874pssmen5.fsf@uwakimon.sk.tsukuba.ac.jp>
author stephent
date Wed, 22 Nov 2006 02:20:34 +0000
parents d674024a8674
children 229bd619740a
line wrap: on
line diff
--- a/src/buffer.c	Tue Nov 21 22:51:08 2006 +0000
+++ b/src/buffer.c	Wed Nov 22 02:20:34 2006 +0000
@@ -2635,6 +2635,8 @@
   DEFVAR_BUFFER_LOCAL ("buffer-file-name", filename /*
 Name of file visited in current buffer, or nil if not visiting a file.
 Each buffer has its own value of this variable.
+Code that changes this variable must maintain the invariant
+`(equal buffer-file-truename (file-truename buffer-file-name))'.
 */ );
 
 #if 0 /* FSFmacs */
@@ -2647,12 +2649,11 @@
 #endif /* FSFmacs */
 
   DEFVAR_BUFFER_LOCAL ("buffer-file-truename", file_truename /*
-The real name of the file visited in the current buffer,
-or nil if not visiting a file.  This is the result of passing
-buffer-file-name to the `file-truename' function.  Every buffer has
-its own value of this variable.  This variable is automatically
-maintained by the functions that change the file name associated
-with a buffer.
+The real name of the file visited in the current buffer, or nil if not
+visiting a file.  This is the result of passing `buffer-file-name' to the
+`file-truename' function.  Every buffer has its own value of this variable.
+Code that changes the file name associated with a buffer maintains the
+invariant `(equal buffer-file-truename (file-truename buffer-file-name))'.
 */ );
 
   DEFVAR_BUFFER_LOCAL ("buffer-auto-save-file-name", auto_save_file_name /*