diff options
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 15 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 5 | ||||
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-cache.el | 1 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/emacs.c | 2 | ||||
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/files.el | 10 |
11 files changed, 58 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fdf12be0a1c..b676835bfef 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2013-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 | |||
| 11 | 2013-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 | |||
| 1 | 2013-02-02 Christopher Schmidt <christopher@ch.ristopher.com> | 19 | 2013-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. | ||
| 1512 | This 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 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2012-12-22 Takafumi Arakaki <aka.tkf@gmail.com> (tiny change) | 6 | 2012-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. |
| 151 | Very fast if you have an `md5' primitive function, suitably fast otherwise." | 151 | Very 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)) |
diff --git a/src/ChangeLog b/src/ChangeLog index 092302d6492..1c7771cb0d9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-02-03 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that | ||
| 4 | daemon mode works on cygw32 when Emacs is installed and not just | ||
| 5 | during development. | ||
| 6 | |||
| 1 | 2013-02-02 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2013-02-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Avoid file time stamp bug on MS-Windows (Bug#13149). | 9 | Avoid file time stamp bug on MS-Windows (Bug#13149). |
diff --git a/src/emacs.c b/src/emacs.c index ff29a042ea0..43fcae8e062 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1062,7 +1062,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem | |||
| 1062 | 1062 | ||
| 1063 | argv[skip_args] = fdStr; | 1063 | argv[skip_args] = fdStr; |
| 1064 | 1064 | ||
| 1065 | execv (argv[0], argv); | 1065 | execvp (argv[0], argv); |
| 1066 | fprintf (stderr, "emacs daemon: exec failed: %d\n", errno); | 1066 | fprintf (stderr, "emacs daemon: exec failed: %d\n", errno); |
| 1067 | exit (1); | 1067 | exit (1); |
| 1068 | } | 1068 | } |
diff --git a/test/ChangeLog b/test/ChangeLog index 7e893ba6768..651453566f2 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-03 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * automated/files.el (file-test--do-local-variables-test): Avoid | ||
| 4 | compilation warning message. | ||
| 5 | |||
| 1 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> | 6 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 7 | ||
| 3 | * automated/ruby-mode-tests.el | 8 | * automated/ruby-mode-tests.el |
diff --git a/test/automated/files.el b/test/automated/files.el index 8712d1f620e..f2d2192a420 100644 --- a/test/automated/files.el +++ b/test/automated/files.el | |||
| @@ -23,9 +23,9 @@ | |||
| 23 | 23 | ||
| 24 | ;; Set to t if the local variable was set, `query' if the query was | 24 | ;; Set to t if the local variable was set, `query' if the query was |
| 25 | ;; triggered. | 25 | ;; triggered. |
| 26 | (defvar files-test-result) | 26 | (defvar files-test-result nil) |
| 27 | 27 | ||
| 28 | (defvar files-test-safe-result) | 28 | (defvar files-test-safe-result nil) |
| 29 | (put 'files-test-safe-result 'safe-local-variable 'booleanp) | 29 | (put 'files-test-safe-result 'safe-local-variable 'booleanp) |
| 30 | 30 | ||
| 31 | (defun files-test-fun1 () | 31 | (defun files-test-fun1 () |
| @@ -123,11 +123,11 @@ form.") | |||
| 123 | (defun file-test--do-local-variables-test (str test-settings) | 123 | (defun file-test--do-local-variables-test (str test-settings) |
| 124 | (with-temp-buffer | 124 | (with-temp-buffer |
| 125 | (insert str) | 125 | (insert str) |
| 126 | (setq files-test-result nil | ||
| 127 | files-test-safe-result nil) | ||
| 126 | (let ((enable-local-variables (nth 0 test-settings)) | 128 | (let ((enable-local-variables (nth 0 test-settings)) |
| 127 | (enable-local-eval (nth 1 test-settings)) | 129 | (enable-local-eval (nth 1 test-settings)) |
| 128 | (files-test-result nil) | 130 | (files-test-queried nil)) |
| 129 | (files-test-queried nil) | ||
| 130 | (files-test-safe-result nil)) | ||
| 131 | (hack-local-variables) | 131 | (hack-local-variables) |
| 132 | (eval (nth 2 test-settings))))) | 132 | (eval (nth 2 test-settings))))) |
| 133 | 133 | ||