[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote dcacd25064: Insert description if file exists wi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote dcacd25064: Insert description if file exists with 'denote-link-or-create' |
Date: |
Wed, 27 Sep 2023 09:57:47 -0400 (EDT) |
branch: externals/denote
commit dcacd250644d6e2e9108776d18487d0446263f93
Author: Alan Schmitt <alan.schmitt@polytechnique.org>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Insert description if file exists with 'denote-link-or-create'
---
denote.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index aedbd76272..84c77086fd 100644
--- a/denote.el
+++ b/denote.el
@@ -3222,7 +3222,12 @@ consists of just the identifier. Else try to also
include the
file's title. This has the same meaning as in `denote-link'."
(interactive (list (denote-file-prompt) current-prefix-arg))
(if (and target (file-exists-p target))
- (denote-link target (denote-filetype-heuristics target) target id-only)
+ (let ((type (denote-filetype-heuristics target)))
+ (denote-link
+ target
+ type
+ (denote--link-get-description target type)
+ id-only))
(denote--command-with-title-history #'denote-link-after-creating)))
(defalias 'denote-link-to-existing-or-new-note 'denote-link-or-create
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/denote dcacd25064: Insert description if file exists with 'denote-link-or-create',
ELPA Syncer <=