From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Newsgroups: gmane.emacs.help Subject: Re: How to grep for a string spanning multiple lines? Date: Sun, 04 Dec 2022 22:55:52 +0100 Message-ID: References: <8735a6cj2k.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11255"; mail-complaints-to="usenet@ciao.gmane.io" To: Marcin Borkowski , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 04 22:56:29 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 1p1wyL-0002kA-DG for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Dec 2022 22:56:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1wy5-0002Xf-Nj; Sun, 04 Dec 2022 16:56:13 -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 1p1wy0-0002XR-GW for help-gnu-emacs@gnu.org; Sun, 04 Dec 2022 16:56:12 -0500 Original-Received: from mr85p00im-zteg06022001.me.com ([17.58.23.193]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1wxu-0005s1-5k for help-gnu-emacs@gnu.org; Sun, 04 Dec 2022 16:56:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1670190956; bh=mhGKYwPLRU9A1DPGn64VYa484KzzWjeJZ43WuSvnKMM=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=F9PXGQa1yOveT/AZzImK9fLKxM2hvvG551Xu6Gedg6DTegHLCkbPmzv/cXOl4QMhO sJk6jdJ+vVbagAIlkJgl0XN2Rg/Kd5yu5wbB3rpp2qoacyD3rfI6q0KaDWzJbdBA4s ZsdR0tjrpkOWt5iyRJciF8xa7Dk1OfxiuJIOGzcfv53Wn2K6yoD297NgdLASehws9Z JZbNJIQ5/yd3sXGJayYuu3WxpeGg2HbFDt3/yTFUyArGoqlzfPP0LfQy+RLHCwKi1q CZPBpny0ZfYdwe3KMFDWxmuFRBncKhzvBzRIcj6wslH2JDGNWKi64ut42V1as0yQDO Hr6EiG9Jn641Q== Original-Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06022001.me.com (Postfix) with ESMTPSA id EDBC48007D6; Sun, 4 Dec 2022 21:55:55 +0000 (UTC) In-Reply-To: <8735a6cj2k.fsf@mbork.pl> X-Proofpoint-GUID: U-oYqOtMCy6D6LOvHmpgZP3XUlmm4ZoW X-Proofpoint-ORIG-GUID: U-oYqOtMCy6D6LOvHmpgZP3XUlmm4ZoW X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=545 clxscore=1011 bulkscore=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2212040199 Received-SPF: pass client-ip=17.58.23.193; envelope-from=salutis@me.com; helo=mr85p00im-zteg06022001.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:141374 Archived-At: Marcin Borkowski writes: > However, it turns out that it is split between two (or more) > lines. [...] Traditional `grep' is not helpful in this situation. > Neither is isearch, nor swiper. I have the following in my literate Emacs configuration file: * Isearch configuration =20=20 [...] =20=20 Search across spaces, tabs, and newlines. =20=20 #+begin_src emacs-lisp (setq isearch-lax-whitespace t isearch-regexp-lax-whitespace t search-whitespace-regexp "[ \t\r\n]+") #+end_src Perhaps that could help you? Rudy --=20 "Chop your own wood and it will warm you twice." -- Henry Ford; Francis Kinloch, 1819; Henry David Thoreau, 1854 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia