From 7b930dd2017ef337ceb5d304ef69a5740a1ac65e Mon Sep 17 00:00:00 2001 From: Aaron Ecay Date: Mon, 26 Sep 2016 15:17:48 +0100 Subject: [PATCH] org.el: Assume `command-remapping' is defined. * lisp/org.el (org-remap): Assume `command-remapping' is defined. It was added to emacs in 2003. --- lisp/org.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 02d05b2d9..a20763756 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.