diff --git a/gists.org b/gists.org index 3559645..00a9960 100644 --- a/gists.org +++ b/gists.org @@ -792,7 +792,7 @@ Based on an answer at the [[https://emacs.stackexchange.com/a/77480/34645][Emacs (let* ((prompt (format-prompt "URL" "")) (candidate-urls (-non-nil (mapcar #'funcall my/denote/url-functions))) (url (if (eql 1 (length candidate-urls)) - (read-string prompt (car candidate-urls)) + (read-string prompt (caar candidate-urls)) (completing-read prompt candidate-urls)))) ;; `candidate-urls' is a mix of strings and cons diff --git a/gists/denote-create-note-url.el b/gists/denote-create-note-url.el index 01022dc..3fc15e7 100644 --- a/gists/denote-create-note-url.el +++ b/gists/denote-create-note-url.el @@ -60,7 +60,7 @@ looking at the tags." (let* ((prompt (format-prompt "URL" "")) (candidate-urls (-non-nil (mapcar #'funcall my/denote/url-functions))) (url (if (eql 1 (length candidate-urls)) - (read-string prompt (car candidate-urls)) + (read-string prompt (caar candidate-urls)) (completing-read prompt candidate-urls)))) ;; `candidate-urls' is a mix of strings and cons