Jelajahi Sumber

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

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

It was added to emacs in 2003.
Aaron Ecay 9 tahun lalu
induk
melakukan
7b930dd201
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      lisp/org.el

+ 1 - 3
lisp/org.el

@@ -20340,9 +20340,7 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names."
   (let (new old)
   (let (new old)
     (while commands
     (while commands
       (setq old (pop commands) new (pop 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 ()
 (defun org-transpose-words ()
   "Transpose words for Org.
   "Transpose words for Org.