From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 544db1e: Faster grep pattern for identifiers Date: Wed, 15 Sep 2021 19:33:13 +0300 Message-ID: <83bl4tbxyu.fsf@gnu.org> References: <83h7elbzo3.fsf@gnu.org> <7b0409e3-fc88-b34e-9365-25356bb85859@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33624"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 15 19:11:14 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQYRG-0008ZW-Jq for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 19:11:14 +0200 Original-Received: from localhost ([::1]:36992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQYRE-0005k5-RM for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 13:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXqW-0007n7-7v for emacs-devel@gnu.org; Wed, 15 Sep 2021 12:33:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42756) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXqV-0006Xm-GW; Wed, 15 Sep 2021 12:33:16 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4415 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXqU-0006cs-4g; Wed, 15 Sep 2021 12:33:15 -0400 In-Reply-To: <7b0409e3-fc88-b34e-9365-25356bb85859@yandex.ru> (message from Dmitry Gutov on Wed, 15 Sep 2021 19:25:25 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274754 Archived-At: > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > Date: Wed, 15 Sep 2021 19:25:25 +0300 > > The latest Grep manual describes it correctly: > > -w, --word-regexp > Select only those lines containing matches that > form whole words. The test is that the matching substring must either > be at the beginning of the line, or preceded by a non-word > constituent character. Similarly, it must be either at > the end of the line or followed by a non-word constituent character. > Word-constituent characters are letters, digits, and the > underscore. That's only GNU Grep, no? And what about the "alternative Grep's"?