[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/macrostep 07e14e2 032/110: Test for macrostep-environment-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/macrostep 07e14e2 032/110: Test for macrostep-environment-at-point |
Date: |
Sat, 7 Aug 2021 09:17:57 -0400 (EDT) |
branch: elpa/macrostep
commit 07e14e2be801404a2ca89a763d44f21a6e41a106
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Test for macrostep-environment-at-point
---
macrostep-test.el | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/macrostep-test.el b/macrostep-test.el
index 70d3777..7fda05e 100644
--- a/macrostep-test.el
+++ b/macrostep-test.el
@@ -140,6 +140,27 @@
'(test-macro (second (call)))
'(inner-definition (second (call))))))
+(ert-deftest macrostep-environnment-at-point ()
+ (macrostep-with-text
+ ;; Taken from org-notify.el.
+ '(macrolet ((get (k) `(plist-get list ,k))
+ (pr (k v) `(setq result (plist-put result ,k ,v))))
+ (body forms))
+ (search-forward "(body")
+ (let ((env (macrostep-environment-at-point)))
+ (should (assq 'get env))
+ (should (assq 'pr env))
+ (should (functionp (cdr (assq 'get env))))
+ (should (functionp (cdr (assq 'pr env))))
+ (should
+ (equal
+ (apply (cdr (assq 'pr env)) '(:heading heading))
+ '(setq result (plist-put result :heading heading))))
+ (should
+ (equal
+ (apply (cdr (assq 'get env)) '(:begin))
+ '(plist-get list :begin))))))
+
(when noninteractive
(load-file (expand-file-name "macrostep.el"
(file-name-directory load-file-name)))
- [nongnu] elpa/macrostep e2bf1aa 005/110: Change :reverse-video to :inverse-video for e24, (continued)
- [nongnu] elpa/macrostep e2bf1aa 005/110: Change :reverse-video to :inverse-video for e24, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 993a79f 010/110: bump version number, add changelog, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9cd6742 016/110: Try to be smarter about maintaining buffer state, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep cb2019e 017/110: acknowledgements in docs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 5c62a4c 021/110: Merge remote-tracking branch 'georgek/backquotes', ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep f026495 025/110: Fix comment typos, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 77c0c1a 023/110: update readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep b04f8db 026/110: Basic support for expanding macros bound by `macrolet', ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 7acce07 028/110: Require `cl-macs` at runtime, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 51d5b6a 036/110: Fix a bug with printing the first element of a list., ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 07e14e2 032/110: Test for macrostep-environment-at-point,
ELPA Syncer <=
- [nongnu] elpa/macrostep c93c2d6 053/110: Language-agnostic macro-form boundaries, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep e3e5c12 034/110: Merge branch 'expand-macrolet', ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 4ea178a 045/110: Simplify overlay collapsing, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 2519692 038/110: Restore narrowing, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep c748996 057/110: Tweak macrostep-slime-macro-form-p, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 3757ec4 033/110: Extend macrostep-environment while printing macrolet body forms, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep a478a3a 054/110: Bind inhibit-read-only instead of buffer-read-only, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 8d72b62 044/110: Fix indentation in new macrostep-pp function, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 8950313 037/110: Bump version number and changelog for 0.8, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 5680278 056/110: Gross hack to macrostep--slime-propertize-macros, ELPA Syncer, 2021/08/07