[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote d63f2f3eb3 01/20: Move denote-org-dblock-file-co
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/denote d63f2f3eb3 01/20: Move denote-org-dblock-file-contents-separator closer to where it is used |
|
Date: |
Sat, 25 Nov 2023 00:57:50 -0500 (EST) |
branch: externals/denote
commit d63f2f3eb3ab06a44c49cd7ac38ff885ce99d6d1
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Move denote-org-dblock-file-contents-separator closer to where it is used
---
denote-org-dblock.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/denote-org-dblock.el b/denote-org-dblock.el
index c43f15e5e0..981f88e9f1 100644
--- a/denote-org-dblock.el
+++ b/denote-org-dblock.el
@@ -151,10 +151,6 @@ Used by `org-dblock-update' with PARAMS provided by the
dynamic block."
;;;; Dynamic block with entire file contents
-(defvar denote-org-dblock-file-contents-separator
- (concat "\n\n" (make-string 50 ?-) "\n\n\n")
- "Fallback separator used by `denote-org-dblock-add-files'.")
-
(defun denote-org-dblock--get-file-contents (file &optional no-front-matter)
"Insert the contents of FILE.
With optional NO-FRONT-MATTER as non-nil, try to remove the front
@@ -169,6 +165,10 @@ blank line, starting from the top of the buffer."
(delete-region (1+ (point)) min)))
(buffer-string)))
+(defvar denote-org-dblock-file-contents-separator
+ (concat "\n\n" (make-string 50 ?-) "\n\n\n")
+ "Fallback separator used by `denote-org-dblock-add-files'.")
+
(defun denote-org-dblock--separator (separator)
"Return appropriate value of SEPARATOR for `denote-org-dblock-add-files'."
(cond
- [elpa] externals/denote 46eef8650b 11/20: Rewrite the Commentary and one-line description of denote-org-dblock.el, (continued)
- [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, 2023/11/25
- [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 <=
- [elpa] externals/denote 1ac6a22ee3 14/20: Simplify the 'denote-links' Org dynamic block; add :id-only parameter, ELPA Syncer, 2023/11/25