changeset 56465:6b42a91e3595

(tramp-handle-verify-visited-file-modtime): New docstring. From Luc Teirlinck.
author Kai Großjohann <kgrossjo@eu.uu.net>
date Sat, 17 Jul 2004 21:33:32 +0000
parents 9e7aab13fbb8
children 5b3a6c2d5f5f 3864ee1088e9
files lisp/ChangeLog lisp/net/tramp.el
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Jul 17 20:55:57 2004 +0000
+++ b/lisp/ChangeLog	Sat Jul 17 21:33:32 2004 +0000
@@ -1,3 +1,8 @@
+2004-07-17  Kai Grossjohann  <kai.grossjohann@gmx.net>
+
+	* net/tramp.el (tramp-handle-verify-visited-file-modtime): New
+	docstring.  From Luc Teirlinck.
+
 2004-07-17  Luc Teirlinck  <teirllm@auburn.edu>
 
 	* autorevert.el: Describe `Auto Revert Tail Mode' in `Commentary'
--- a/lisp/net/tramp.el	Sat Jul 17 20:55:57 2004 +0000
+++ b/lisp/net/tramp.el	Sat Jul 17 21:33:32 2004 +0000
@@ -2331,7 +2331,12 @@
 ;; This function makes the same assumption as
 ;; `tramp-handle-set-visited-file-modtime'.
 (defun tramp-handle-verify-visited-file-modtime (buf)
-  "Like `verify-visited-file-modtime' for tramp files."
+  "Like `verify-visited-file-modtime' for tramp files.
+At the time `verify-visited-file-modtime' calls this function, we
+already know that the buffer is visiting a file and that
+`visited-file-modtime' does not return 0.  Do not call this
+function directly, unless those two cases are already taken care
+of."
   (with-current-buffer buf
     (let ((f (buffer-file-name)))
       (with-parsed-tramp-file-name f nil