summaryrefslogtreecommitdiff
path: root/modules/custom-ordering.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 14:34:57 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 14:34:57 -0500
commite353f105b9dc8afa145e7086ef8e12cce91ce1ec (patch)
treec826141bb3cb4567f3487395d1a902f2133dcd53 /modules/custom-ordering.el
parent8c1eb454154451223aeaa0d0ed8751dcc3d4ff78 (diff)
downloaddotemacs-e353f105b9dc8afa145e7086ef8e12cce91ce1ec.tar.gz
dotemacs-e353f105b9dc8afa145e7086ef8e12cce91ce1ec.zip
refactor: declare cross-module commands bound in custom keymaps
custom-ordering.el binds cj/org-sort-by-todo-and-priority (owned by org-config) and custom-text-enclose.el binds change-inner/change-outer (the change-inner package). Both work at runtime — org-config loads eagerly and text-config autoloads change-inner via use-package :commands — but byte-compiling either module standalone warned "not known to be defined", and the dependency was implicit. Added declare-function for each so the compile is clean and the cross-module relationship is explicit at the top of the file. No autoload needed: the runtime autoload/eager-load already exists, so only the compiler needed telling. custom-buffer-file.el byte-compiles clean already, so it needed no change.
Diffstat (limited to 'modules/custom-ordering.el')
-rw-r--r--modules/custom-ordering.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/custom-ordering.el b/modules/custom-ordering.el
index 69a2d465..ee2f2023 100644
--- a/modules/custom-ordering.el
+++ b/modules/custom-ordering.el
@@ -23,6 +23,10 @@
(require 'cl-lib)
(require 'keybindings) ;; provides cj/custom-keymap
+;; Bound in the ordering keymap below but owned by org-config (loaded eagerly
+;; in init); declare it so byte-compiling this module standalone is clean.
+(declare-function cj/org-sort-by-todo-and-priority "org-config")
+
(defvar cj/ordering-map)
(defun cj/--arrayify (start end quote &optional prefix suffix)