]> git.eshelyaron.com Git - emacs.git/commitdiff
* org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)
authorKyle Meyer <kyle@kyleam.com>
Mon, 1 Feb 2016 13:48:35 +0000 (08:48 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 1 Feb 2016 13:48:35 +0000 (08:48 -0500)
lisp/org/org-compat.el

index 6403d4df04dcdb88e91a880c5eada8260e06566a..cf6aafc9854e677c48cdf11c8d097d8e474421c2 100644 (file)
@@ -479,9 +479,9 @@ LIMIT."
       (not (null pos)))))
 
 (defalias 'org-font-lock-ensure
-  (if (fboundp 'org-font-lock-ensure)
+  (if (fboundp 'font-lock-ensure)
       #'font-lock-ensure
-    (lambda (_beg _end) (font-lock-fontify-buffer))))
+    (lambda (&optional _beg _end) (font-lock-fontify-buffer))))
 
 (defun org-floor* (x &optional y)
   "Return a list of the floor of X and the fractional part of X.