From 29b412b209c3542a7932c201f0166e48c9fd7fee Mon Sep 17 00:00:00 2001 From: grtcdr Date: Tue, 29 Oct 2024 16:06:52 +0100 Subject: [PATCH] Fix compilation warnings Compiling focus results in compilation warnings relating to two functions from the `org-element' library. We can tell the byte compiler where those functions are located without explicitly requiring the libraries. --- focus.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/focus.el b/focus.el index df330c5..290b805 100644 --- a/focus.el +++ b/focus.el @@ -33,6 +33,9 @@ (require 'cl-lib) (require 'thingatpt) +(declare-function org-element-property "org-element" (property element)) +(declare-function org-element-at-point "org-element" (&optional pom cached-only)) + (defgroup focus () "Dim the font color of text in surrounding sections." :group 'font-lock