From 84f3fc35e2b17473571beb37a62174554b40257f Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 17 Feb 2024 11:14:04 +0200 Subject: [fix] Change symbols to strings for ido-completing-read Change gnosis-note-types & gnosis-edit-note values to strings to work with ido-completing-read gnosis-note-types need to be strings to work with ido-completing-read --- gnosis.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnosis.el b/gnosis.el index 6f47412..ada6e8e 100644 --- a/gnosis.el +++ b/gnosis.el @@ -116,7 +116,7 @@ to \"push\" will execute the command 'git push'." (defconst gnosis-db-version 1 "Gnosis database version.") -(defvar gnosis-note-types '(MCQ Cloze Basic Double y-or-n) +(defvar gnosis-note-types '("MCQ" "Cloze" "Basic" "Double" "y-or-n") "Gnosis available note types.") ;;; Faces @@ -1080,7 +1080,7 @@ NOTES: List of note ids" (defun gnosis-edit-note (id) "Edit note with value of id ID." - (pcase (funcall gnosis-completing-read-function "Edit: " '(contents ef) nil t) + (pcase (funcall gnosis-completing-read-function "Edit: " '("contents" "ef") nil t) ("contents" (gnosis-edit-note-contents id)) ("ef" (gnosis-edit-ef id)) (_ (message "No such value.")))) -- cgit v1.2.3