Mercurial > emacs
changeset 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 | aa091bac0a8a |
children | 7c87802f72c0 |
files | lisp/emacs-lisp/re-builder.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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)" "")))