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

    Add comment about rationale of completion table
---
 denote.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/denote.el b/denote.el
index 1996e0bab4..dcdd1b8239 100644
--- a/denote.el
+++ b/denote.el
@@ -976,6 +976,8 @@ here for clarity."
 (defvar denote--subdir-history nil
   "Minibuffer history of `denote--subdirs-prompt'.")
 
+;; Making it a completion table is useful for packages that read the
+;; metadata, such as `marginalia' and `embark'.
 (defun denote--subdirs-completion-table (dirs)
   "Match DIRS as a completion table."
   (let* ((def (car denote--subdir-history))

Reply via email to