[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Searching text
From: |
Eli Zaretskii |
Subject: |
Re: Searching text |
Date: |
Tue, 03 Sep 2024 15:44:16 +0300 |
> Date: Tue, 03 Sep 2024 07:14:42 +0000
> From: Heime <heimeborgia@protonmail.com>
>
> I need to search for phrases like 'others contend' within a buffer, even
> when they span across multiple lines. What steps should I take to
> achieve this with an elisp function ?
>
> For example, consider the following text where the phrase 'sees the human
> mind' is split between two lines, yet I need to match it in its entirety.
This is already supported, but you need to let-bind
search-whitespace-regexp to a value that matches newlines. See the
description in the node "Lax Search" in the Emacs user manual.