[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tempel d4bd649645 59/82: Minor renaming
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tempel d4bd649645 59/82: Minor renaming |
Date: |
Sun, 9 Jan 2022 20:58:45 -0500 (EST) |
branch: externals/tempel
commit d4bd64964590a779081ea0dcbbf6ed1d7d521190
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Minor renaming
---
tempel.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tempel.el b/tempel.el
index e934c19d2a..f7f34f1a95 100644
--- a/tempel.el
+++ b/tempel.el
@@ -234,14 +234,14 @@ INIT is the optional initial input."
(read-string prompt)
(eval prompt 'lexical-binding))))
-(defun tempel--element (st element region)
- "Add template ELEMENT to ST given the REGION."
- (pcase element
+(defun tempel--element (st region elt)
+ "Add template ELT to ST given the REGION."
+ (pcase elt
('nil)
('n (insert "\n"))
('n> (insert "\n") (indent-according-to-mode))
('> (indent-according-to-mode))
- ((pred stringp) (insert element))
+ ((pred stringp) (insert elt))
('& (unless (or (bolp) (save-excursion (re-search-backward "^\\s-*\\=" nil
t)))
(insert "\n")))
('% (unless (or (eolp) (save-excursion (re-search-forward "\\=\\s-*$" nil
t)))
@@ -265,7 +265,7 @@ INIT is the optional initial input."
;; TEMPEL EXTENSION: Query from minibuffer, (q "Prompt: " name), (q
(FORM...) name)
(`(q ,prompt ,name) (tempel--query st prompt name))
;; TEMPEL EXTENSION: Evaluate forms
- (_ (tempel--form st element))))
+ (_ (tempel--form st elt))))
(defun tempel--insert (template region)
"Insert TEMPLATE given the current REGION."
@@ -285,7 +285,7 @@ INIT is the optional initial input."
(inhibit-modification-hooks t))
(push (make-overlay (point) (point)) (car st))
(overlay-put (caar st) 'face 'cursor) ;; TODO debug
- (dolist (x template) (tempel--element st x region))
+ (dolist (elt template) (tempel--element st region elt))
(push (make-overlay (point) (point) nil t t) (car st))
(overlay-put (caar st) 'face 'cursor) ;; TODO debug
(push st tempel--active)))
- [elpa] externals/tempel 9cf5cc35b3 16/82: Use insert-file-contents, (continued)
- [elpa] externals/tempel 9cf5cc35b3 16/82: Use insert-file-contents, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel db24ec0c9e 22/82: Reevaluate forms when arbitrary fields are modified, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 09a0e3bfb0 19/82: Improve annotations, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 16b0fa274a 09/82: Rename commands, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 73cee5feb6 12/82: Update comments, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel b54036f1fa 21/82: Add comment, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 11cfbe239d 36/82: Fix undo, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel ffdf2c792a 77/82: Document the abbrev modes (See #14), ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 460f8fe806 81/82: Fix the MELPA issues, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel aec4f10253 82/82: Addition to GNU ELPA, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel d4bd649645 59/82: Minor renaming,
ELPA Syncer <=
- [elpa] externals/tempel 2cff879181 30/82: Do not call modification hooks from forms, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 1222c59b30 39/82: Update README, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 07d16fded7 67/82: Update fields when new field is inserted, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel f0df571f66 17/82: Respect derived modes, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel bf95b3f1c2 31/82: Add support for (q (FORM ...) var), ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 64f896d782 44/82: Fix jump to first field, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 9948c6889d 43/82: Add tempel-form-prefix and tempel-field-prefix, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel ad71c25632 32/82: Add syntax extension (p (FORM...) <NAME>), ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 5dbdc76eb2 74/82: Specify the completion category tempel, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 65a3eb0458 76/82: Improve abbreviation expansion, ELPA Syncer, 2022/01/09