From df2bdbf0ad66098da6b4b0315182653c52eca620 Mon Sep 17 00:00:00 2001 From: Rick Lupton Date: Sat, 4 Jul 2026 17:35:12 +0100 Subject: [PATCH] eval-when-compile require 'org-macs Otherwise `org-with-limited-levels' is not defined as a macro, leading to an invalid-function error. --- boon-arguments.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boon-arguments.el b/boon-arguments.el index 20f7ca9..5a41dea 100644 --- a/boon-arguments.el +++ b/boon-arguments.el @@ -19,6 +19,9 @@ (require 'multiple-cursors) (require 'dash) +;; Needed for boon-select-org-tree +(eval-when-compile (require 'org-macs)) + (defcustom boon-enclosures '( (?A . ("⟨" "⟩")) @@ -82,7 +85,6 @@ This item is either the symbol at point, or, if this fails, the sexp at point." (declare-function org-back-to-heading "org" (&optional invisible-ok)) (declare-function org-end-of-subtree "org" (&optional invisible-ok to-heading)) (declare-function org-at-heading-p "org" (&optional ignored)) -(declare-function org-with-limited-levels "org-macs" (&rest body)) (defun boon-select-org-tree () "Return the region corresponding to the current subtree."