[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote df75a7bf7e 19/20: Simplify the 'denote-backlinks
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote df75a7bf7e 19/20: Simplify the 'denote-backlinks' Org dynamic block |
Date: |
Sat, 25 Nov 2023 00:57:51 -0500 (EST) |
branch: externals/denote
commit df75a7bf7ed40e5b449ad01c44897925736d4e54
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Simplify the 'denote-backlinks' Org dynamic block
---
denote-org-dblock.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/denote-org-dblock.el b/denote-org-dblock.el
index 0c2e257e0a..9cf9b07976 100644
--- a/denote-org-dblock.el
+++ b/denote-org-dblock.el
@@ -80,10 +80,8 @@ Used by `org-dblock-update' with PARAMS provided by the
dynamic block."
(defun org-dblock-write:denote-backlinks (params)
"Function to update `denote-backlinks' Org Dynamic blocks.
Used by `org-dblock-update' with PARAMS provided by the dynamic block."
- (when-let ((file (buffer-file-name))
- (id (denote-retrieve-filename-identifier file))
- (files (delete file (denote--retrieve-files-in-xrefs id))))
- (insert (denote-link--prepare-links files file (plist-get params
:id-only)))
+ (when-let ((files (denote-link-return-backlinks)))
+ (insert (denote-link--prepare-links files 'org (plist-get params
:id-only)))
(join-line))) ; remove trailing empty line
;;;; Dynamic block to insert entire file contents
- [elpa] externals/denote b00a8230cd 02/20: Greatly expand the capabilities of the 'denote-files' Org dynamic block, (continued)
- [elpa] externals/denote b00a8230cd 02/20: Greatly expand the capabilities of the 'denote-files' Org dynamic block, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 3f23dd1fd0 04/20: Include the :reverse parameter in 'denote-org-dblock-insert-backlinks', ELPA Syncer, 2023/11/25
- [elpa] externals/denote a4c0207700 07/20: Include the :reverse parameter in 'denote-org-dblock-insert-links', ELPA Syncer, 2023/11/25
- [elpa] externals/denote 46eef8650b 11/20: Rewrite the Commentary and one-line description of denote-org-dblock.el, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 54b28998aa 06/20: Remove needless quote from t in denote-org-dblock.el, ELPA Syncer, 2023/11/25
- [elpa] externals/denote e7a176e4e7 13/20: DEPRECATE 'denote-add-missing-links', ELPA Syncer, 2023/11/25
- [elpa] externals/denote e2f72c5f75 08/20: Clarify that 'denote-backlinks' Org dynamic block accepts :reverse parameter, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 6d26aea464 17/20: Remove :reverse parameter from 'denote-backlinks' Org dynamic block, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 87f5bb12a4 18/20: Make 'denote-backlinks' Org dynamic block accept :id-only parameter, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 00632408ed 16/20: Remove :reverse parameter from 'denote-links' Org dynamic block, ELPA Syncer, 2023/11/25
- [elpa] externals/denote df75a7bf7e 19/20: Simplify the 'denote-backlinks' Org dynamic block,
ELPA Syncer <=
- [elpa] externals/denote 3922e348fb 12/20: Tweak the outline of denote-org-dblock.el, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 110271dc5a 03/20: Register 'denote-files' Org dynamic block, ELPA Syncer, 2023/11/25
- [elpa] externals/denote d63f2f3eb3 01/20: Move denote-org-dblock-file-contents-separator closer to where it is used, ELPA Syncer, 2023/11/25
- [elpa] externals/denote 1ac6a22ee3 14/20: Simplify the 'denote-links' Org dynamic block; add :id-only parameter, ELPA Syncer, 2023/11/25