diff options
| author | Simon Marshall | 1999-01-06 10:22:13 +0000 |
|---|---|---|
| committer | Simon Marshall | 1999-01-06 10:22:13 +0000 |
| commit | b66d85334bb3f5ce4e6191a2f1f31be84b3c8874 (patch) | |
| tree | 85d53e23a7a78081c5b2a78bacccc44b68d359dd | |
| parent | 20af777c0f2bb6127991727f6d113a43cc7aaad8 (diff) | |
| download | emacs-b66d85334bb3f5ce4e6191a2f1f31be84b3c8874.tar.gz emacs-b66d85334bb3f5ce4e6191a2f1f31be84b3c8874.zip | |
* fast-lock.el (fast-lock-save-cache-1):
(fast-lock-cache-data): When using with-temp-message, use nil rather
than current-message.
| -rw-r--r-- | lisp/fast-lock.el | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lisp/fast-lock.el b/lisp/fast-lock.el index b9308a8265f..859ec239c42 100644 --- a/lisp/fast-lock.el +++ b/lisp/fast-lock.el | |||
| @@ -217,10 +217,15 @@ | |||
| 217 | ;; We use this for compatibility with a future Emacs. | 217 | ;; We use this for compatibility with a future Emacs. |
| 218 | (or (fboundp 'with-temp-message) | 218 | (or (fboundp 'with-temp-message) |
| 219 | (defmacro with-temp-message (message &rest body) | 219 | (defmacro with-temp-message (message &rest body) |
| 220 | (` (let ((current-message (current-message))) | 220 | (` (let ((temp-message (, message)) current-message) |
| 221 | (unwind-protect | 221 | (unwind-protect |
| 222 | (progn (message (, message)) (,@ body)) | 222 | (progn |
| 223 | (message current-message)))))) | 223 | (when temp-message |
| 224 | (setq current-message (current-message)) | ||
| 225 | (message temp-message)) | ||
| 226 | (,@ body)) | ||
| 227 | (when temp-message | ||
| 228 | (message current-message))))))) | ||
| 224 | ;; | 229 | ;; |
| 225 | ;; We use this for compatibility with a future Emacs. | 230 | ;; We use this for compatibility with a future Emacs. |
| 226 | (or (fboundp 'defcustom) | 231 | (or (fboundp 'defcustom) |
| @@ -574,9 +579,8 @@ See `fast-lock-cache-directory'." | |||
| 574 | fast-lock-verbose)) | 579 | fast-lock-verbose)) |
| 575 | (saved t)) | 580 | (saved t)) |
| 576 | (with-temp-message | 581 | (with-temp-message |
| 577 | (if verbose | 582 | (when verbose |
| 578 | (format "Saving %s font lock cache..." (buffer-name)) | 583 | (format "Saving %s font lock cache..." (buffer-name))) |
| 579 | (current-message)) | ||
| 580 | (condition-case nil | 584 | (condition-case nil |
| 581 | (save-excursion | 585 | (save-excursion |
| 582 | (print (list 'fast-lock-cache-data 3 | 586 | (print (list 'fast-lock-cache-data 3 |
| @@ -631,9 +635,8 @@ See `fast-lock-cache-directory'." | |||
| 631 | (not (equal keywords font-lock-keywords))) | 635 | (not (equal keywords font-lock-keywords))) |
| 632 | (setq loaded nil) | 636 | (setq loaded nil) |
| 633 | (with-temp-message | 637 | (with-temp-message |
| 634 | (if verbose | 638 | (when verbose |
| 635 | (format "Loading %s font lock cache..." (buffer-name)) | 639 | (format "Loading %s font lock cache..." (buffer-name))) |
| 636 | (current-message)) | ||
| 637 | (condition-case nil | 640 | (condition-case nil |
| 638 | (fast-lock-add-properties syntactic-properties face-properties) | 641 | (fast-lock-add-properties syntactic-properties face-properties) |
| 639 | (error (setq loaded 'error)) (quit (setq loaded 'quit)))) | 642 | (error (setq loaded 'error)) (quit (setq loaded 'quit)))) |