diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 03:37:11 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 03:37:11 -0500 |
| commit | 34f5f0d946d1e394f9cda52d5cd5c0e2cf0243f0 (patch) | |
| tree | d530189ec2b755d24318544ff77b3525d5f6bb54 /modules/test-runner.el | |
| parent | c16d53e8787cd9f197c358ac21b05a78738a77de (diff) | |
| download | dotemacs-34f5f0d946d1e394f9cda52d5cd5c0e2cf0243f0.tar.gz dotemacs-34f5f0d946d1e394f9cda52d5cd5c0e2cf0243f0.zip | |
test(org-webclipper): cover lazy init, protocol handler, EWW capture
Sibling `test-org-webclipper-process.el` covers the content-processing helper. This batch fills in the rest:
- `cj/webclipper-ensure-initialized`: registers the webclip protocol entry + the W and w capture templates on first call, is idempotent on subsequent calls.
- `cj/org-protocol-webclip`: stashes the url+title, triggers capture; missing title falls back to "Untitled".
- `cj/org-protocol-webclip-handler`: errors when no url stashed, returns processed org content on success (with the first heading stripped + subs demoted), wraps fetch failures in a "Failed to clip" error.
- `cj/org-webclipper-EWW`: routes through `org-eww-copy-for-org-mode` for eww-mode and `org-w3m-copy-for-org-mode` for w3m-mode; errors on any other source mode.
Top-level defvars for `org-protocol-protocol-alist`, `org-capture-templates`, and `webclipped-file` make let-bindings dynamic under lexical scope. org-web-tools and the eww/w3m copy commands are stubbed.
Diffstat (limited to 'modules/test-runner.el')
0 files changed, 0 insertions, 0 deletions
