branch: externals/denote
commit a45d62a64ac23ad811ee5e20d253a38a62a1f540
Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>

    Use denote-retrieve-title-or-filename in denote--rename-file
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 4f833ad725..8d0310d2ad 100644
--- a/denote.el
+++ b/denote.el
@@ -2994,7 +2994,7 @@ Respect `denote-rename-confirmations', 
`denote-save-buffers' and
 `denote-kill-buffers'."
   (let* ((initial-state (if (find-buffer-visiting file) 'visited 'not-visited))
          (file-type (denote-filetype-heuristics file))
-         (current-title (or (denote-retrieve-front-matter-title-value file 
file-type) ""))
+         (current-title (or (denote-retrieve-title-or-filename file file-type) 
""))
          (current-keywords (denote-extract-keywords-from-path file))
          (current-signature (or (denote-retrieve-filename-signature file) ""))
          (title (if (eq title 'keep-current) current-title title))

Reply via email to