diff options
| author | Andreas Schwab | 2002-06-25 09:54:26 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2002-06-25 09:54:26 +0000 |
| commit | b2043e7bf33d0ec24ff082c0f8b1a9570fced1fa (patch) | |
| tree | 13396c8fdadf1061729cd15103c363a5a5c406c5 /lisp/replace.el | |
| parent | ba76e7fac50d8ddf96360f467b90f8b48361bafd (diff) | |
| download | emacs-b2043e7bf33d0ec24ff082c0f8b1a9570fced1fa.tar.gz emacs-b2043e7bf33d0ec24ff082c0f8b1a9570fced1fa.zip | |
(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'." | |||
| 704 | (isearch-no-upper-case-p regexp t)) | 704 | (isearch-no-upper-case-p regexp t)) |
| 705 | list-matching-lines-buffer-name-face | 705 | list-matching-lines-buffer-name-face |
| 706 | nil list-matching-lines-face nil))) | 706 | nil list-matching-lines-face nil))) |
| 707 | (let* ((diff (- (length bufs) (length active-bufs))) | 707 | (let* ((bufcount (length active-bufs)) |
| 708 | (bufcount (- (length bufs) diff)) | 708 | (diff (- (length bufs) bufcount))) |
| 709 | (msg (concat | 709 | (message "Searched %d buffer%s%s; %s match%s for `%s'" |
| 710 | (format "Searched %d buffer%s" bufcount (if (= bufcount 1) "" "s")) | 710 | bufcount (if (= bufcount 1) "" "s") |
| 711 | "%s; " | 711 | (if (zerop diff) "" (format " (%d killed)" diff)) |
| 712 | (format "%s match%s for `%s'" | 712 | (if (zerop count) "no" (format "%d" count)) |
| 713 | (if (zerop count) | 713 | (if (= count 1) "" "es") |
| 714 | "no" | 714 | regexp)) |
| 715 | (format "%d" count)) | ||
| 716 | (if (= count 1) | ||
| 717 | "" | ||
| 718 | "es") | ||
| 719 | regexp)))) | ||
| 720 | (message msg (if (zerop diff) | ||
| 721 | "" | ||
| 722 | (format " (%d killed)" diff)))) | ||
| 723 | ;; If we had to make a temporary buffer, make it the *Occur* | 715 | ;; If we had to make a temporary buffer, make it the *Occur* |
| 724 | ;; buffer now. | 716 | ;; buffer now. |
| 725 | (when made-temp-buf | 717 | (when made-temp-buf |