diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-06-04 15:31:01 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-06-04 15:31:01 +0000 |
commit | e764ecd33359ba0967c147d9ffcb1f6fe79c621e (patch) | |
tree | ed2ba28c792744381540256977de13bd582c0ac6 | |
parent | 6267ed8d04e3c031aa6866b8ce54313c0c528929 (diff) | |
download | emacs-e764ecd33359ba0967c147d9ffcb1f6fe79c621e.tar.gz |
(occur): Avoid "1 lines" in echo area.
-rw-r--r-- | lisp/replace.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 747adbe27e4..90c66fa47c0 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -448,11 +448,13 @@ It serves as a menu to find any of the occurrences in this buffer. ;; Put positions in increasing order to go with buffer. (setq occur-pos-list (nreverse occur-pos-list)) (goto-char (point-min)) - (if (= (length occur-pos-list) 1) - (insert "1 line") - (insert (format "%d lines" (length occur-pos-list)))) - (if (interactive-p) - (message "%d matching lines." (length occur-pos-list))))))))) + (let ((message-string + (if (= (length occur-pos-list) 1) + "1 line" + (format "%d lines" (length occur-pos-list))))) + (insert message-string) + (if (interactive-p) + (message "%s matched" message-string))))))))) ;; It would be nice to use \\[...], but there is no reasonable way ;; to make that display both SPC and Y. |