diff options
| -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 |