[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/macrostep d1e954d 099/110: Attempt to shell out to "indent
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/macrostep d1e954d 099/110: Attempt to shell out to "indent" in macrostep-c |
Date: |
Sat, 7 Aug 2021 09:18:11 -0400 (EDT) |
branch: elpa/macrostep
commit d1e954de8e13853f91a8e41e8b68e14de260cab0
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Attempt to shell out to "indent" in macrostep-c
---
macrostep-c.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/macrostep-c.el b/macrostep-c.el
index 3bf0a5d..a5bc0d9 100644
--- a/macrostep-c.el
+++ b/macrostep-c.el
@@ -161,6 +161,12 @@
(mapcar #'string-trim (list expansion warnings))))))
(defun macrostep-c-print-function (expansion &rest _ignore)
+ (with-temp-buffer
+ (insert expansion)
+ (let ((exit-code
+ (shell-command-on-region (point-min) (point-max) "indent" nil t)))
+ (when (zerop exit-code)
+ (setq expansion (string-trim (buffer-string))))))
(insert expansion))
(provide 'macrostep-c)
- [nongnu] elpa/macrostep 3f815fb 031/110: Test for normal defmacro expansion, (continued)
- [nongnu] elpa/macrostep 3f815fb 031/110: Test for normal defmacro expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9d2c58c 040/110: Add option to expand in a separate buffer, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 3f965b0 048/110: Use new `macrostep-macro-start` text property, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep ff3888f 065/110: Use a form-tracking stream rather than gensym substitution, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0fd292c 006/110: Better README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0db08ec 007/110: add Url: header for marmalade, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep aa4736c 067/110: Fix some silly errors, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0b1c0fe 069/110: Add swank/gray:stream-read-char-no-hang implementation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 704f164 091/110: Merge branch 'generic', ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep bf87b7c 095/110: Whitespace cleanup, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d1e954d 099/110: Attempt to shell out to "indent" in macrostep-c,
ELPA Syncer <=
- [nongnu] elpa/macrostep b65cc96 102/110: Makefile tweaks, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 424e373 110/110: Merge pull request #16 from fice-t/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep c5d1c5b 009/110: Autoload macro definitions if needed., ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 8b89694 012/110: Only enter macrostep-mode after successful macro expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep b060e1a 014/110: Add visible highlight of expanded section, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 4b0d96f 013/110: Remove incorrect use of :version in defgroup, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0bcb143 019/110: Handle backquotes better, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 1c01145 039/110: Merge pull request #9 from xuchunyang/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep c20152b 011/110: Handle aliases by using `indirect-function' instead of `symbol-function', ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 99ac330 029/110: Make inner macrolet definitions correctly shadow outer, ELPA Syncer, 2021/08/07