aboutsummaryrefslogtreecommitdiff
path: root/modules/mu4e-attachments.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 07:12:29 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 07:12:29 -0500
commit6dfc41af54551bf1fe13af6e1aae6e1e864060c0 (patch)
tree2314d85c893a1af9b57430c94402bf1e8039c738 /modules/mu4e-attachments.el
parent5ca32b40cb54f8ae2800d304d5bbe53cbb760804 (diff)
downloaddotemacs-6dfc41af54551bf1fe13af6e1aae6e1e864060c0.tar.gz
dotemacs-6dfc41af54551bf1fe13af6e1aae6e1e864060c0.zip
refactor(webclipper): scope clip URL/title to dynamic bindings
org-webclipper passed the org-protocol URL and title through globals cj/webclip-current-url / cj/webclip-current-title: the protocol handler setq them, and the "W" capture template plus its handler read them, with the handler clearing them afterward. An aborted or erroring capture left the stale values for the next clip. Renamed them to cj/--webclip-url / cj/--webclip-title and let-bind them around the org-capture call in the protocol entry point instead of mutating globals. The template %(identity ...) forms and the handler run within that dynamic extent, so they see the values while the capture runs, and an abort/error unwinds the binding automatically — no stale state, no manual clear. This mirrors the quick-video-capture fix. Tests updated to the new contract: URL/title visible during the capture, nothing left bound after, and an aborted capture leaves no stale state.
Diffstat (limited to 'modules/mu4e-attachments.el')
0 files changed, 0 insertions, 0 deletions