浏览代码

org-compat: Quiet font-lock-fontify-buffer warning

* lisp/org-compat.el (org-font-lock-ensure): Quiet byte compiler warning
  about font-lock-fontify-buffer.
Kyle Meyer 9 年之前
父节点
当前提交
e712f17822
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/org-compat.el

+ 2 - 1
lisp/org-compat.el

@@ -413,7 +413,8 @@ Pass BUFFER to the XEmacs version of `move-to-column'."
 (defalias 'org-font-lock-ensure
   (if (fboundp 'font-lock-ensure)
       #'font-lock-ensure
-    (lambda (&optional _beg _end) (font-lock-fontify-buffer))))
+    (lambda (&optional _beg _end)
+      (with-no-warnings (font-lock-fontify-buffer)))))
 
 (defmacro org-no-popups (&rest body)
   "Suppress popup windows.