summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-10-25 20:15:28 +0200
committerJonas Bernoulli <jonas@bernoul.li>2021-10-25 20:17:39 +0200
commit214c2e268c8422a13c463a1d45be9fb2fe63d0fe (patch)
treec34a03e3af1408337a05521f7031e2e55ec18d21 /lisp
parenta2c17e115eea1ac026e80bce023c1f8587228c90 (diff)
downloademacs-214c2e268c8422a13c463a1d45be9fb2fe63d0fe.tar.gz
emacs-214c2e268c8422a13c463a1d45be9fb2fe63d0fe.tar.bz2
emacs-214c2e268c8422a13c463a1d45be9fb2fe63d0fe.zip
; 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").
Diffstat (limited to 'lisp')
-rw-r--r--lisp/transient.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/transient.el b/lisp/transient.el
index 77bf41deba8..2adb4c573ee 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)