[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt f491a6adb2 278/323: Rework to use write-regio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt f491a6adb2 278/323: Rework to use write-region, use a little less memory |
Date: |
Thu, 9 Mar 2023 10:58:38 -0500 (EST) |
branch: externals/beardbolt
commit f491a6adb28f2bf9cc8a9e7dd373e0c08b9e0568
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Rework to use write-region, use a little less memory
* beardbolt.el (bb-compile): Rework.
---
beardbolt.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/beardbolt.el b/beardbolt.el
index c41837d03f..513329e746 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -666,11 +666,8 @@ Interactively, determine LANG from `major-mode'."
(when risky-vars
(message "[beardbolt] Some variables risky %s" risky-vars)))))
(hack-local-variables))
- (let* ((dump-file
- (let ((inhibit-message t))
- (make-temp-file "beardbolt-dump-" nil
- (concat "." (file-name-extension buffer-file-name))
- (buffer-string))))
+ (let* ((dump-file (make-temp-file "beardbolt-dump-" nil
+ (concat "." (file-name-extension
buffer-file-name))))
(src-buffer (current-buffer))
(specs (funcall (bb--lang-compile-specs lang)))
(spec (alist-get
@@ -678,6 +675,8 @@ Interactively, determine LANG from `major-mode'."
specs))
(command-and-declared-output (funcall (car spec) dump-file))
(cmd (car command-and-declared-output)))
+ (let ((inhibit-message t))
+ (write-region (point-min) (point-max) dump-file))
(with-current-buffer ; With compilation buffer
(let ((shell-file-name (or (executable-find bb--shell)
shell-file-name))
- [elpa] externals/beardbolt 971d6cfeae 093/323: Various fixes and cleanups, (continued)
- [elpa] externals/beardbolt 971d6cfeae 093/323: Various fixes and cleanups, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a5614c56d7 113/323: Merge branch 'pony', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b348482d7f 091/323: Switch to imgur for image links, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d187b8b189 125/323: Optimize guide display when many line blocks found, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt de28f7903a 232/323: Merge branch 'fix-kill-buffer-error' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3fe322e573 242/323: Merge branch 'improve-auto-compilation' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 194e7ea9dc 253/323: Dumb rename rmsbolt->bearbold, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3870c30bbd 257/323: Move test/*test.el to beardbolt-tests.el, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 98f766bdfc 270/323: Add a README.md, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 28fc329861 262/323: Rework bb-compile a bit, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f491a6adb2 278/323: Rework to use write-region, use a little less memory,
ELPA Syncer <=
- [elpa] externals/beardbolt 2633e20e66 274/323: * beardbolt.el (bb--reachable-p): Rework for small speed gain., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 60fa7a3c05 280/323: Force asm output to be of a certain format, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b2dc0eb81d 284/323: Make beardbolt-disassemble work again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 730ea84796 290/323: bb-compile-delay can be nil, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2c798336b8 292/323: Tweak README.md, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c05a0be490 297/323: Add useful beardbolt-preserve-library-functions, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 26c0b918e4 301/323: Tweak README.md again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e1e69080b7 303/323: Rename "output buffer" -> "asm buffer", ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt dbafc4a88c 304/323: Minor cleanup, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 68469cfb57 306/323: More misc minor rework to simplify code, ELPA Syncer, 2023/03/09