From b127d7257e1f6a3d234d309d6cee975eb6e86868 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 29 Feb 2024 16:00:06 +0300 Subject: [PATCH] lisp/ol.el (org--re-list-looking-at): Fix Emacs <29 compatibility --- lisp/ol.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ol.el b/lisp/ol.el index 6e5efc6ec..fa16b5920 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -2206,7 +2206,12 @@ BOUND, NOERROR, and COUNT are passed to `re-search-forward'." INHIBIT-MODIFY is passed to `looking-at'." (catch :found (while regexp-list - (when (looking-at (pop regexp-list) inhibit-modify) + (when + (if inhibit-modify + (looking-at-p (pop regexp-list)) + ;; FIXME: In Emacs <29, `looking-at' does not accept + ;; optional INHIBIT-MODIFY argument. + (looking-at (pop regexp-list))) (throw :found t))))) ;;;###autoload