# HG changeset patch # User Simon Marshall # Date 915618133 0 # Node ID c78112715e6cc2dbbef0e3806ddfadb32c0425cc # Parent 42a8238f05977d76d586f84245b928ba0099bfbc * fast-lock.el (fast-lock-save-cache-1): (fast-lock-cache-data): When using with-temp-message, use nil rather than current-message. diff -r 42a8238f0597 -r c78112715e6c lisp/fast-lock.el --- a/lisp/fast-lock.el Wed Jan 06 10:16:28 1999 +0000 +++ b/lisp/fast-lock.el Wed Jan 06 10:22:13 1999 +0000 @@ -217,10 +217,15 @@ ;; We use this for compatibility with a future Emacs. (or (fboundp 'with-temp-message) (defmacro with-temp-message (message &rest body) - (` (let ((current-message (current-message))) + (` (let ((temp-message (, message)) current-message) (unwind-protect - (progn (message (, message)) (,@ body)) - (message current-message)))))) + (progn + (when temp-message + (setq current-message (current-message)) + (message temp-message)) + (,@ body)) + (when temp-message + (message current-message))))))) ;; ;; We use this for compatibility with a future Emacs. (or (fboundp 'defcustom) @@ -574,9 +579,8 @@ fast-lock-verbose)) (saved t)) (with-temp-message - (if verbose - (format "Saving %s font lock cache..." (buffer-name)) - (current-message)) + (when verbose + (format "Saving %s font lock cache..." (buffer-name))) (condition-case nil (save-excursion (print (list 'fast-lock-cache-data 3 @@ -631,9 +635,8 @@ (not (equal keywords font-lock-keywords))) (setq loaded nil) (with-temp-message - (if verbose - (format "Loading %s font lock cache..." (buffer-name)) - (current-message)) + (when verbose + (format "Loading %s font lock cache..." (buffer-name))) (condition-case nil (fast-lock-add-properties syntactic-properties face-properties) (error (setq loaded 'error)) (quit (setq loaded 'quit))))