From d797b7ad5d6af70d7d1ab082f824df07cf5bd536 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 15 May 2026 00:54:01 -0500 Subject: feat(custom-buffer-file): extend buffer-source dispatch to mu4e and Info Add two dispatchers to cj/buffer-source-functions so C-; b p yields a useful link form in two more major modes. mu4e-view-mode returns "mu4e:msgid:" so the result pastes into org as a clickable link and matches mu4e's own org-protocol handler. Falls through to buffer-file-name when point isn't on a real message. Info-mode returns "info:(manual)node" -- the form org-info-store-link produces. file-name-base only strips one extension, so a compressed "emacs.info.gz" comes back as "emacs.info"; trim the trailing ".info" to get the bare manual name. Falls through when Info hasn't populated its current-file / current-node vars yet. Tests cover normal + boundary fallthrough for each new mode. --- todo.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'todo.org') diff --git a/todo.org b/todo.org index da6eeb1f..25c93cb8 100644 --- a/todo.org +++ b/todo.org @@ -39,6 +39,7 @@ Tags are additive. For example, a small wrong-behavior fix can be * Emacs Open Work +** TODO [#B] Write spec on what's needed for music not to depend on EMMS ** DONE [#B] Update gptel models :chore: CLOSED: [2026-05-14 Thu] Anthropic side: bumped Opus 4.6 → 4.7 (current frontier); Sonnet 4.6 @@ -106,7 +107,8 @@ heading, =help-mode=, =Info-mode=, =magit-log-mode= / These need format decisions (Message-ID vs link vs subject, id link vs CUSTOM_ID vs heading text, etc.) before implementation. -** TODO [#C] Extend cj/buffer-source-functions to more modes :feature: +** DONE [#C] Extend cj/buffer-source-functions to more modes :feature: +CLOSED: [2026-05-15 Fri] Followup to =Modify C-; b p=. The first batch covered eww, elfeed-show, dired/dirvish, and doc-view/pdf-view (via the buffer-file-name fallback). These modes still need a decision + -- cgit v1.2.3