; 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").
This commit is contained in:
parent
a2c17e115e
commit
214c2e268c
1 changed files with 1 additions and 1 deletions
|
@ -3073,7 +3073,7 @@ Optional support for popup buttons is also implemented here."
|
||||||
;; the definition, then we want to drop the space that
|
;; the definition, then we want to drop the space that
|
||||||
;; is reinserted above. False-positives are possible
|
;; is reinserted above. False-positives are possible
|
||||||
;; for silly bindings like "-C-c C-c".
|
;; for silly bindings like "-C-c C-c".
|
||||||
(unless (string-search " " key)
|
(unless (string-match-p " " key)
|
||||||
(setq pre (string-replace " " "" pre))
|
(setq pre (string-replace " " "" pre))
|
||||||
(setq suf (string-replace " " "" suf)))
|
(setq suf (string-replace " " "" suf)))
|
||||||
(concat (propertize pre 'face 'default)
|
(concat (propertize pre 'face 'default)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue