GNU bug report logs - #27359
25.2; count-matches ^$

Previous Next

Package: emacs;

Reported by: Bruce Mardle <marblypup <at> yahoo.co.uk>

Date: Wed, 14 Jun 2017 15:28:01 UTC

Severity: normal

Found in version 25.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Bruce Mardle <marblypup <at> yahoo.co.uk>
Cc: 27359 <at> debbugs.gnu.org
Subject: bug#27359: 25.2; count-matches ^$
Date: Mon, 05 Jul 2021 16:31:02 +0200
Bruce Mardle <marblypup <at> yahoo.co.uk> writes:

>  I've got a file with 909-lines, 358 of which are blank. To my surprise,
> count-matches, given a patten of ^$ says there are 10 matches. It turns
> out those are the number of *runs* of blank lines (including 1 at the
> end). isearch-forward-regexp given ^$ treats the blank lines separately,
> as expected.

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.