org.el: Assume `command-remapping' is defined.

* lisp/org.el (org-remap): Assume `command-remapping' is defined.

It was added to emacs in 2003.
This commit is contained in:
Aaron Ecay 2016-09-26 15:17:48 +01:00
parent d00d44d6ff
commit 7b930dd201

View file

@ -20340,9 +20340,7 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names."
(let (new old)
(while commands
(setq old (pop commands) new (pop commands))
(if (fboundp 'command-remapping)
(org-defkey map (vector 'remap old) new)
(substitute-key-definition old new map global-map)))))
(org-defkey map (vector 'remap old) new))))
(defun org-transpose-words ()
"Transpose words for Org.