diff options
author | Andreas Schwab <schwab@suse.de> | 2002-06-25 09:54:26 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2002-06-25 09:54:26 +0000 |
commit | b2043e7bf33d0ec24ff082c0f8b1a9570fced1fa (patch) | |
tree | 13396c8fdadf1061729cd15103c363a5a5c406c5 /lisp/replace.el | |
parent | ba76e7fac50d8ddf96360f467b90f8b48361bafd (diff) | |
download | emacs-b2043e7bf33d0ec24ff082c0f8b1a9570fced1fa.tar.gz |
(occur-1): Avoid invalid message format string.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r-- | lisp/replace.el | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 6899847be08..a182df02ca4 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -704,22 +704,14 @@ See also `multi-occur'." (isearch-no-upper-case-p regexp t)) list-matching-lines-buffer-name-face nil list-matching-lines-face nil))) - (let* ((diff (- (length bufs) (length active-bufs))) - (bufcount (- (length bufs) diff)) - (msg (concat - (format "Searched %d buffer%s" bufcount (if (= bufcount 1) "" "s")) - "%s; " - (format "%s match%s for `%s'" - (if (zerop count) - "no" - (format "%d" count)) - (if (= count 1) - "" - "es") - regexp)))) - (message msg (if (zerop diff) - "" - (format " (%d killed)" diff)))) + (let* ((bufcount (length active-bufs)) + (diff (- (length bufs) bufcount))) + (message "Searched %d buffer%s%s; %s match%s for `%s'" + bufcount (if (= bufcount 1) "" "s") + (if (zerop diff) "" (format " (%d killed)" diff)) + (if (zerop count) "no" (format "%d" count)) + (if (= count 1) "" "es") + regexp)) ;; If we had to make a temporary buffer, make it the *Occur* ;; buffer now. (when made-temp-buf |