Mercurial > emacs
diff lisp/emacs-lisp/re-builder.el @ 56382:a4c0ce40be3d
(reb-update-overlays): Distinguish between one and several matches in message.
author | John Paul Wallington <jpw@pobox.com> |
---|---|
date | Fri, 09 Jul 2004 17:16:59 +0000 |
parents | 14a47b65c288 |
children | 8b14a3e64595 029a652ac817 |
line wrap: on
line diff
--- a/lisp/emacs-lisp/re-builder.el Fri Jul 09 16:57:05 2004 +0000 +++ b/lisp/emacs-lisp/re-builder.el Fri Jul 09 17:16:59 2004 +0000 @@ -670,9 +670,10 @@ (overlay-put overlay 'priority i))) (setq i (1+ i)))))) (let ((count (if subexp submatches matches))) - (message"%s %smatch(es)%s" + (message"%s %smatch%s%s" (if (= 0 count) "No" (int-to-string count)) (if subexp "subexpression " "") + (if (= 1 count) "" "es") (if (and reb-auto-match-limit (= reb-auto-match-limit count)) " (limit reached)" "")))