[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 45fe76ca24 05/12: Make denote-file-prompt record
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 45fe76ca24 05/12: Make denote-file-prompt record history |
Date: |
Mon, 25 Sep 2023 09:58:15 -0400 (EDT) |
branch: externals/denote
commit 45fe76ca24a2f5d09c9831b959d25543998a4381
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-file-prompt record history
We had a regression when we switched to the project.el prompt whereby
the history was not being updated. Or, at least, it was not updated
while I was using it today. We thus populate the history variable
ourselves, though this may not be necessary. We shall see.
---
denote.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index 8391a4cdcd..683c2c3630 100644
--- a/denote.el
+++ b/denote.el
@@ -892,13 +892,14 @@ The path is relative to DIRECTORY (default:
‘default-directory’)."
"Prompt for file with identifier in variable `denote-directory'.
With optional FILES-MATCHING-REGEXP, filter the candidates per
the given regular expression."
- (let* ((files (if files-matching-regexp
+ (when-let ((files (if files-matching-regexp
(denote-directory-files-matching-regexp
files-matching-regexp)
(denote-all-files)))
- (completion-ignore-case read-file-name-completion-ignore-case))
- (when files
- (funcall project-read-file-name-function
- "Select note: " files nil 'denote--file-history))))
+ (completion-ignore-case read-file-name-completion-ignore-case)
+ (file (funcall project-read-file-name-function
+ "Select note: " files nil 'denote--file-history)))
+ (add-to-history 'denote--file-history file)
+ file))
(define-obsolete-function-alias
'denote--retrieve-read-file-prompt
- [elpa] externals/denote updated (7a02653305 -> ccdcbfb7b7), ELPA Syncer, 2023/09/25
- [elpa] externals/denote 1d3ced4487 01/12: Fix typos in the manual about 'denote-link', ELPA Syncer, 2023/09/25
- [elpa] externals/denote 3a9404cd37 04/12: Add new denote-link-with-signature command, ELPA Syncer, 2023/09/25
- [elpa] externals/denote 2e444f3f22 03/12: BREAKING make 'denote-file-prompt' accept optional regexp filter, ELPA Syncer, 2023/09/25
- [elpa] externals/denote 15bb6fe2f8 07/12: Make 'denote-command-prompt' return symbol, ELPA Syncer, 2023/09/25
- [elpa] externals/denote cc83083117 10/12: Add FIXME to avoid duplication with "link after creating" commands, ELPA Syncer, 2023/09/25
- [elpa] externals/denote f74c6380d3 08/12: Include default value in 'denote-command-prompt', ELPA Syncer, 2023/09/25
- [elpa] externals/denote beb1fc6d98 06/12: Fix prompt text in 'denote-command-prompt', ELPA Syncer, 2023/09/25
- [elpa] externals/denote ccdcbfb7b7 12/12: Placate the compiler about double space after dots in docs, ELPA Syncer, 2023/09/25
- [elpa] externals/denote 45fe76ca24 05/12: Make denote-file-prompt record history,
ELPA Syncer <=
- [elpa] externals/denote 3ad974396d 02/12: Make 'denote-link' more abstract to also call it from Lisp, ELPA Syncer, 2023/09/25
- [elpa] externals/denote 34c632c690 11/12: Simplify denote-dired-rename-marked-files interactive spec, ELPA Syncer, 2023/09/25
- [elpa] externals/denote 86f91ea3fa 09/12: Fix regression with how 'denote-link' was called, ELPA Syncer, 2023/09/25