emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/evil-escape 73b30bfd91 116/133: Use string-match-p over st


From: ELPA Syncer
Subject: [nongnu] elpa/evil-escape 73b30bfd91 116/133: Use string-match-p over string-match
Date: Wed, 3 Jan 2024 21:59:58 -0500 (EST)

branch: elpa/evil-escape
commit 73b30bfd912f40657b1306ee5849d215f0f9ffbd
Author: Rudi Grinberg <rudi.grinberg@gmail.com>
Commit: Sylvain Benner <sylvain.benner@gmail.com>

    Use string-match-p over string-match
    
    Since we don't need the match data
---
 evil-escape.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evil-escape.el b/evil-escape.el
index f764e485fd..b6c870d7b1 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -330,7 +330,7 @@ with a key sequence."
 
 (defun evil-escape--is-magit-buffer ()
   "Return non nil if the current buffer is a Magit buffer."
-  (string-match "magit" (symbol-name major-mode)))
+  (string-match-p "magit" (symbol-name major-mode)))
 
 (provide 'evil-escape)
 



reply via email to

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