aboutsummaryrefslogtreecommitdiff
path: root/modules/local-repository.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-26 10:31:25 -0400
committerCraig Jennings <c@cjennings.net>2026-06-26 10:31:25 -0400
commit7c7104ea5b22bf31d6c087b46f80ce2a6e215638 (patch)
tree95a96913db6a67d5ffa4fa0212977d33f76fb6f7 /modules/local-repository.el
parent1320172999ca3dbe8cd1affaeafacad45df9ae76 (diff)
downloaddotemacs-7c7104ea5b22bf31d6c087b46f80ce2a6e215638.tar.gz
dotemacs-7c7104ea5b22bf31d6c087b46f80ce2a6e215638.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/local-repository.el')
-rw-r--r--modules/local-repository.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/local-repository.el b/modules/local-repository.el
index 6376d9f73..9ce7a1af3 100644
--- a/modules/local-repository.el
+++ b/modules/local-repository.el
@@ -16,6 +16,8 @@
(require 'elpa-mirror nil t) ;; optional; cj/update-localrepo-repository fails at call-time if absent
+(declare-function elpamr-create-mirror-for-installed "elpa-mirror")
+
;; ------------------------------ Utility Function -----------------------------