branch: externals/denote-org
commit 19e40a9d199131d822ccc5c566e92e3c8b895e08
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make denote-org--insert-links use current calling convention for
denote-link-description-format
This is what we expect in denote.el, otherwise we display a warning.
Thanks to Jung Han for reporting the bug in issue 21:
<https://github.com/protesilaos/denote-org/issues/21>.
---
README.org | 2 +-
denote-org.el | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
index 7f816ad378..89081c7af2 100644
--- a/README.org
+++ b/README.org
@@ -705,7 +705,7 @@ Denote Org is meant to be a collective effort. Every bit
of help matters.
+ Author/maintainer :: Protesilaos Stavrou.
+ Contributions to code or the manual :: Peter Prevos, Vedang Manerikar.
-+ Ideas and user feedback :: GCamp6, Matt Nolan, Tonus.
++ Ideas and user feedback :: GCamp6, Jung Han, Matt Nolan, Tonus.
* GNU Free Documentation License
:PROPERTIES:
diff --git a/denote-org.el b/denote-org.el
index a080b81b91..675279e832 100644
--- a/denote-org.el
+++ b/denote-org.el
@@ -577,9 +577,8 @@ format."
;; The style we have now is what we have had since this
;; feature was first introduced. But maybe users prefer
;; to have a different format.
- (lambda (file)
- (let* ((file-type (denote-filetype-heuristics file))
- (title (denote-retrieve-title-or-filename file
file-type))
+ (lambda (file file-type)
+ (let* ((title (denote-retrieve-title-or-filename file
file-type))
(identifier (denote-retrieve-filename-identifier file))
(date (denote-id-to-date identifier)))
(format "%s (%s)" title date)))