emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/tempel f0df571f66 17/82: Respect derived modes


From: ELPA Syncer
Subject: [elpa] externals/tempel f0df571f66 17/82: Respect derived modes
Date: Sun, 9 Jan 2022 20:58:42 -0500 (EST)

branch: externals/tempel
commit f0df571f6635da57dbb7399860a3327bb361cca9
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Respect derived modes
---
 tempel.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tempel.el b/tempel.el
index 0442601dbf..4d4d2bc7e1 100644
--- a/tempel.el
+++ b/tempel.el
@@ -232,7 +232,9 @@ BEG and END are the boundaries of the modification."
     (unless (equal tempel--modified mod)
       (setq tempel--templates (tempel--load tempel-file)
             tempel--modified mod)))
-  (cdr (seq-find (lambda (x) (derived-mode-p (car x))) tempel--templates)))
+  (apply #'append (mapcar #'cdr
+                          (seq-filter (lambda (x) (derived-mode-p (car x)))
+                                      tempel--templates))))
 
 (defun tempel--region ()
   "Return region bounds."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]