GNU bug report logs - #23426
25.0.93; dired-do-find-regexp doesn't find newline

Previous Next

Package: emacs;

Reported by: Heinz Rommerskirchen <heinz <at> h-rommerskirchen.de>

Date: Mon, 2 May 2016 17:19:02 UTC

Severity: normal

Merged with 24305

Found in versions 25.0.93, 25.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 23426 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23426 <at> debbugs.gnu.org, Heinz Rommerskirchen <heinz <at> h-rommerskirchen.de>
Subject: Re: bug#23426: 25.0.93; dired-do-find-regexp doesn't find newline
Date: Tue, 3 May 2016 23:59:08 +0300
On 05/03/2016 10:00 PM, Glenn Morris wrote:

>> You can't search for an empty line following a letter 'A' this way, though.
>
> No, but that's not what the OP's example was.
> (The "A" is the keybinding that triggers the search, not part of the search.)

Oh. So your example is a direct equivalent. Thanks.

> There is "grep -z" for multi-line searches, BTW, but it's a bit clunky.

I looked at 'grep -zo', but it doesn't seem suitable for our purpose: 
there's no way to make it output the correct line number. So we'd have 
to load each file in Emacs fully and search it them through ourselves a 
second time.

> Also "pcregrep".

It looks like a better choice, but it's not installed on most systems 
AFAICT (it wasn't on mine), and xref doesn't really know what to do with 
multiline matches anyway yet (?).




This bug report was last modified 8 years and 270 days ago.

Previous Next


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