@@ 4528,7 4528,7 @@ Denote is meant to be a collective effort. Every bit of help matters.
Fargas, Matthew Lemon, Noboru Ota (nobiot), Norwid Behrnd, Peter
Prevos, Philip Kaludercic, Quiliro Ordóñez, Stefan Monnier, Stefan
Thesing, Thibaut Benjamin, Tomasz Hołubowicz, Vedang Manerikar,
- relict007.
+ ezchi, relict007.
+ Ideas and/or user feedback :: Abin Simon, Aditya Yadav, Alan
Schmitt, Alfredo Borrás, Ashton Wiersdorf, Benjamin Kästner, Colin
@@ 2020,10 2020,8 @@ technicalities)."
(defun denote--extract-title-from-file-history ()
"Extract last file title input from `file-name-history'."
- ;; We do not need to check if `file-name-history' is initialised
- ;; because it is defined in files.el. My understanding is that it
- ;; is always loaded.
- (when-let ((title (expand-file-name (car denote--file-history))))
+ (when-let ((file (car denote--file-history))
+ (title (expand-file-name file)))
(string-match (denote-directory) title)
(substring title (match-end 0))))