emacs-devel
[Top][All Lists]
Advanced

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

Re: master 0724c6dbdae: Use string-search instead of string-match[-p] wh


From: Dmitry Gutov
Subject: Re: master 0724c6dbdae: Use string-search instead of string-match[-p] when possible
Date: Mon, 27 Mar 2023 02:05:26 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

Hi Mathias,

On 26/03/2023 13:47, Mattias Engdegård wrote:
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index d077c43ba52..d1034d467ab 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -469,7 +469,7 @@ non-nil."
    (let* (first-call )
      (while (and parent
                  (setq first-call (treesit-node-parent parent))
-                (string-match-p "call" (treesit-node-type first-call)))
+                (string-search "call" (treesit-node-type first-call)))
        (setq parent first-call))
      (treesit-node-start (treesit-search-subtree parent "\\." nil t))))

Thanks for this, it uncovered an existing bug in the code.



reply via email to

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