]> code.delx.au - gnu-emacs/commitdiff
(reb-update-overlays): Distinguish between one and several matches in message.
authorJohn Paul Wallington <jpw@pobox.com>
Fri, 9 Jul 2004 17:16:59 +0000 (17:16 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Fri, 9 Jul 2004 17:16:59 +0000 (17:16 +0000)
lisp/emacs-lisp/re-builder.el

index 83d3649006e24b4fce73fa11c12aececfb221962..c6112c4a105d767f03cc2385a4e01edff7da06aa 100644 (file)
@@ -670,9 +670,10 @@ If SUBEXP is non-nil mark only the corresponding sub-expressions."
                  (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)" "")))