emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 544db1e: Faster grep pattern for identifiers


From: Dmitry Gutov
Subject: Re: master 544db1e: Faster grep pattern for identifiers
Date: Wed, 15 Sep 2021 21:39:36 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 15.09.2021 21:14, Eli Zaretskii wrote:
Cc:mattiase@acm.org,emacs-devel@gnu.org
From: Dmitry Gutov<dgutov@yandex.ru>
Date: Wed, 15 Sep 2021 21:06:09 +0300

On 15.09.2021 19:33, Eli Zaretskii wrote:
And what about the "alternative Grep's"?
The author of the commit uses one such Grep.

I also tested with ripgrep, to similar success.
So they all have, miraculously, the same notion of what is a word,
regardless of the programming language and the script/character set?
Amazing.

Not exactly (e.g. Grep includes international chars in the "word" set, and Ripgrep does not), but the notions of "not word" are compatible enough for our purposes.

Speaking of Ripgrep, the compatible behavior of -w is only with recent versions (reported and fixed in https://github.com/BurntSushi/ripgrep/issues/389), starting with 0.10.0. Debian 10 and Fedora 31 include that versions or newer (https://repology.org/project/ripgrep/versions).

Not that it's really important: we don't support Ripgrep officially.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]