branch: externals/denote
commit d63f2f3eb3ab06a44c49cd7ac38ff885ce99d6d1
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
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