branch: externals/denote
commit b42fc5fea4b5c1476def2b3c43d74922e8b8a0b5
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Fix error with nil values for the affix function
    
    When the helpers there return nil I am getting an error because the
    completion expects a string.
---
 denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 9c69ddaafb..afb66e136c 100644
--- a/denote.el
+++ b/denote.el
@@ -1501,8 +1501,8 @@ Use the identifier as a prefix and the keywords as a 
suffix."
    (lambda (file)
      (list
       file
-      (denote-file-prompt--format-identifier file)
-      (denote-file-prompt--format-keywords-and-signature file)))
+      (or (denote-file-prompt--format-identifier file) "")
+      (or (denote-file-prompt--format-keywords-and-signature file) "")))
    files))
 
 (defun denote-file-prompt-sort (files)

Reply via email to