[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 859722f7e0 084/323: Add back support for Emac
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 859722f7e0 084/323: Add back support for Emacs 25 |
Date: |
Thu, 9 Mar 2023 10:58:20 -0500 (EST) |
branch: externals/beardbolt
commit 859722f7e0b2a6e88e1a1fafd38ba30b658810cc
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Add back support for Emacs 25
---
rmsbolt.el | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 59d92e8fd5..f9056b1d67 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -771,13 +771,12 @@ Argument ASM-LINES input lines."
(rmsbolt--process-src-asm-lines src-buffer asm-lines)))))
;;;;; Handlers
-(defun rmsbolt--handle-finish-compile (buffer _str)
+(defun rmsbolt--handle-finish-compile (buffer str)
"Finish hook for compilations.
-Argument BUFFER compilation buffer."
+Argument BUFFER compilation buffer.
+Argument STR compilation finish status."
(let ((compilation-fail
- (with-current-buffer buffer
- (eq 'compilation-mode-line-fail
- (get-text-property 0 'face (car mode-line-process)))))
+ (not (string-match "^finished" str)))
(default-directory (buffer-local-value 'default-directory buffer))
(src-buffer (buffer-local-value 'rmsbolt-src-buffer buffer)))
@@ -823,12 +822,18 @@ Argument BUFFER compilation buffer."
(with-current-buffer src-buffer
(setq-local rmsbolt-line-mapping ht))
- ;; Replace buffer contents non-destructively
- (with-temp-buffer
- (insert (mapconcat 'identity lines "\n"))
- (let ((tmp-buffer (current-buffer)))
- (with-current-buffer output-buffer
- (replace-buffer-contents tmp-buffer))))
+ ;; Replace buffer contents non-destructively if possible
+ (if (functionp #'replace-buffer-contents)
+ (with-temp-buffer
+ (insert (mapconcat 'identity lines "\n"))
+ (let ((tmp-buffer (current-buffer)))
+ (with-current-buffer output-buffer
+ (replace-buffer-contents tmp-buffer))))
+ (with-current-buffer output-buffer
+ (let ((old-point (point)))
+ (erase-buffer)
+ (insert (mapconcat 'identity lines "\n"))
+ (goto-char old-point))))
(asm-mode)
(rmsbolt-mode 1)
(setq-local rmsbolt-src-buffer src-buffer)
- [elpa] externals/beardbolt 90b5cad9c1 016/323: Finish initial implementation of dissasembly, (continued)
- [elpa] externals/beardbolt 90b5cad9c1 016/323: Finish initial implementation of dissasembly, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt de183bea12 010/323: Add support for c++ and c, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 627dd4c1c9 059/323: Allow for custom asm processing functions, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 978d8290a1 067/323: Add guide on adding new languages, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f911321a02 058/323: Add support for automatically hot recompiling, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 86742e7b76 055/323: Merge branch 'master' of gitlab.com:jgkamat/rmsbolt, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 01f7664eda 060/323: Fix tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 36b701d70e 072/323: Fix broken tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8d992d1da7 103/323: Add links to README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a74d54e764 109/323: Fix tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 859722f7e0 084/323: Add back support for Emacs 25,
ELPA Syncer <=
- [elpa] externals/beardbolt 2eca2d59dd 100/323: Merge branch 'patch-2' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a85b457e81 108/323: Fix typo, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt fb0e8c85a3 110/323: Use https links to avoid mixed content warnings, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 9129f1f13c 116/323: Add documentation and README for elisp, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c95ba9c0c4 097/323: More consistent punctuation in README bullet list, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 74fc122c39 101/323: Fix typo in supports-{disass, asm}, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 36bfe74010 102/323: Force using bash whenever available, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 15aa590bcf 106/323: Add ability to specify moved initial src file, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b60a9e3a84 117/323: Fix errors with emacs <25 with elisp disass, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a5855171f8 120/323: Fix byte-compilation warnings, ELPA Syncer, 2023/03/09