emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 92a6d8cd8d 1/4: Add denote-files-matching-regexp


From: ELPA Syncer
Subject: [elpa] externals/denote 92a6d8cd8d 1/4: Add denote-files-matching-regexp-prompt to denote-prompts-with-history-as-completion
Date: Tue, 5 Mar 2024 06:58:10 -0500 (EST)

branch: externals/denote
commit 92a6d8cd8da26e04649e1fe2cc48a3528e09945e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add denote-files-matching-regexp-prompt to 
denote-prompts-with-history-as-completion
---
 denote.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index f1b2ed6475..0f5e2f9d8a 100644
--- a/denote.el
+++ b/denote.el
@@ -559,7 +559,7 @@ structure template as soon as `denote-region' is done:
   :type 'hook)
 
 (defvar denote-prompts-with-history-as-completion
-  '(denote-title-prompt denote-signature-prompt)
+  '(denote-title-prompt denote-signature-prompt 
denote-files-matching-regexp-prompt)
   "Prompts that conditionally perform completion against their history.
 
 These are minibuffer prompts that ordinarily accept a free form string
@@ -2331,9 +2331,10 @@ non-nil value."
 (defun denote-files-matching-regexp-prompt (&optional prompt-text)
   "Prompt for REGEXP to filter Denote files by.
 With optional PROMPT-TEXT use it instead of a generic prompt."
-  (read-regexp
+  (denote--with-conditional-completion
+   'denote-files-matching-regexp-prompt
    (format-prompt (or prompt-text "Match files with the given REGEXP") nil)
-   nil 'denote-files-matching-regexp-history))
+   denote-files-matching-regexp-history))
 
 ;;;;; Convenience commands as `denote' variants
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]