summaryrefslogtreecommitdiff
path: root/docs/design/dev-setup-project.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-15 02:31:53 -0500
committerCraig Jennings <c@cjennings.net>2026-05-15 02:31:53 -0500
commita258c9f17172543fea26dff02cfb4b9678758527 (patch)
treea69282df86cec2065dcaa706d21bd79cd3579629 /docs/design/dev-setup-project.org
parentf51f8dfb94550ec1a3c902b9618d50641d6b24a4 (diff)
downloaddotemacs-a258c9f17172543fea26dff02cfb4b9678758527.tar.gz
dotemacs-a258c9f17172543fea26dff02cfb4b9678758527.zip
refactor(org-webclipper): use setq, not setopt, for pandoc sleep time
`org-web-tools-pandoc-sleep-time' is a plain float with no custom-set handler that needs to fire. `setopt' adds the entire customize-variable validation machinery -- which, lazily, depends on wid-edit being loaded. The handler's tests stub `require' so org-web-tools never really loads, then mock `setopt' via `cl-letf' on the function cell. That mock has no effect on byte-compiled code because `setopt' is a macro: the production handler has already expanded to a call into `setopt--set'. When `setopt--set' runs, it walks into the customize machinery and hits an unbound `widget-field-keymap' (wid-edit not loaded), and the test fails with a confusing wrong-type-argument. `setq' has identical runtime effect for this variable and dodges the customize machinery entirely. Tests now pass without contorted mocking.
Diffstat (limited to 'docs/design/dev-setup-project.org')
0 files changed, 0 insertions, 0 deletions