org-open-at-mouse: Suppress warning in Emacs <30

* lisp/org.el (org-open-at-mouse): Add variable declaration to silence
warnings in older Emacs.
This commit is contained in:
Ihor Radchenko 2024-11-01 08:24:48 +01:00
parent ac73e594c9
commit 246c7d5882
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 0 deletions

View File

@ -8278,9 +8278,12 @@ See the docstring of `org-open-file' for details."
;; link abbreviations. So, suppressing parser complains about
;; non-Org buffer to keep the feature working at least to the extent
;; it did before.
(defvar warning-suppress-types) ; warnings.el
(let ((warning-suppress-types
(cons '(org-element org-element-parser)
warning-suppress-types)))
;; FIXME: Suppress warning in Emacs <30
;; (ignore warning-suppress-types)
(org-open-at-point)))
(defvar org-window-config-before-follow-link nil