[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 4934870625 3/9: Tweak how links are formatted (d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 4934870625 3/9: Tweak how links are formatted (due to 8a8be90) |
Date: |
Sat, 13 Aug 2022 03:57:29 -0400 (EDT) |
branch: externals/denote
commit 49348706258f71700d2a65c674403152dc5e8f86
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak how links are formatted (due to 8a8be90)
---
denote.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index ba5078e3f9..b6ddbb0f90 100644
--- a/denote.el
+++ b/denote.el
@@ -1776,13 +1776,17 @@ title."
("md" denote-link--regexp-markdown)
(_ denote-link--regexp-org)))
+;; FIXME 2022-08-13: Write this cleanly
(defun denote-link--format-link (file pattern)
"Prepare link to FILE using PATTERN."
- (let* ((file-id (denote--retrieve-filename-identifier file))
- (file-type (denote--filetype-heuristics file))
- (file-title (unless (string= pattern denote-link--format-id-only)
- (denote--retrieve-value-title file file-type))))
- (format pattern file-id file-title)))
+ (if (denote--writable-and-supported-p file)
+ (let* ((file-id (denote--retrieve-filename-identifier file))
+ (file-type (denote--filetype-heuristics file))
+ (file-title (unless (string= pattern denote-link--format-id-only)
+ (denote--retrieve-value-title file file-type))))
+ (format pattern file-id file-title))
+ (format denote-link--format-id-only
+ (denote--retrieve-filename-identifier file))))
;;;###autoload
(defun denote-link (target &optional id-only)
- [elpa] externals/denote updated (75cbaaf3a1 -> 5482ce6dad), ELPA Syncer, 2022/08/13
- [elpa] externals/denote ff1aca7fc6 4/9: Simplify denote--directory-files-matching-regexp, ELPA Syncer, 2022/08/13
- [elpa] externals/denote 8a8be90200 1/9: Relax conditionality for adding links, ELPA Syncer, 2022/08/13
- [elpa] externals/denote f6501c6d42 7/9: Fix regexp for denote--{title, keywords}-key-regexp, ELPA Syncer, 2022/08/13
- [elpa] externals/denote 7877d4c77c 8/9: Fix denote--migrate-type-files detection of old keywords when only one tag, ELPA Syncer, 2022/08/13
- [elpa] externals/denote 5482ce6dad 9/9: Update the manual's Acknowledgements, ELPA Syncer, 2022/08/13
- [elpa] externals/denote 0b8a24ca0c 2/9: Add helper to check regular+writable file, ELPA Syncer, 2022/08/13
- [elpa] externals/denote 4934870625 3/9: Tweak how links are formatted (due to 8a8be90),
ELPA Syncer <=
- [elpa] externals/denote 1981a16aeb 5/9: Relax denote--directory-files conditionality, ELPA Syncer, 2022/08/13
- [elpa] externals/denote a07851218d 6/9: Fix confirmation message for denote-migrate-old-markdown-yaml-tags, ELPA Syncer, 2022/08/13