aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJoakim Verona2013-02-04 00:03:35 +0100
committerJoakim Verona2013-02-04 00:03:35 +0100
commitc877afeb2bdca205b7d4e19fb37eb0c9cf209540 (patch)
treeeddb6a0ea25c25796e0686a0c2b186e5dbfac95a /lisp
parentcfefa7e817861c3fdf541becf7fbcfa00fa16858 (diff)
parent69d52b98fc53446450319ae96881dd57683e0349 (diff)
downloademacs-c877afeb2bdca205b7d4e19fb37eb0c9cf209540.tar.gz
emacs-c877afeb2bdca205b7d4e19fb37eb0c9cf209540.zip
auto upstream
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/net/tramp-sh.el3
-rw-r--r--lisp/net/tramp.el15
-rw-r--r--lisp/progmodes/cperl-mode.el2
-rw-r--r--lisp/subr.el5
-rw-r--r--lisp/url/ChangeLog5
-rw-r--r--lisp/url/url-cache.el1
7 files changed, 41 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fdf12be0a1c..b676835bfef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12013-02-03 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-debug-message): Extend function exclude list.
4 (tramp-backtrace): New defun.
5 (tramp-handle-insert-file-contents): Use `visit' when inserting
6 the local copy.
7
8 * net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime): Use
9 `remote-file-name-inhibit-cache'.
10
112013-02-03 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning
14 (bug#13614).
15
16 * subr.el (internal--called-interactively-p--get-frame): Avoid filling
17 current-load-list (bug#13366).
18
12013-02-02 Christopher Schmidt <christopher@ch.ristopher.com> 192013-02-02 Christopher Schmidt <christopher@ch.ristopher.com>
2 20
3 * progmodes/compile.el (compilation-error-regexp-alist-alist): 21 * progmodes/compile.el (compilation-error-regexp-alist-alist):
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 345da7b958f..bfa145ac780 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1330,7 +1330,8 @@ target of the symlink differ."
1330 (let ((f (buffer-file-name)) 1330 (let ((f (buffer-file-name))
1331 coding-system-used) 1331 coding-system-used)
1332 (with-parsed-tramp-file-name f nil 1332 (with-parsed-tramp-file-name f nil
1333 (let* ((attr (file-attributes f)) 1333 (let* ((remote-file-name-inhibit-cache t)
1334 (attr (file-attributes f))
1334 ;; '(-1 65535) means file doesn't exists yet. 1335 ;; '(-1 65535) means file doesn't exists yet.
1335 (modtime (or (nth 5 attr) '(-1 65535)))) 1336 (modtime (or (nth 5 attr) '(-1 65535))))
1336 (when (boundp 'last-coding-system-used) 1337 (when (boundp 'last-coding-system-used)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 1dee9e89676..7743e10c8d4 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1391,7 +1391,9 @@ ARGS to actually emit the message (if applicable)."
1391 (concat 1391 (concat
1392 "^" 1392 "^"
1393 (regexp-opt 1393 (regexp-opt
1394 '("tramp-compat-funcall" 1394 '("tramp-backtrace"
1395 "tramp-compat-condition-case-unless-debug"
1396 "tramp-compat-funcall"
1395 "tramp-compat-with-temp-message" 1397 "tramp-compat-with-temp-message"
1396 "tramp-debug-message" 1398 "tramp-debug-message"
1397 "tramp-error" 1399 "tramp-error"
@@ -1505,6 +1507,11 @@ an input event arrives. The other arguments are passed to `tramp-error'."
1505 "`M-x tramp-cleanup-this-connection'")) 1507 "`M-x tramp-cleanup-this-connection'"))
1506 (sit-for 30)))))) 1508 (sit-for 30))))))
1507 1509
1510(defsubst tramp-backtrace (vec-or-proc)
1511 "Dump a backtrace into the debug buffer.
1512This function is meant for debugging purposes."
1513 (tramp-message vec-or-proc 10 "\n%s" (with-output-to-string (backtrace))))
1514
1508(defmacro with-parsed-tramp-file-name (filename var &rest body) 1515(defmacro with-parsed-tramp-file-name (filename var &rest body)
1509 "Parse a Tramp filename and make components available in the body. 1516 "Parse a Tramp filename and make components available in the body.
1510 1517
@@ -3023,13 +3030,15 @@ User is always nil."
3023 (setq tramp-temp-buffer-file-name local-copy)) 3030 (setq tramp-temp-buffer-file-name local-copy))
3024 3031
3025 ;; We must ensure that `file-coding-system-alist' 3032 ;; We must ensure that `file-coding-system-alist'
3026 ;; matches `local-copy'. 3033 ;; matches `local-copy'. We must also use `visit',
3034 ;; otherwise there might be an error in the
3035 ;; `revert-buffer' function under XEmacs.
3027 (let ((file-coding-system-alist 3036 (let ((file-coding-system-alist
3028 (tramp-find-file-name-coding-system-alist 3037 (tramp-find-file-name-coding-system-alist
3029 filename local-copy))) 3038 filename local-copy)))
3030 (setq result 3039 (setq result
3031 (insert-file-contents 3040 (insert-file-contents
3032 local-copy nil nil nil replace))))) 3041 local-copy visit nil nil replace)))))
3033 3042
3034 ;; Save exit. 3043 ;; Save exit.
3035 (progn 3044 (progn
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index c302bb484af..7d34269b6b5 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -1839,7 +1839,7 @@ or as help on variables `cperl-tips', `cperl-problems',
1839 (make-local-variable 'cperl-syntax-state) 1839 (make-local-variable 'cperl-syntax-state)
1840 (setq cperl-syntax-state nil) ; reset syntaxification cache 1840 (setq cperl-syntax-state nil) ; reset syntaxification cache
1841 (if cperl-use-syntax-table-text-property 1841 (if cperl-use-syntax-table-text-property
1842 (if (boundp 'syntax-propertize-function) 1842 (if (eval-when-compile (fboundp 'syntax-propertize-rules))
1843 (progn 1843 (progn
1844 ;; Reset syntaxification cache. 1844 ;; Reset syntaxification cache.
1845 (set (make-local-variable 'cperl-syntax-done-to) nil) 1845 (set (make-local-variable 'cperl-syntax-done-to) nil)
diff --git a/lisp/subr.el b/lisp/subr.el
index e1ab5298409..31cbb9a0a8a 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3976,12 +3976,13 @@ the number of frames to skip (minus 1).")
3976 ;; "static" variables. 3976 ;; "static" variables.
3977 (let ((sym (make-symbol "base-index"))) 3977 (let ((sym (make-symbol "base-index")))
3978 `(progn 3978 `(progn
3979 (defvar ,sym 3979 (defvar ,sym)
3980 (unless (boundp ',sym)
3980 (let ((i 1)) 3981 (let ((i 1))
3981 (while (not (eq (indirect-function (nth 1 (backtrace-frame i)) t) 3982 (while (not (eq (indirect-function (nth 1 (backtrace-frame i)) t)
3982 (indirect-function 'called-interactively-p))) 3983 (indirect-function 'called-interactively-p)))
3983 (setq i (1+ i))) 3984 (setq i (1+ i)))
3984 i)) 3985 (setq ,sym i)))
3985 ;; (unless (eq (nth 1 (backtrace-frame ,sym)) 'called-interactively-p) 3986 ;; (unless (eq (nth 1 (backtrace-frame ,sym)) 'called-interactively-p)
3986 ;; (error "called-interactively-p: %s is out-of-sync!" ,sym)) 3987 ;; (error "called-interactively-p: %s is out-of-sync!" ,sym))
3987 (backtrace-frame (+ ,sym ,n))))) 3988 (backtrace-frame (+ ,sym ,n)))))
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 969d3c7d269..72842ad188d 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,8 @@
12013-02-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * url-cache.el (url-cache-create-filename-using-md5): Don't waste your
4 time `requiring' a builtin feature.
5
12012-12-22 Takafumi Arakaki <aka.tkf@gmail.com> (tiny change) 62012-12-22 Takafumi Arakaki <aka.tkf@gmail.com> (tiny change)
2 7
3 * url-http.el (url-http-end-of-document-sentinel): Bind relevant 8 * url-http.el (url-http-end-of-document-sentinel): Bind relevant
diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el
index a5e5ebf1ed4..cb0281b87f2 100644
--- a/lisp/url/url-cache.el
+++ b/lisp/url/url-cache.el
@@ -149,7 +149,6 @@ The actual return value is the last modification time of the cache file."
149(defun url-cache-create-filename-using-md5 (url) 149(defun url-cache-create-filename-using-md5 (url)
150 "Create a cached filename using MD5. 150 "Create a cached filename using MD5.
151Very fast if you have an `md5' primitive function, suitably fast otherwise." 151Very fast if you have an `md5' primitive function, suitably fast otherwise."
152 (require 'md5)
153 (if url 152 (if url
154 (let* ((checksum (md5 url)) 153 (let* ((checksum (md5 url))
155 (urlobj (url-generic-parse-url url)) 154 (urlobj (url-generic-parse-url url))