diff options
| author | Stefan Monnier | 2010-05-08 16:51:08 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-05-08 16:51:08 -0400 |
| commit | f913fe7d54ced4847d0fb5386b64c951561e9f33 (patch) | |
| tree | f1e067b699b5003db1b562fb6ceb8231a1c72e5d | |
| parent | 0235128c15aabd21b37e7a359b4932709471f156 (diff) | |
| download | emacs-f913fe7d54ced4847d0fb5386b64c951561e9f33.tar.gz emacs-f913fe7d54ced4847d0fb5386b64c951561e9f33.zip | |
* progmodes/compile.el (compilation-buffer-modtime): Rename from
buffer-modtime. Adjust users.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f331e8b07f7..03514594352 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-buffer-modtime): Rename from | ||
| 4 | buffer-modtime. Adjust users. | ||
| 5 | |||
| 1 | 2010-05-08 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-05-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * international/mule.el (auto-coding-alist): Only purecopy | 8 | * international/mule.el (auto-coding-alist): Only purecopy |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f5fd9fd6608..7000b4bbc8a 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -748,9 +748,9 @@ Faces `compilation-error-face', `compilation-warning-face', | |||
| 748 | "If non-nil, automatically jump to the next error encountered.") | 748 | "If non-nil, automatically jump to the next error encountered.") |
| 749 | (make-variable-buffer-local 'compilation-auto-jump-to-next) | 749 | (make-variable-buffer-local 'compilation-auto-jump-to-next) |
| 750 | 750 | ||
| 751 | (defvar buffer-modtime nil | 751 | (defvar compilation-buffer-modtime nil |
| 752 | "The buffer modification time, for buffers not associated with files.") | 752 | "The buffer modification time, for buffers not associated with files.") |
| 753 | (make-variable-buffer-local 'buffer-modtime) | 753 | (make-variable-buffer-local 'compilation-buffer-modtime) |
| 754 | 754 | ||
| 755 | (defvar compilation-skip-to-next-location t | 755 | (defvar compilation-skip-to-next-location t |
| 756 | "*If non-nil, skip multiple error messages for the same source location.") | 756 | "*If non-nil, skip multiple error messages for the same source location.") |
| @@ -1588,7 +1588,7 @@ Runs `compilation-mode-hook' with `run-mode-hooks' (which see). | |||
| 1588 | mode-name (or name-of-mode "Compilation")) | 1588 | mode-name (or name-of-mode "Compilation")) |
| 1589 | (set (make-local-variable 'page-delimiter) | 1589 | (set (make-local-variable 'page-delimiter) |
| 1590 | compilation-page-delimiter) | 1590 | compilation-page-delimiter) |
| 1591 | (set (make-local-variable 'buffer-modtime) nil) | 1591 | (set (make-local-variable 'compilation-buffer-modtime) nil) |
| 1592 | (compilation-setup) | 1592 | (compilation-setup) |
| 1593 | (setq buffer-read-only t) | 1593 | (setq buffer-read-only t) |
| 1594 | (run-mode-hooks 'compilation-mode-hook)) | 1594 | (run-mode-hooks 'compilation-mode-hook)) |
| @@ -1804,7 +1804,7 @@ and runs `compilation-filter-hook'." | |||
| 1804 | (unless comint-inhibit-carriage-motion | 1804 | (unless comint-inhibit-carriage-motion |
| 1805 | (comint-carriage-motion (process-mark proc) (point))) | 1805 | (comint-carriage-motion (process-mark proc) (point))) |
| 1806 | (set-marker (process-mark proc) (point)) | 1806 | (set-marker (process-mark proc) (point)) |
| 1807 | (set (make-local-variable 'buffer-modtime) (current-time)) | 1807 | (set (make-local-variable 'compilation-buffer-modtime) (current-time)) |
| 1808 | (run-hooks 'compilation-filter-hook)) | 1808 | (run-hooks 'compilation-filter-hook)) |
| 1809 | (goto-char pos) | 1809 | (goto-char pos) |
| 1810 | (narrow-to-region min max) | 1810 | (narrow-to-region min max) |
| @@ -1978,7 +1978,7 @@ This is the value of `next-error-function' in Compilation buffers." | |||
| 1978 | ;; There may be no timestamp info if the loc is a `fake-loc', | 1978 | ;; There may be no timestamp info if the loc is a `fake-loc', |
| 1979 | ;; but we just checked that the file has been visited before! | 1979 | ;; but we just checked that the file has been visited before! |
| 1980 | (equal (nth 4 loc) | 1980 | (equal (nth 4 loc) |
| 1981 | (setq timestamp buffer-modtime))) | 1981 | (setq timestamp compilation-buffer-modtime))) |
| 1982 | (with-current-buffer (compilation-find-file marker (caar (nth 2 loc)) | 1982 | (with-current-buffer (compilation-find-file marker (caar (nth 2 loc)) |
| 1983 | (cadr (car (nth 2 loc)))) | 1983 | (cadr (car (nth 2 loc)))) |
| 1984 | (save-restriction | 1984 | (save-restriction |