emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp/net tramp-cache.el


From: Michael Albinus
Subject: [Emacs-diffs] emacs/lisp/net tramp-cache.el
Date: Sun, 02 Aug 2009 17:15:42 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Michael Albinus <albinus>       09/08/02 17:15:42

Modified files:
        lisp/net       : tramp-cache.el 

Log message:
        * net/tramp-cache.el (tramp-cache-inhibit-cache ): New defvar.
        (tramp-get-file-property): Use it.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/net/tramp-cache.el?cvsroot=emacs&r1=1.20&r2=1.21

Patches:
Index: tramp-cache.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/net/tramp-cache.el,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- tramp-cache.el      9 Apr 2009 13:40:19 -0000       1.20
+++ tramp-cache.el      2 Aug 2009 17:15:42 -0000       1.21
@@ -69,6 +69,9 @@
 (defvar tramp-cache-data (make-hash-table :test 'equal)
   "Hash table for remote files properties.")
 
+(defvar tramp-cache-inhibit-cache nil
+  "Inhibit cache read access, when non-nil.")
+
 (defcustom tramp-persistency-file-name
   (cond
    ;; GNU Emacs.
@@ -103,7 +106,7 @@
   (let* ((hash (or (gethash vec tramp-cache-data)
                   (puthash vec (make-hash-table :test 'equal)
                            tramp-cache-data)))
-        (value (if (hash-table-p hash)
+        (value (if (and (null tramp-cache-inhibit-cache) (hash-table-p hash))
                    (gethash property hash default)
                  default)))
     (tramp-message vec 8 "%s %s %s" file property value)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]