summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gratz <Stromeko@Stromeko.DE>2014-06-01 13:51:44 +0200
committerAchim Gratz <Stromeko@Stromeko.DE>2014-06-01 14:22:42 +0200
commite6883dd03de8c38880b0da806775bdab7727d863 (patch)
tree0971bac725692d950a32e77c9dc6f6e96c90afcd
parent38aebc8c247f38c7aa5cf8393ba5301b51004c34 (diff)
downloadorg-mode-e6883dd03de8c38880b0da806775bdab7727d863.tar.gz
org-compat: Provide compatibility definition for font-lock-ensure
* lisp/org-compat.el: Provide compatibility definition for `font-lock-ensure' falling back to `font-lock-fontify-buffer' via an alias. This fallback fixes f36b19eef6. Using a simple alias means we can't use the optional arguments for `font-lock-ensure' or would have to provide a macro if we ever want to use them.
-rw-r--r--lisp/org-compat.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 90380a8..f76b86c 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -422,6 +422,10 @@ TIME defaults to the current time."
(unless (fboundp 'user-error)
(defalias 'user-error 'error))
+;; `font-lock-ensure' is only available from 24.4.50 on
+(unless (fboundp 'font-lock-ensure)
+ (defalias 'font-lock-ensure 'font-lock-fontify-buffer))
+
(defmacro org-no-popups (&rest body)
"Suppress popup windows.
Let-bind some variables to nil around BODY to achieve the desired