[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tempel fad8096af4 2/2: Formatting
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tempel fad8096af4 2/2: Formatting |
Date: |
Thu, 5 Dec 2024 06:58:55 -0500 (EST) |
branch: externals/tempel
commit fad8096af47f0cb354d8f4a9bcbbb2e36a026e1c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Formatting
---
tempel.el | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/tempel.el b/tempel.el
index 3ef48bd7e0..f6da830c8e 100644
--- a/tempel.el
+++ b/tempel.el
@@ -258,9 +258,13 @@ BEG and END are the boundaries of the modification."
(save-excursion
(goto-char (overlay-start ov))
(let (x)
- (setq x (or (and (setq x (overlay-get ov 'tempel--form)) (or (eval
x (cdr st)) ""))
- (and (setq x (overlay-get ov 'tempel--name))
(alist-get x (cdr st)))))
- (when x (tempel--synchronize-replace (overlay-start ov)
(overlay-end ov) ov x)))))
+ (setq x (or (and (setq x (overlay-get ov 'tempel--form))
+ (or (eval x (cdr st)) ""))
+ (and (setq x (overlay-get ov 'tempel--name))
+ (alist-get x (cdr st)))))
+ (when x
+ (tempel--synchronize-replace (overlay-start ov)
+ (overlay-end ov) ov x)))))
;; Move range overlay
(move-overlay range (overlay-start range)
(max (overlay-end range) (overlay-end ov))))))
@@ -486,10 +490,9 @@ This is meant to be a source in `tempel-template-sources'."
(timestamps
(cl-loop
for f in files collect
- (cons f (time-convert
- (file-attribute-modification-time
- (file-attributes (file-truename f)))
- 'integer)))))
+ (cons f (time-convert (file-attribute-modification-time
+ (file-attributes (file-truename f)))
+ 'integer)))))
(unless (equal (car tempel--path-templates) timestamps)
(setq tempel--path-templates (cons timestamps
(mapcan #'tempel--file-read
files))))))