bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#60953: The :match predicate with large regexp in tree-sitter font-lo


From: Dmitry Gutov
Subject: bug#60953: The :match predicate with large regexp in tree-sitter font-lock seems inefficient
Date: Thu, 2 Feb 2023 21:44:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 02/02/2023 20:03, Eli Zaretskii wrote:
Date: Thu, 2 Feb 2023 19:53:07 +0200
Cc:casouri@gmail.com,60953@debbugs.gnu.org
From: Dmitry Gutov<dgutov@yandex.ru>

If the search fails, search_buffer returns a non-positive integer, not
zero.
That should work too. As long as it never returns 0 for success.

Which seems to be confirmed by the check

    if (np <= 0)
      ... signal error

inside search_command.
Yes, because buffer position can never be zero.

All right.

Now pushed; thanks, and closing.





reply via email to

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