aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2011-01-18 16:33:24 +0100
committerMichael Albinus2011-01-18 16:33:24 +0100
commit567611822a824fb832587db623bfb6854ff156db (patch)
tree3805f2cb172c75da58864b8a3aa9259c4fafbef1
parent9cc28d9bd7e1cb1f190fb0898bb4982d1bc56dcf (diff)
downloademacs-567611822a824fb832587db623bfb6854ff156db.tar.gz
emacs-567611822a824fb832587db623bfb6854ff156db.zip
* net/tramp.el (tramp-debug-message): Extend function exclude
list. Use `regexp-opt'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el24
2 files changed, 24 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e83a2cf61a4..7282231025e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-01-18 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-debug-message): Extend function exclude
4 list. Use `regexp-opt'.
5
12011-01-18 Stefan Monnier <monnier@iro.umontreal.ca> 62011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * textmodes/tex-mode.el (tex-font-lock-verb): Make sure \verb 8 * textmodes/tex-mode.el (tex-font-lock-verb): Make sure \verb
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index ef312af80ba..6fe176f28c8 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1293,7 +1293,8 @@ ARGS to actually emit the message (if applicable)."
1293 (let ((now (current-time))) 1293 (let ((now (current-time)))
1294 (insert (format-time-string "%T." now)) 1294 (insert (format-time-string "%T." now))
1295 (insert (format "%06d " (nth 2 now)))) 1295 (insert (format "%06d " (nth 2 now))))
1296 ;; Calling function. 1296 ;; Calling Tramp function. We suppress compat and trace
1297 ;; functions from being displayed.
1297 (let ((btn 1) btf fn) 1298 (let ((btn 1) btf fn)
1298 (while (not fn) 1299 (while (not fn)
1299 (setq btf (nth 1 (backtrace-frame btn))) 1300 (setq btf (nth 1 (backtrace-frame btn)))
@@ -1301,10 +1302,23 @@ ARGS to actually emit the message (if applicable)."
1301 (setq fn "") 1302 (setq fn "")
1302 (when (symbolp btf) 1303 (when (symbolp btf)
1303 (setq fn (symbol-name btf)) 1304 (setq fn (symbol-name btf))
1304 (unless (and (string-match "^tramp" fn) 1305 (unless
1305 (not (string-match 1306 (and
1306 "^tramp\\(-debug\\)?\\(-message\\|-error\\|-compat\\(-funcall\\|-with-temp-message\\)\\)$" 1307 (string-match "^tramp" fn)
1307 fn))) 1308 (not
1309 (string-match
1310 (concat
1311 "^"
1312 (regexp-opt
1313 '("tramp-compat-funcall"
1314 "tramp-compat-with-temp-message"
1315 "tramp-debug-message"
1316 "tramp-error"
1317 "tramp-error-with-buffer"
1318 "tramp-message")
1319 t)
1320 "$")
1321 fn)))
1308 (setq fn nil))) 1322 (setq fn nil)))
1309 (setq btn (1+ btn)))) 1323 (setq btn (1+ btn))))
1310 ;; The following code inserts filename and line number. 1324 ;; The following code inserts filename and line number.