]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-cache.el (tramp-flush-file-function): Suppress function
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 5 Aug 2014 08:13:28 +0000 (10:13 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 5 Aug 2014 08:13:28 +0000 (10:13 +0200)
also for Tramp working buffers.

lisp/ChangeLog
lisp/net/tramp-cache.el

index c9b888f3c347bcf8a62093ec16cdb5b5a0723ba7..aec717a159a54e5f7f105127a2a8c4c8f7c09c5b 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-05  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-cache.el (tramp-flush-file-function): Suppress function
+       also for Tramp working buffers.
+
 2014-08-04  Fabián Ezequiel Gallina  <fgallina@gnu.org>
 
        * progmodes/python.el: Fix completions inside (i)pdb.
index 838d326603c14b656fa6df8953d724f3b0e29afe..2098c5ccb0be88bd99565ae1df8cd9a93973105b 100644 (file)
@@ -207,7 +207,12 @@ Remove also properties of all files in subdirectories."
   "Flush all Tramp cache properties from `buffer-file-name'.
 This is suppressed for temporary buffers."
   (save-match-data
-    (unless (string-match "^ \\*temp\\*" (or (buffer-name) ""))
+    (unless
+       (string-match
+        (concat
+         "^" (regexp-opt '("*tramp/" "*debug tramp/" " *temp*") 'parent))
+        (or (buffer-name) ""))
+
       (let ((bfn (if (stringp (buffer-file-name))
                     (buffer-file-name)
                   default-directory)))