diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-26 10:31:25 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-26 10:31:25 -0400 |
| commit | 77733b700b586bcc0a76acce8ba75e99987c984d (patch) | |
| tree | b4ba33d43ffdaf7b9e63aed49122077e0c1e7d99 /modules/org-webclipper.el | |
| parent | f9c949f9a8c8df8b08f246fa0371fb9f7f708e06 (diff) | |
| download | dotemacs-77733b700b586bcc0a76acce8ba75e99987c984d.tar.gz dotemacs-77733b700b586bcc0a76acce8ba75e99987c984d.zip | |
chore(elisp): clear byte-compile warnings via declarations and a loop rewrite
Add the missing declare-function and defvar declarations that silence the not-known-to-be-defined and free-variable warnings in local-repository, org-webclipper, and weather-config. Rewrite jumper--location-exists-p from dotimes to cl-loop thereis, which fixes a spurious unused-variable warning and short-circuits on the first match. The remaining obsolete-generalized-variable warnings (point in pearl-config, buffer-substring in org-webclipper) come from upstream package macros (pearl, org-web-tools) and are not fixable in our code.
Diffstat (limited to 'modules/org-webclipper.el')
| -rw-r--r-- | modules/org-webclipper.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/org-webclipper.el b/modules/org-webclipper.el index 99e837e63..f32cad3fd 100644 --- a/modules/org-webclipper.el +++ b/modules/org-webclipper.el @@ -52,6 +52,15 @@ ;;; Code: +(declare-function org-web-tools--url-as-readable-org "org-web-tools") +(declare-function org-w3m-copy-for-org-mode "org-w3m") +(declare-function org-eww-copy-for-org-mode "org-eww") +(declare-function org-capture-get "org-capture") +;; Special vars from org-capture / org-protocol / user-constants, loaded at +;; runtime; declared here so standalone byte-compilation does not warn. +(defvar org-capture-templates) +(defvar org-protocol-protocol-alist) +(defvar webclipped-file) ;; Variables for storing org-protocol data (defvar cj/--webclip-url nil |
