diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-25 09:21:29 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-25 09:21:29 -0400 |
| commit | 897e026c8608ba67ff3cbc0d2cfe0dbdbffd0b49 (patch) | |
| tree | a789905bebafff928201b2721ef5d1a946907388 /todo.org | |
| parent | f5357a158978baecb3837aec563f42904cf0de49 (diff) | |
| download | dotemacs-897e026c8608ba67ff3cbc0d2cfe0dbdbffd0b49.tar.gz dotemacs-897e026c8608ba67ff3cbc0d2cfe0dbdbffd0b49.zip | |
chore(todo): file dirvish single-instance/buffer-hygiene task (inbox zero)
Diffstat (limited to 'todo.org')
| -rw-r--r-- | todo.org | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -61,6 +61,8 @@ Root cause found: the display rule's 4th action =cj/--ai-term-display-saved= spl ** DONE [#B] eww User-Agent advice may not inject under Emacs 30 :bug: CLOSED: [2026-06-25 Thu] Root cause was NOT =derived-mode-p= (that works in both batch and the daemon — my initial guess was wrong). It was the lexical-binding special-var trap: =eww-config.el= is =lexical-binding: t= and the advice =my-eww--inject-user-agent= let-binds url.el's =url-request-extra-headers=, but the file never declared that var special. The byte-compiler bound it lexically, so the injected User-Agent never reached =url-retrieve= and the desktop UA silently dropped in compiled production (eww still worked, just with the default UA). Verified: the byte-compiled advice returned nil before, =t= after. Fix (commit 6131da8e): a top-level =(defvar url-request-extra-headers)= so the compiler treats it as dynamic and the binding propagates. All 3 advice tests pass; live-reloaded. Same class as the json-object-type and the LSP-test special-var traps — a foreign special var let-bound in a lexical file always needs a compile-time defvar/require. +** TODO [#C] dirvish leaves stray buffers; should be single-instance like org-capture :bug: +Dirvish (=super + f=) seems to leave a pile of buffers around — either it isn't being closed cleanly or it spawns a buffer per navigation. Craig wants it to behave like org-capture: one live instance, and re-pressing the shortcut just focuses the existing dirvish window instead of spawning another. Investigate dirvish's session/buffer lifecycle (=dirvish-reuse-session=, the quit behavior, how =super + f= is bound in =dirvish-config.el=); wire it to reuse one session and raise-or-focus on re-invocation, and clean up stray buffers on quit. From the roam inbox 2026-06-24. ** TODO [#B] first f12 doesn't toggle the term window :bug:solo: The first =f12= of a session flashes the terminal open and immediately closes it, as if the toggle fired on then off; a second =f12= then works. Seen across two separate sessions. From the roam inbox 2026-06-24. ** TODO [#B] F12 pops EAT instead of ghostel :feature:studio: |
