# HG changeset patch # User Michael Albinus # Date 1249233342 0 # Node ID 05be2b60df7a8550789b89f3a256d72b989a83d7 # Parent 132eb17eec1d72aebfebd4280038b1c91e049fb7 * net/tramp-cache.el (tramp-cache-inhibit-cache ): New defvar. (tramp-get-file-property): Use it. diff -r 132eb17eec1d -r 05be2b60df7a lisp/net/tramp-cache.el --- a/lisp/net/tramp-cache.el Sun Aug 02 15:37:07 2009 +0000 +++ b/lisp/net/tramp-cache.el Sun Aug 02 17:15:42 2009 +0000 @@ -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) @@ -182,8 +185,8 @@ (aset key 3 nil)) (let* ((hash (gethash key tramp-cache-data)) (value (if (hash-table-p hash) - (gethash property hash default) - default))) + (gethash property hash default) + default))) (tramp-message key 7 "%s %s" property value) value))