0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 22:07:49 +00:00

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

View file

@ -260,6 +260,12 @@ ignored in this case."
next (+ from (* n inc))))) next (+ from (* n inc)))))
(nreverse seq))))) (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 ;; Region compatibility
(defvar org-ignore-region nil (defvar org-ignore-region nil