From unknown Sat Aug 16 00:33:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27359 <27359@debbugs.gnu.org> To: bug#27359 <27359@debbugs.gnu.org> Subject: Status: 25.2; count-matches ^$ Reply-To: bug#27359 <27359@debbugs.gnu.org> Date: Sat, 16 Aug 2025 07:33:30 +0000 retitle 27359 25.2; count-matches ^$ reassign 27359 emacs submitter 27359 Bruce Mardle severity 27359 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 14 11:27:23 2017 Received: (at submit) by debbugs.gnu.org; 14 Jun 2017 15:27:23 +0000 Received: from localhost ([127.0.0.1]:47877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLACZ-0006vy-8y for submit@debbugs.gnu.org; Wed, 14 Jun 2017 11:27:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dL7DE-0000Wu-Mj for submit@debbugs.gnu.org; Wed, 14 Jun 2017 08:15:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL7D7-00025V-Qb for submit@debbugs.gnu.org; Wed, 14 Jun 2017 08:15:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dL7D7-00025P-Ij for submit@debbugs.gnu.org; Wed, 14 Jun 2017 08:15:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL7D5-0004aL-NU for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 08:15:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL7D2-00024r-Gj for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 08:15:43 -0400 Received: from sonic304-24.consmr.mail.ir2.yahoo.com ([77.238.179.149]:44718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL7D2-00024T-0R for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 08:15:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1497442538; bh=uyLlfhyANL6iwAcUIK5633Kmm3BDfsRQcdYGTsn+Ctg=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=aoRt/Sv8Mk+wyne5S8LlKTw5IZhAacLKzuVbHJd84T1zjf28vQQgoo5u1b68lR4/cDHAADxdIkJLrSKECokhw++MQexTeHNlfCbK4boAS7jxA37j9Ed/rU1w+wmdILLfwOFIaq6xfsdKWfIobGpwywBK39xx6YXH31YGHgcbjiGfpuIjdMBMKq3EN3P6+vcE+gHP7hN//gNkVsSUwuhB2aZgf040WDTrtRxfnYCzGkPcDpIN4+r7xDsKFg4yRup4x0UDJhuK2nwwbvR1onzEELSZFUwanZp0aXxUP6iWGqnf2l4bRfVYnNK4ZDPGqcL5K+02H8n24c5a+lhuQp+ANw== X-YMail-OSG: fjABUoYVM1mD.bcUkAl4MIf2xrQSk4a8dT6CMeHYipYO0pnncs3y7.CL5qAsWmd MAq_AhdBaPkspA4VGExUJqPzCqZIFHXQ_jMylXvbi57iha4xLX0WrArUvBFYONP2LvDrdUU53m2D 7OlKsz8u7MtxuMbYaO9NtA30tUfb8tmgy6SyrBhVgAYNaxIkzx5Orxgswx7gG.NCpROvAJRTqeiT ZReJEVhWuvocIC75.gMpIRJEzqmnoYg_Oy84kzEDOm7MRWmjXo6yw41HdlYyngMeMO9gsAeIfGZT _BYVZCV.1dyTZceURMkHzdoRs0HSC5eX6osD_qovNXDmuvbyu8yNERj8Lt7r4TIljZ.Z2S.yZwj7 bwvvsKFnSVindakDvMXFtYSV6DN4lsxPy6qOvSTwW0Zwe15Dq7DuQZW.qLaxEuXZ.J8OHutXqySb _MVY3vo.FaFUy3FXNu_qveGUyAcjH5JZIID28mLwp2yr.CQFVQhE9CQnnFjHAH.vKOguChuLjNqt Bl1TdWcY1qa8SqiN7yIeX Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Wed, 14 Jun 2017 12:15:38 +0000 Date: Wed, 14 Jun 2017 12:15:33 +0000 (UTC) From: Bruce Mardle To: "bug-gnu-emacs@gnu.org" Message-ID: <1541124559.16442896.1497442533741@mail.yahoo.com> Subject: 25.2; count-matches ^$ MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16442895_70436246.1497442533739" References: <1541124559.16442896.1497442533741.ref@mail.yahoo.com> X-Mailer: WebService/1.1.9778 YahooMailNeo Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Content-Length: 12721 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 14 Jun 2017 11:27:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bruce Mardle Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) ------=_Part_16442895_70436246.1497442533739 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. In GNU Emacs 25.2.1 (x86_64-unknown-cygwin) =C2=A0of 2017-04-21 built on moufang Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: =C2=A0'configure =C2=A0--srcdir=3D/home/kbrown/src/cygemacs/emacs-25.2-1.x86_64/src/emacs-25= .2 =C2=A0--prefix=3D/usr --exec-prefix=3D/usr --localstatedir=3D/var --sysconf= dir=3D/etc =C2=A0--docdir=3D/usr/share/doc/emacs --htmldir=3D/usr/share/doc/emacs/html= -C =C2=A0--with-w32 'CFLAGS=3D-ggdb -O2 -pipe -Wimplicit-function-declaration =C2=A0-fdebug-prefix-map=3D/home/kbrown/src/cygemacs/emacs-25.2-1.x86_64/bu= ild=3D/usr/src/debug/emacs-25.2-1 =C2=A0-fdebug-prefix-map=3D/home/kbrown/src/cygemacs/emacs-25.2-1.x86_64/sr= c/emacs-25.2=3D/usr/src/debug/emacs-25.2-1' =C2=A0CPPFLAGS=3D LDFLAGS=3D' Configured features: XPM JPEG TIFF GIF PNG IMAGEMAGICK SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: =C2=A0 value of $LANG: en_US.UTF-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Help Minor modes in effect: =C2=A0 display-time-mode: t =C2=A0 show-paren-mode: t =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t =C2=A0 buffer-read-only: t =C2=A0 line-number-mode: t =C2=A0 transient-mark-mode: t Recent messages: Eager macro-expansion failure: (void-variable height) For information about GNU Emacs and the GNU system, type C-h C-a. Mark saved where search started [6 times] Mark set [2 times] 10 occurrences Mark set Mark saved where search started Quit No library isearch.el in search path Type C-x 1 to delete the help window. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils eieio-opt speedbar sb-image ezimage dframe find-func thingatpt misearch multi-isearch browse-url url-util url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr password-cache url-vars avoid time paren cus-start cus-load time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind gfilenotify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 113245 5836) =C2=A0(symbols 48 22653 0) =C2=A0(miscs 40 78 243) =C2=A0(strings 32 23854 5007) =C2=A0(string-bytes 1 639594) =C2=A0(vectors 16 14638) =C2=A0(vector-slots 8 455632 4033) =C2=A0(floats 8 218 82) =C2=A0(intervals 56 240 0) =C2=A0(buffers 976 19)) ------=_Part_16442895_70436246.1497442533739 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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 turnsout those are the number of *runs* = of blank lines (including 1 at the
end). isearch-forward-regexp given ^$ treats the blank lines separately,<= br id=3D"yui_3_16_0_1_1497441659091_6671">as expected.



In GNU Emacs 25.2.1 (x86_64-unknown-cygwin)
 of 2017-04-21 built on moufang
Windowing system distributor 'Microsoft Corp.', version 6.1= .7601
Configured using:
 'configure
 --srcdir=3D/home/kbrown/src/cygemacs/emacs-25.2-1.x8= 6_64/src/emacs-25.2
 --prefi= x=3D/usr --exec-prefix=3D/usr --localstatedir=3D/var --sysconfdir=3D/etc --docdir=3D/usr/share/doc/ema= cs --htmldir=3D/usr/share/doc/emacs/html -C
 --with-w32 'CFLAGS=3D-ggdb -O2 -pipe -Wimplicit-function-d= eclaration
 -fdebug-prefix-m= ap=3D/home/kbrown/src/cygemacs/emacs-25.2-1.x86_64/build=3D/usr/src/debug/e= macs-25.2-1
 -fdebug-prefix-= map=3D/home/kbrown/src/cygemacs/emacs-25.2-1.x86_64/src/emacs-25.2=3D/usr/s= rc/debug/emacs-25.2-1'
 CPPF= LAGS=3D LDFLAGS=3D'

Configured features:
XPM JPEG TIFF GIF PNG IMAGEMAGICK SOUND DBUS NOTIFY ACL G= NUTLS LIBXML2
ZLIB TOOLKIT_SCROLL= _BARS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Help

Minor modes in effect:
&nb= sp; display-time-mode: t
  s= how-paren-mode: t
  tooltip-= mode: t
  global-eldoc-mode:= t
  electric-indent-mode: t=
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Eager macro-expansion failure: (void-variab= le height)
For information about = GNU Emacs and the GNU system, type C-h C-a.
Mark saved where search started [6 times]
Mark set [2 times]
10 occurrences
Mark set
Mark saved where search started
Quit
No library isearch.el in search path
Type C-x 1 to delete the help window.

Load-path sha= dows:
None found.

Featu= res:
(shadow sort mail-extr emacs= bug message dired format-spec rfc822 mml
mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc= 2231
mailabbrev gmm-utils mailhea= der sendmail rfc2047 rfc2045 ietf-drums
mail-utils eieio-opt speedbar sb-image ezimage dframe find-func
thingatpt misearch multi-isearch brow= se-url url-util url-parse
auth-so= urce cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv
eieio-core cl-macs gv gnus-util mm-util help= -fns help-mode easymenu
cl-loadde= fs pcase cl-lib mail-prsvr password-cache url-vars avoid time
paren cus-start cus-load time-date mule-util t= ooltip eldoc electric
uniquify ed= iff-hook vc-hooks lisp-float-type mwheel disp-table w32-win
w32-vars term/common-win tool-bar dnd fontset im= age regexp-opt fringe
tabulated-l= ist newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mou= se jit-lock font-lock
syntax face= menu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao kore= an japanese eucjp-ms
cp51932 hebr= ew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-= cmpr-hook help
simple abbrev mini= buffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 b= ase64 format
env code-pages mule = custom widget hashtable-print-readable backquote
dbusbind gfilenotify w32 multi-tty make-network-process ema= cs)

Memory information:
((conses 16 113245 5836)
 (= symbols 48 22653 0)
 (miscs = 40 78 243)
 (strings 32 2385= 4 5007)
 (string-bytes 1 639= 594)
 (vectors 16 14638)
 (vector-slots 8 455632 4033) (floats 8 218 82)
 (intervals 56 240 0)
 (buffers 976 19))

------=_Part_16442895_70436246.1497442533739-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 14 12:25:00 2017 Received: (at 27359) by debbugs.gnu.org; 14 Jun 2017 16:25:00 +0000 Received: from localhost ([127.0.0.1]:47924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLB6K-0001jo-23 for submit@debbugs.gnu.org; Wed, 14 Jun 2017 12:25:00 -0400 Received: from sonic303-22.consmr.mail.ir2.yahoo.com ([77.238.178.203]:38833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLAI6-00074x-OW for 27359@debbugs.gnu.org; Wed, 14 Jun 2017 11:33:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1497454379; bh=LTNeqABHRqBACkpPBqJx2IdpOTW4cypzr6Gne8txAe4=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=KDHpatCPZzuM3y+L/GgRhUxOlvrdm29sS7La1jMS65A/lg5WILw5/hLQm3PGuU1+d7d2YHPdA/6itnspXgY3sOe5u/DnsrSstEXP+YqQqj63Jh4FDMlhiZlz6jbTv5/u3mzd41oRkoqGci4eouylNJhXqtqsRVrkv/bfGrSjbe1PGyyuGtExFNiiAPOuk0bynaf7fbhYtvwb8TmK112jzz+yZJUMO11+CP/QHQ/2gO/gaSTt+TdiOa6gDOsjBnnI1jPwzGH0NztP+KfBHc4785C4bQheHIR8CH/G5A16BO1xvlbSxbfrAUDMzdf8bs0O/sr9qR2yS4PLaTpt8FDHEw== X-YMail-OSG: Zex1GXoVM1m6qHc1G0zHJ7dyQV7ggSvrmGrv5soF3GgBE_XDFB6x8CaVmybmDt. QRSMclRS7Gs4rpaziupn9pCPtoG13m1n9a4xqrblYpDCvZH7x4Y2pMeAy7BoDjsiek3cgX0dzYw. 7Eg0eZPCRtHsRjzf1dNlmELCmc0nownhz9ZhgIE3D94RKHNz3HOzFxhT3LFFrqyNbFcQDRxYOQVS jJUvURDzrCgMVTc35IkvQJ4aDgXIovAdRwcrKqpZTHA2ZzvTDuwlZJXkB.TFZkNNEUDJffX4n9T2 Ct4A_uKL6blk3nv_xWdSGtxqQZQ41aI.Qp7WNq_227gZFoUVxdS0qb81.kksqyxhKYZkZvjqH_B_ caWnUD.Cs0zVVDR5vqbmIEQQIlc6XjkYplZDor3NflewZQ6rrRdBr_6uFGXSxtcW3T7US8_PGXLc wT69ymWIIcOPgCG7ZpvCYtDpJJVnbdEt.T0N3AV5anF3uu8mgEcQs_u1ljY6CYgxT3ppjwi5qIVi Lf_eXYkBmLxs6BlQ1mfqguFKn Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Wed, 14 Jun 2017 15:32:59 +0000 Date: Wed, 14 Jun 2017 15:32:58 +0000 (UTC) From: Bruce Mardle To: "27359@debbugs.gnu.org" <27359@debbugs.gnu.org> Message-ID: <1314569610.16577608.1497454378853@mail.yahoo.com> Subject: count-matches vs. ^$ MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16577607_341747282.1497454378852" References: <1314569610.16577608.1497454378853.ref@mail.yahoo.com> X-Mailer: WebService/1.1.9778 YahooMailNeo Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Content-Length: 648 X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 27359 X-Mailman-Approved-At: Wed, 14 Jun 2017 12:24:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bruce Mardle Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------=_Part_16577607_341747282.1497454378852 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Someone on comp.emacs has posted a fix. ------=_Part_16577607_341747282.1497454378852 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Someone on comp.emacs has posted a fix.

------=_Part_16577607_341747282.1497454378852-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 20:39:58 2017 Received: (at 27359) by debbugs.gnu.org; 2 Jul 2017 00:39:59 +0000 Received: from localhost ([127.0.0.1]:48046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRSve-0008T0-Nh for submit@debbugs.gnu.org; Sat, 01 Jul 2017 20:39:58 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:34685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRSve-0008Sm-0m for 27359@debbugs.gnu.org; Sat, 01 Jul 2017 20:39:58 -0400 Received: by mail-io0-f179.google.com with SMTP id r36so40140498ioi.1 for <27359@debbugs.gnu.org>; Sat, 01 Jul 2017 17:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zfl8DieBUVU0rRUe8UAKAepoz6/bx2nZjZjR+8EUVAY=; b=l/6rLUZK4+14qYz7FmkCyP6LbEIWb6zbrDQhfy579lDEN3oHAKk6O/zWeQXyua3Me1 herLP8jnkbgZgoGC0HwW8hXEFchrKlSGH5fjdBZ3cFJCMBimmKrlaHKjG+Ub3sJPbEbI IoKHgl2NveqvGvb0zFheUh0Fw6Pg74vOakunvj4pH9h+yQONzXKik5dT4UxABT+Fx1IK +FWPpYXE8S9y3jdRECdsPcnGIFbnHMvU+XLyL7aXRQ3m5quGQ6Ow2WxOwItIi3xsB0Ec iEnO/1you8Ykqsh10iIApppCUDQFklBcf9Eeip3DH+EXMLfCvZOnmCh4fyIXKHYzyHe3 fT8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=zfl8DieBUVU0rRUe8UAKAepoz6/bx2nZjZjR+8EUVAY=; b=mnGtFktkVsX9dyljYLC2wbfszB57WP2TGwxIqBNwL0FgRSAO/yPDQoTn+119ldUUGx eB4++eucFymBkyEI3iXZQfSnvXmYyWOD+xtlLh40kvWdrHrre99QTYzOnGj1TyVTsdwF VRBl3Ujtal4PVNHlzcxBNzt8plPyo9waVUJKzJSXrKgOFGcY6acRS72myd5nnd8h82KH uJC8XGJKzqIjwRMtpnKu/vD6GfZXZCAsChfq2OxbZxIapuxUTMMCK31zu1+MSAKPN8MX n2kgXE+9O2qMENK+Z+HMMA9E7rIbDl9Xiqyz0W2WRew9puXnykaOS+PrpYWs5NPKQJPF StLg== X-Gm-Message-State: AIVw112V1oqRDdGOOI9VOBtvxuT0lw5WjQfXJlDDGvoo5pNlZb/g8wLY hsKovNvvL6JzMQvg X-Received: by 10.107.55.8 with SMTP id e8mr9203731ioa.89.1498955992292; Sat, 01 Jul 2017 17:39:52 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id r87sm5040111ioe.49.2017.07.01.17.39.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Jul 2017 17:39:51 -0700 (PDT) From: npostavs@users.sourceforge.net To: Bruce Mardle Subject: Re: bug#27359: count-matches vs. ^$ References: <1314569610.16577608.1497454378853.ref@mail.yahoo.com> <1314569610.16577608.1497454378853@mail.yahoo.com> Date: Sat, 01 Jul 2017 20:41:27 -0400 In-Reply-To: <1314569610.16577608.1497454378853@mail.yahoo.com> (Bruce Mardle's message of "Wed, 14 Jun 2017 15:32:58 +0000 (UTC)") Message-ID: <874luvllfs.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 27359 Cc: "27359@debbugs.gnu.org" <27359@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Bruce Mardle writes: > Someone on comp.emacs has posted a fix. Perhaps they'd like to contribute it to Emacs? From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 05 10:31:13 2021 Received: (at 27359) by debbugs.gnu.org; 5 Jul 2021 14:31:13 +0000 Received: from localhost ([127.0.0.1]:46360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Pcv-0005RK-36 for submit@debbugs.gnu.org; Mon, 05 Jul 2021 10:31:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Pct-0005Lg-Lq for 27359@debbugs.gnu.org; Mon, 05 Jul 2021 10:31:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OWN5K0adtgHe2ncOpfT6lER24bkHdOLXRkI4O4ACqjE=; b=V8xn0ph/ycx5yV8QJUUKE44Nu7 UNW/WbPmU+KagLaP53h4wpz21TwAC0arBRLBaYawz+A2QOmLxFAaIofeTlVlyqjlkbUi29w+q9D9M 958gUihvJqlC1JWLwso8/50kEPMV8BXLyAgu63QuO1yVTCSIwTEarIVrF9H4JkF4R58Y=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Pck-0005I7-Vd; Mon, 05 Jul 2021 16:31:05 +0200 From: Lars Ingebrigtsen To: Bruce Mardle Subject: Re: bug#27359: 25.2; count-matches ^$ References: <1541124559.16442896.1497442533741.ref@mail.yahoo.com> <1541124559.16442896.1497442533741@mail.yahoo.com> X-Now-Playing: Neil Young with Crazy Horse's _Archives Vol. II (8): Dume (1975)_: "Pardon My Heart" Date: Mon, 05 Jul 2021 16:31:02 +0200 In-Reply-To: <1541124559.16442896.1497442533741@mail.yahoo.com> (Bruce Mardle's message of "Wed, 14 Jun 2017 12:15:33 +0000 (UTC)") Message-ID: <87zgv0x26x.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Bruce Mardle 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27359 Cc: 27359@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Bruce Mardle 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 05 10:31:16 2021 Received: (at control) by debbugs.gnu.org; 5 Jul 2021 14:31:16 +0000 Received: from localhost ([127.0.0.1]:46363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Pcy-0005UG-AM for submit@debbugs.gnu.org; Mon, 05 Jul 2021 10:31:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Pcx-0005P0-Ba for control@debbugs.gnu.org; Mon, 05 Jul 2021 10:31:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/Ob4cYLpwZjsvThH4yc56es2UMAOxeD3LpEj9Em6e3k=; b=Q8RcvW+GHwpnAATjI+vWXIGiOS 1QeCIHLnI0c4U1Vp4w3p/Jc+rZp26/Cb5hjfsjCAw2in8jZnJi45nAewXRenfDS6O4hhoNcs3yjy8 n4KG8htbEJBS1Ra3txo29356K6doR0+FtjQmzERcF+/wZJj2atlZ8aYdpp5GKduxe4Iw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Pcp-0005IH-Oz for control@debbugs.gnu.org; Mon, 05 Jul 2021 16:31:09 +0200 Date: Mon, 05 Jul 2021 16:31:07 +0200 Message-Id: <87y2akx26s.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27359 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 27359 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 27359 28.1 quit From unknown Sat Aug 16 00:33:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Aug 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator