branch: externals/org commit 04087be6b3e78c4fc473a727d69694eb79d41001 Author: Aaron L. Zeng <m...@bcc32.com> Commit: Ihor Radchenko <yanta...@posteo.net>
lisp/org.el: Make predicates non-interactive * lisp/org.el (org-at-date-range-p): (org--math-p): (org-first-sibling-p): Remove interactive spec. Predicates like `org-first-sibling-p' are no use when called interactively, and should not appear in the M-x prompt. TINYCHANGE --- lisp/org.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 23cb6012d8..20e6ea6d91 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9876,7 +9876,6 @@ inactive time ranges. When this function returns a non-nil value, match data is set according to `org-tr-regexp-both' or `org-tr-regexp', depending on INACTIVE-OK." - (interactive) (save-excursion (catch 'exit (let ((pos (point))) @@ -15475,7 +15474,6 @@ If Org mode thinks that point is actually inside an embedded LaTeX environment, return t when the environment is math or let `texmathp' do its job otherwise. `\\[org-cdlatex-mode-map]'" - (interactive) (cond ((not (derived-mode-p 'org-mode)) (apply orig-fun args)) ((eq this-command 'cdlatex-math-symbol) @@ -20525,7 +20523,6 @@ point before the first headline or at point-min." (defun org-first-sibling-p () "Is this heading the first child of its parents?" - (interactive) (let ((re org-outline-regexp-bol) level l) (unless (org-at-heading-p t)