Mercurial > emacs
comparison lisp/replace.el @ 46004:43acdf05b0cf
(occur-1): Avoid invalid message format string.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Tue, 25 Jun 2002 09:54:26 +0000 |
parents | 0283e01a73b2 |
children | b4e553fa1fa8 |
comparison
equal
deleted
inserted
replaced
46003:503e1f14ba3d | 46004:43acdf05b0cf |
---|---|
702 (or nlines list-matching-lines-default-context-lines) | 702 (or nlines list-matching-lines-default-context-lines) |
703 (and case-fold-search | 703 (and case-fold-search |
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 |
726 (with-current-buffer (get-buffer buf-name) | 718 (with-current-buffer (get-buffer buf-name) |
727 (kill-buffer (current-buffer))) | 719 (kill-buffer (current-buffer))) |