Browse Source

org-compat.el (org-set-transient-map): New alias

* org-compat.el (org-set-transient-map): Alias pointing at
`set-transient-map' if defined, at `set-temporary-overlay-map'
otherwise.

Thanks to Eric Abrahamsen for reporting this.
Bastien Guerry 11 years ago
parent
commit
77458b782a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      lisp/org-compat.el

+ 6 - 0
lisp/org-compat.el

@@ -260,6 +260,12 @@ ignored in this case."
 		  next (+ from (* n inc)))))
 	(nreverse seq)))))
 
+;; `set-transient-map' is only in Emacs >= 24.4
+(defalias 'org-set-transient-map
+  (if (fboundp 'set-transient-map)
+      'set-transient-map
+    'set-temporary-overlay-map))
+
 ;; Region compatibility
 
 (defvar org-ignore-region nil