* lisp/simple.el (read-extended-command--affixation): Propertize
a copy of the command name instead of the original string.
'completions-annotations)))
(t ""))))
(when extended-command-dim-hyphens
+ (setq command-name (copy-sequence command-name))
(named-let dim ((hy (string-search "-" command-name)))
(when hy
- (add-face-text-property hy (1+ hy)
- 'dim-hyphen nil command-name)
+ (add-face-text-property hy (1+ hy) 'dim-hyphen nil command-name)
(dim (string-search "-" command-name (1+ hy))))))
(list command-name "" suffix)))
command-names)))