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.
This commit is contained in:
Bastien Guerry 2014-01-22 11:42:51 +01:00
parent d91650b854
commit 77458b782a
1 changed files with 6 additions and 0 deletions

View File

@ -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