summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ecay <aaronecay@gmail.com>2016-09-26 15:17:48 +0100
committerAaron Ecay <aaronecay@gmail.com>2016-09-26 16:56:19 +0100
commit7b930dd2017ef337ceb5d304ef69a5740a1ac65e (patch)
tree7ddc83ece47c198f851232d1f1e24447cc6f3b6d
parentd00d44d6ff52eddd236800008d4721f6b9ab05a5 (diff)
downloadorg-mode-7b930dd2017ef337ceb5d304ef69a5740a1ac65e.tar.gz
org.el: Assume `command-remapping' is defined.
* lisp/org.el (org-remap): Assume `command-remapping' is defined. It was added to emacs in 2003.
-rw-r--r--lisp/org.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 02d05b2..a207637 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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.