From 6c420a60dcc797ffddbdbcf69f22fcec8f4a39f5 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Sat, 18 Jul 2026 18:54:05 -0400 Subject: [PATCH] fix: use function arg session-id instead of undefined id in hermes-link-session body The interactive form returns (list sid title) which binds to session-id / title function args, but the body was using 'id' which is undefined at that scope. --- doom/.config/doom/README.org | 6 +++--- doom/.config/doom/config.el | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index cdf2f2d..af80f95 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -2206,9 +2206,9 @@ If SESSION-ID is empty, show a menu of recent sessions to browse." (list sid (read-string "Title: " default-title))))) (list id (read-string "Title: "))))) (pcase-let ((`(,root ,sfile ,name) (gortium/hermes--project-info))) - (gortium/hermes--rename-session id (format "[%s] %s" name title)) - (gortium/hermes-append-session sfile id title) - (message "Session %s linked to project %s as \"%s\"" id name title))) + (gortium/hermes--rename-session session-id (format "[%s] %s" name title)) + (gortium/hermes-append-session sfile session-id title) + (message "Session %s linked to project %s as \"%s\"" session-id name title))) (map! :leader :desc "New Hermes session" "p h" #'gortium/hermes-start :desc "Resume Hermes session" "p H" #'gortium/hermes-resume diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index d5df5fd..23d373f 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -1402,9 +1402,9 @@ If SESSION-ID is empty, show a menu of recent sessions to browse." (list sid (read-string "Title: " default-title))))) (list id (read-string "Title: "))))) (pcase-let ((`(,root ,sfile ,name) (gortium/hermes--project-info))) - (gortium/hermes--rename-session id (format "[%s] %s" name title)) - (gortium/hermes-append-session sfile id title) - (message "Session %s linked to project %s as \"%s\"" id name title))) + (gortium/hermes--rename-session session-id (format "[%s] %s" name title)) + (gortium/hermes-append-session sfile session-id title) + (message "Session %s linked to project %s as \"%s\"" session-id name title))) (map! :leader :desc "New Hermes session" "p h" #'gortium/hermes-start :desc "Resume Hermes session" "p H" #'gortium/hermes-resume