emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 214c2e2 1/3: ; Revert parts of "Use string-search instead of st


From: Jonas Bernoulli
Subject: emacs-28 214c2e2 1/3: ; Revert parts of "Use string-search instead of string-match[-p]"
Date: Mon, 25 Oct 2021 14:20:30 -0400 (EDT)

branch: emacs-28
commit 214c2e268c8422a13c463a1d45be9fb2fe63d0fe
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    ; Revert parts of "Use string-search instead of string-match[-p]"
    
    "transient.el" is also distributed as a separate package, which
    supports Emacs versions as old as 25.1 (see "Package-Requires").
---
 lisp/transient.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 77bf41d..2adb4c5 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3073,7 +3073,7 @@ Optional support for popup buttons is also implemented 
here."
               ;; the definition, then we want to drop the space that
               ;; is reinserted above.  False-positives are possible
               ;; for silly bindings like "-C-c C-c".
-              (unless (string-search " " key)
+              (unless (string-match-p " " key)
                 (setq pre (string-replace " " "" pre))
                 (setq suf (string-replace " " "" suf)))
               (concat (propertize pre 'face 'default)



reply via email to

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