[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-chicken caa8174 011/102: Use pretty-print instead o
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-chicken caa8174 011/102: Use pretty-print instead of write with Chicken |
Date: |
Sun, 1 Aug 2021 18:26:46 -0400 (EDT) |
branch: elpa/geiser-chicken
commit caa81749a7263772d97bbe2546a4ea794e7ed497
Author: Dan Leslie <dan@ironoxide.ca>
Commit: Dan Leslie <dan@ironoxide.ca>
Use pretty-print instead of write with Chicken
Emacs chokes on buffers with very long lines. Use of pretty-print
instead of write causes most incidents of long lines to be avoided by
use of better formatting.
This fixes jaor/geiser#64 for Chicken, and appears to greatly speed up
completions in the general case for Chicken.
---
geiser/emacs.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/geiser/emacs.scm b/geiser/emacs.scm
index e4e84c0..47e4418 100644
--- a/geiser/emacs.scm
+++ b/geiser/emacs.scm
@@ -259,11 +259,11 @@
(set! result
(cond
((list? result)
- (map (lambda (v) (with-output-to-string (lambda () (write v))))
result))
+ (map (lambda (v) (with-output-to-string (lambda () (pretty-print
v)))) result))
((eq? result (if #f #t))
(list output))
(else
- (list (with-output-to-string (lambda () (write result)))))))
+ (list (with-output-to-string (lambda () (pretty-print result)))))))
(let ((out-form
`((result ,@result)
- [nongnu] branch elpa/geiser-chicken created (now ceab39c), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken ffae4f8 006/102: Various improvements, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken f43bfec 007/102: Various improvements, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken eb21b79 012/102: Fixes an issue where symbol->string was failing, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 74b88cc 010/102: Adds necessary parameter to csi for Windows., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken caa8174 011/102: Use pretty-print instead of write with Chicken,
Philip Kaludercic <=
- [nongnu] elpa/geiser-chicken 01e37d4 017/102: Add compiled .so caching to Chicken support, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken faf900f 008/102: geiser-chicken.el: add indentation rule for `with-output-to-pipe', Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken a09e2c2 005/102: Compile instead of Load, should speed up., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken f143cc9 004/102: Documentation updates and nits for Freija, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken c4aed35 003/102: Documentation updates and nits for Freija, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 23aafbb 002/102: Initial Chicken support, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 845ee42 019/102: Added missing macros, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken d83d2df 009/102: Now suppress loading messages, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken 6782f4a 016/102: Kill those TABs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chicken d6df78f 014/102: Merge remote-tracking branch 'dleslie/faster-output-handling', Philip Kaludercic, 2021/08/01