diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-15 00:37:08 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-15 00:37:08 -0500 |
| commit | afe93aec6227dfe0f3a3b5965c0c802c278875cb (patch) | |
| tree | f42086c8de08951ef3949b222855d62355b48ed1 /modules/prog-python.el | |
| parent | 7d86e744cf9050f47c7c8aa74fa6a09d41f2c0ce (diff) | |
| download | dotemacs-afe93aec6227dfe0f3a3b5965c0c802c278875cb.tar.gz dotemacs-afe93aec6227dfe0f3a3b5965c0c802c278875cb.zip | |
refactor(calibredb-epub): reorder defuns above their use-package consumers
`make compile' had been flagging `cj/calibredb-clear-filters' and
`cj/nov-jump-to-calibredb' as "defined multiple times in this file"
since 2026-05-12. Investigation: there's only one `(defun ...)' of
each in the source -- use-package's `:bind' expansion makes the
byte-compiler count the referenced symbol as a definition when the
function is defined in the same file, then it sees the real
`defun' later and warns about a redefinition.
Reorder so each `defun' appears before the `use-package' that
references it via `:bind':
- `cj/calibredb-clear-filters' moved above (use-package calibredb).
- `cj/nov--metadata-get', `cj/nov--file-path', and
`cj/nov-jump-to-calibredb' moved above (use-package nov). The
two helpers had to move with the public function so the
byte-compiler doesn't emit fresh free-function warnings.
Source content unchanged; only line positions move. Both
duplicate-definition warnings are gone after this; full unit suite
still green.
Diffstat (limited to 'modules/prog-python.el')
0 files changed, 0 insertions, 0 deletions
