aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-09-14 11:00:11 +0200
committerMichael Albinus2014-09-14 11:00:11 +0200
commit36cac3209313d849f3eef6e4c7278eb018817e23 (patch)
treeaf82f42aa30813ceb374ce4acad44747aa260190
parent3f7ae02b8978b678b153488e246b3f0f3fc6a529 (diff)
downloademacs-36cac3209313d849f3eef6e4c7278eb018817e23.tar.gz
emacs-36cac3209313d849f3eef6e4c7278eb018817e23.zip
* net/tramp-cache.el (tramp-flush-file-function): Simplify check.
Suppress debug messages. * net/tramp.el (tramp-file-name-handler): * net/tramp-gvfs.el (tramp-gvfs-url-file-name): Apply `cons' where appropriate.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/net/tramp-cache.el11
-rw-r--r--lisp/net/tramp-gvfs.el2
-rw-r--r--lisp/net/tramp.el6
4 files changed, 17 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7a4cf2e9027..35df2c5bf17 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12014-09-14 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-cache.el (tramp-flush-file-function): Simplify check.
4 Suppress debug messages.
5
6 * net/tramp.el (tramp-file-name-handler):
7 * net/tramp-gvfs.el (tramp-gvfs-url-file-name): Apply `cons' where
8 appropriate.
9
12014-09-13 Christopher Schmidt <ch@ristopher.com> 102014-09-13 Christopher Schmidt <ch@ristopher.com>
2 11
3 * calendar/calendar.el (calendar-update-mode-line): 12 * calendar/calendar.el (calendar-update-mode-line):
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el
index bdcbba85960..056b1bdaf91 100644
--- a/lisp/net/tramp-cache.el
+++ b/lisp/net/tramp-cache.el
@@ -207,15 +207,12 @@ Remove also properties of all files in subdirectories."
207 "Flush all Tramp cache properties from `buffer-file-name'. 207 "Flush all Tramp cache properties from `buffer-file-name'.
208This is suppressed for temporary buffers." 208This is suppressed for temporary buffers."
209 (save-match-data 209 (save-match-data
210 (unless 210 (unless (or (null (buffer-name))
211 (string-match 211 (string-match "^\\( \\|\\*\\)" (buffer-name)))
212 (concat
213 "^" (regexp-opt '("*tramp/" "*debug tramp/" " *temp*") 'paren))
214 (or (buffer-name) ""))
215
216 (let ((bfn (if (stringp (buffer-file-name)) 212 (let ((bfn (if (stringp (buffer-file-name))
217 (buffer-file-name) 213 (buffer-file-name)
218 default-directory))) 214 default-directory))
215 (tramp-verbose 0))
219 (when (tramp-tramp-file-p bfn) 216 (when (tramp-tramp-file-p bfn)
220 (with-parsed-tramp-file-name bfn nil 217 (with-parsed-tramp-file-name bfn nil
221 (tramp-flush-file-property v localname))))))) 218 (tramp-flush-file-property v localname)))))))
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 5d6447609fa..569fb684144 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -1108,7 +1108,7 @@ is no information where to trace the message.")
1108(defun tramp-gvfs-url-file-name (filename) 1108(defun tramp-gvfs-url-file-name (filename)
1109 "Return FILENAME in URL syntax." 1109 "Return FILENAME in URL syntax."
1110 ;; "/" must NOT be hexlified. 1110 ;; "/" must NOT be hexlified.
1111 (let ((url-unreserved-chars (append '(?/) url-unreserved-chars)) 1111 (let ((url-unreserved-chars (cons ?/ url-unreserved-chars))
1112 result) 1112 result)
1113 (setq 1113 (setq
1114 result 1114 result
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 5968a331b68..e3fb177b0c5 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2148,13 +2148,13 @@ Falls back to normal file name handler if no Tramp file name handler exists."
2148 ((eq result 'non-essential) 2148 ((eq result 'non-essential)
2149 (tramp-message 2149 (tramp-message
2150 v 5 "Non-essential received in operation %s" 2150 v 5 "Non-essential received in operation %s"
2151 (append (list operation) args)) 2151 (cons operation args))
2152 (tramp-run-real-handler operation args)) 2152 (tramp-run-real-handler operation args))
2153 ((eq result 'suppress) 2153 ((eq result 'suppress)
2154 (let (tramp-message-show-message) 2154 (let (tramp-message-show-message)
2155 (tramp-message 2155 (tramp-message
2156 v 1 "Suppress received in operation %s" 2156 v 1 "Suppress received in operation %s"
2157 (append (list operation) args)) 2157 (cons operation args))
2158 (tramp-cleanup-connection v t) 2158 (tramp-cleanup-connection v t)
2159 (tramp-run-real-handler operation args))) 2159 (tramp-run-real-handler operation args)))
2160 (t result))) 2160 (t result)))
@@ -2164,7 +2164,7 @@ Falls back to normal file name handler if no Tramp file name handler exists."
2164 (let (tramp-message-show-message) 2164 (let (tramp-message-show-message)
2165 (tramp-message 2165 (tramp-message
2166 v 1 "Interrupt received in operation %s" 2166 v 1 "Interrupt received in operation %s"
2167 (append (list operation) args))) 2167 (cons operation args)))
2168 ;; Propagate the quit signal. 2168 ;; Propagate the quit signal.
2169 (signal (car err) (cdr err))) 2169 (signal (car err) (cdr err)))
2170 2170