[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tempel 73cee5feb6 12/82: Update comments
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tempel 73cee5feb6 12/82: Update comments |
Date: |
Sun, 9 Jan 2022 20:58:41 -0500 (EST) |
branch: externals/tempel
commit 73cee5feb65b4bf74d4769d1636b8d0634192f8c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Update comments
---
tempel.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/tempel.el b/tempel.el
index a45d4ee737..6613de41bf 100644
--- a/tempel.el
+++ b/tempel.el
@@ -162,18 +162,22 @@ BEG and END are the boundaries of the modification."
(save-excursion (re-search-forward "\\=\\s-*$" nil t)))
(open-line 1)))
('p (tempel--field))
+ (`(s ,name) (tempel--named name))
+ ;; LEGACY: (r ...) and (r> ...) is legacy syntax from Tempo, use r instead.
((or 'r `(r . ,_)) (if region (goto-char (cdr region)) (tempel--field)))
((or 'r> `(r> . ,_))
(if (not region) (tempel--field)
(goto-char (cdr region))
(indent-region (car region) (cdr region) nil)))
- (`(,(or 'p 'P) ,prompt . ,rest) ;; Tempo legacy, use i, s, or plain p
instead
+ ;; LEGACY: (p ...) and (P ...) is legacy syntax from Tempo, use q, s, or p
instead.
+ (`(,(or 'p 'P) ,prompt . ,rest)
(cond
((cadr rest) (tempel--query prompt (car rest)))
((car rest) (tempel--named (car rest)))
(t (tempel--field))))
- (`(q ,prompt ,name) (tempel--query prompt name)) ;; Tempel Extension over
Tempo
- (`(s ,name) (tempel--named name))
+ ;; EXTENSION: Query from minibuffer, Tempel extension!
+ (`(q ,prompt ,name) (tempel--query prompt name))
+ ;; EXTENSION: Evaluate forms, Tempel extension!
(_ (tempel--form element))))
(defun tempel--insert (templates name region)
@@ -182,7 +186,7 @@ BEG and END are the boundaries of the modification."
(template (cdr (assoc name templates))))
(setf (alist-get 'tempel--overlays minor-mode-overriding-map-alist)
tempel-map)
(save-excursion
- ;; Split old overlays
+ ;; Split existing overlays, do not expand within existing field.
(dolist (ov tempel--overlays)
(when (and (<= (overlay-start ov) (point)) (>= (overlay-end ov)
(point)))
(setf (overlay-end ov) (point))))
- [elpa] externals/tempel 3aa1a7fca8 01/82: Initial commit, (continued)
- [elpa] externals/tempel 3aa1a7fca8 01/82: Initial commit, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel e4839df533 53/82: Add temple-key, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 4a6fc2d0ab 46/82: Fix customization type, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 0aa4e8c37f 63/82: Only erase default value if the point is at the beginning or end, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel def7a1ca3f 07/82: README: Update links, ELPA Syncer, 2022/01/09
- [elpa] externals/tempel 311f310b82 72/82: Remove todo, ELPA Syncer, 2022/01/09
- [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 <=
- [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, 2022/01/09
- [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