summaryrefslogtreecommitdiff
path: root/lisp/complete.el
diff options
context:
space:
mode:
authorDeepak Goel <deego@gnufans.org>2007-12-06 00:17:56 +0000
committerDeepak Goel <deego@gnufans.org>2007-12-06 00:17:56 +0000
commitf6e7ec024870e8ccaaed5bc2e0d92fde7554e16b (patch)
treea3477c8e5705009d64f3b58a94e4845639468698 /lisp/complete.el
parent8aa8da0595964fc0a0e5980b05afed9050031abe (diff)
downloademacs-f6e7ec024870e8ccaaed5bc2e0d92fde7554e16b.tar.gz
Fix possibly buggy calls to `message'.
Diffstat (limited to 'lisp/complete.el')
-rw-r--r--lisp/complete.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/complete.el b/lisp/complete.el
index e1d0ef07df4..b3a4928dd53 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -381,9 +381,9 @@ of `minibuffer-completion-table' and the minibuffer contents.")
;; Returns the sequence of non-delimiter characters that follow regexp in string.
(defun PC-chunk-after (string regexp)
(if (not (string-match regexp string))
- (let ((message (format "String %s didn't match regexp %s" string regexp)))
- (message message)
- (error message)))
+ (let ((message "String %s didn't match regexp %s"))
+ (message message string regexp)
+ (error message string regexp)))
(let ((result (substring string (match-end 0))))
;; result may contain multiple chunks
(if (string-match PC-delim-regex result)
@@ -869,7 +869,7 @@ GOTO-END is non-nil, however, it instead replaces up to END."
(defun PC-temp-minibuffer-message (message)
"A Lisp version of `temp_minibuffer_message' from minibuf.c."
(cond (PC-not-minibuffer
- (message message)
+ (message "%s" message)
(sit-for 2)
(message ""))
((fboundp 'temp-minibuffer-message)