Skip to content

Commit

Permalink
kmu-key-description: cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Mar 14, 2014
1 parent 48b92d1 commit dd7d19d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions keymap-utils.el
Expand Up @@ -244,9 +244,7 @@ For an approximate inverse of this, see `kmu-edmacro-parse-keys'."
(let ((s (naked-key-description keys)))
;; Merge ESC into following event.
(while (and (string-match "\\(ESC \\([ACHsS]-\\)*\\([^ ]+\\)\\)" s)
(save-match-data
(not (string-match "\\(ESC\\|M-\\)"
(match-string 3 s)))))
(not (string-match-p "\\(ESC\\|M-\\)" (match-string 3 s))))
(setq s (replace-match "\\2M-\\3" t nil s 1)))
s))))

Expand Down

0 comments on commit dd7d19d

Please sign in to comment.