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, 11 Oct 2009 14:00:31 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Michael Albinus <albinus>       09/10/11 14:00:30

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

Log message:
        * net/tramp-cache.el (tramp-flush-connection-property): The hash
        can be empty.

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

Patches:
Index: tramp-cache.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/net/tramp-cache.el,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- tramp-cache.el      7 Oct 2009 11:27:10 -0000       1.23
+++ tramp-cache.el      11 Oct 2009 14:00:30 -0000      1.24
@@ -240,10 +240,12 @@
     (aset key 3 nil))
   (tramp-message
    key 7 "%s %s" key
-   (let (properties)
+   (let ((hash (gethash key tramp-cache-data))
+        properties)
+     (if (hash-table-p hash)
      (maphash
       (lambda (x y) (add-to-list 'properties x 'append))
-      (gethash key tramp-cache-data))
+         (gethash key tramp-cache-data)))
      properties))
   (setq tramp-cache-data-changed t)
   (remhash key tramp-cache-data))




reply via email to

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