branch: externals/denote
commit 6d26aea464a234cdfce4b76dd3a1ecfd1f562ab8
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Remove :reverse parameter from 'denote-backlinks' Org dynamic block
[ Same idea as with commit 0063240. ]
We do not expose this feature to the commands we provide. Adding it
here creates inconsistencies, such as, for example, with the
'denote-files' Org dynamic block. I prefer to remove this option than
to see its proliferation.
---
denote-org-dblock.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/denote-org-dblock.el b/denote-org-dblock.el
index c278896e52..494cc05b97 100644
--- a/denote-org-dblock.el
+++ b/denote-org-dblock.el
@@ -72,7 +72,7 @@ Used by `org-dblock-update' with PARAMS provided by the
dynamic block."
(defun denote-org-dblock-insert-backlinks ()
"Insert new Org dynamic block to include backlinks."
(interactive)
- (org-create-dblock (list :name "denote-backlinks" :reverse nil))
+ (org-create-dblock (list :name "denote-backlinks"))
(org-update-dblock))
(org-dynamic-block-define "denote-backlinks"
'denote-org-dblock-insert-backlinks)
@@ -83,9 +83,8 @@ 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))))
- (let ((denote-link-add-links-sort (plist-get params :reverse)))
- (insert (denote-link--prepare-links files file nil))
- (join-line)))) ;; remove trailing empty line
+ (insert (denote-link--prepare-links files file nil))
+ (join-line))) ; remove trailing empty line
;;;; Dynamic block to insert entire file contents