From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "tomas@tuxteam.de" Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: How to grep for a string spanning multiple lines? Date: Mon, 28 Nov 2022 06:07:46 +0100 Message-ID: References: <8735a6cj2k.fsf@mbork.pl> <87y1rxix4e.fsf@dataswamp.org> <871qpodgzn.fsf@mbork.pl> <87edtoh5iz.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bm+XhngrW48qalej" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="966"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 28 06:09:42 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ozWOj-000Abr-7o for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Nov 2022 06:09:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozWOI-0002Ok-PZ; Mon, 28 Nov 2022 00:09:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozWN0-0002Ad-Ny for help-gnu-emacs@gnu.org; Mon, 28 Nov 2022 00:07:55 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozWMw-0002M6-Hl for help-gnu-emacs@gnu.org; Mon, 28 Nov 2022 00:07:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date: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=PjPkQ07MfzslTuq5sDbFGecuyp63z+LEX+mAp4psPm0=; b=b645JsOOqlKVAlHuYPi6d2CPLZ CALh6hf61XwJUyDIf6TOEXMqsvueLXMfjlLNkWSh/wahg/ZH5M2EtkkP7C/NK5knSvs9hbbVQMHbs Ec/1RB+yOZ6UCm1MbEOwy+zb56dQeEyzPAHRzhVduywxn+kbd5QK28m52IEa9vXZ9bHtRNe856bev gDxM8E4glfbfJKN13o5cSuo7i/R8HPVJmk4LDJyir5K+l4tckaxQ7K8TPQ58tQC7xqgNHeun1SpPJ Xyb6hlUEunfFRMsdqCsbzEMGGWGTakh5JQbbQu/5LVUhkoU45B9w5MqhW/+Drr9fxezbY/41SLa2w qg7aU5tg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1ozWMs-0006a8-GY; Mon, 28 Nov 2022 06:07:46 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141209 Archived-At: --bm+XhngrW48qalej Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 27, 2022 at 07:46:38PM +0000, Drew Adams wrote: > > You might enjoy agrep, then. If you want to go further, do some > > research on weighted Levenshtein distance (there /is/ an elisp > > function named `string-distance` for you, then). >=20 > (Caveat: Not following this thread.) >=20 > FYI, there is Elisp library `levenshtein.el': >=20 > https://www.emacswiki.org/emacs/download/levenshtein.el Now to find the differences to the built-in `string-distance'. So much to do ;-) > (FYI2: Icicles uses that library, if you have it: (why not the built-in? Did it came later, or is it less useful?) Thanks --=20 t --bm+XhngrW48qalej Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY4RCGwAKCRAFyCz1etHa RmSYAJ9PWK8I39NQycm+s9/l4ZgHS/QY4wCdGJ7euTp1SoBRq621zorW99+d4hc= =p9vs -----END PGP SIGNATURE----- --bm+XhngrW48qalej--