Skip to content

Commit

Permalink
add new function kmu-edmacro-parse-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Jan 14, 2013
1 parent 1b3e372 commit 9093fda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions keymap-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ instead of `kbd'."
(setq s (replace-match "\\2M-\\3" t nil s 1)))
s))))

(defun kmu-edmacro-parse-keys (string need-vector)
(if (string-match "\\.\\." string)
(cons (naked-edmacro-parse-keys
(substring string 0 (match-beginning 0)) need-vector)
(naked-edmacro-parse-keys
(substring string (match-end 0)) need-vector))
(naked-edmacro-parse-keys string need-vector)))

;;; Defining Bindings.

(defun kmu-define-key (keymap key def)
Expand Down

0 comments on commit 9093fda

Please sign in to comment.