From c6b95f877650c95b43ca0ebe6f6438e852219ca5 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 15 Jun 2024 15:32:28 +0530 Subject: [PATCH] Handle rendering messages using the old reference schema in khoj.el Previously references were a list instead of a map --- src/interface/emacs/khoj.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/emacs/khoj.el b/src/interface/emacs/khoj.el index 5d9c9229..599250e0 100644 --- a/src/interface/emacs/khoj.el +++ b/src/interface/emacs/khoj.el @@ -921,7 +921,7 @@ RECEIVE-DATE is the message receive date." (defun khoj--generate-reference (reference) "Create `org-mode' footnotes with REFERENCE." (setq khoj--reference-count (1+ khoj--reference-count)) - (let ((compiled-reference (cdr (assoc 'compiled reference)))) + (let ((compiled-reference (if (stringp reference) reference (cdr (assoc 'compiled reference))))) (cons (propertize (format "^{ [fn:%x]}" khoj--reference-count) 'help-echo compiled-reference) (thread-last