[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 9129f1f13c 116/323: Add documentation and REA
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 9129f1f13c 116/323: Add documentation and README for elisp |
Date: |
Thu, 9 Mar 2023 10:58:22 -0500 (EST) |
branch: externals/beardbolt
commit 9129f1f13c4e06547b08c5e1e321203698d8cde1
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Add documentation and README for elisp
Close #3
---
README.org | 6 ++++++
rmsbolt.el | 7 ++++++-
starters/rmsbolt-starter.el | 28 ++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 085b1c0632..f8c93183f5 100644
--- a/README.org
+++ b/README.org
@@ -132,6 +132,12 @@ copied into it's own directory, making it much harder to
view non-toy examples.
[[https://i.imgur.com/8kd6kkJ.gif][https://i.imgur.com/8kd6kkJ.gif]]
+** Emacs Lisp
+
+No support for source->asm matching, filtering, or automatic recompile.
+
+[[https://i.imgur.com/uYrQ7En.gif][https://i.imgur.com/uYrQ7En.gif]]
+
** Common Lisp
No support for source->asm matching or filtering. Only ~sbcl~ and ~clisp~
diff --git a/rmsbolt.el b/rmsbolt.el
index 955165b487..2b54eb0139 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -88,7 +88,8 @@
:type 'string
:group 'rmsbolt)
(defcustom rmsbolt-automatic-recompile t
- "Whether to automatically recompile on source buffer changes."
+ "Whether to automatically recompile on source buffer changes.
+Emacs-lisp does not support automatic-recompilation currently."
:type 'boolean
:group 'rmsbolt)
@@ -1108,6 +1109,7 @@ Argument OVERRIDE-BUFFER use this buffer instead of
reading from the output file
("python" . "rmsbolt.py")
("haskell" . "rmsbolt.hs")
("pony" . "rmsbolt.pony")
+ ("emacs-lisp" . "rmsbolt-starter.el")
;; Rmsbolt is capitalized here because of Java convention of Capitalized
;; class names.
("java" . "Rmsbolt.java")))
@@ -1234,6 +1236,9 @@ Argument OVERRIDE-BUFFER use this buffer instead of
reading from the output file
(should-hot-recompile rmsbolt-automatic-recompile)
(output-buffer (get-buffer rmsbolt-output-buffer))
(src-buffer (buffer-local-value 'rmsbolt-src-buffer
output-buffer))
+ (is-not-elisp (not (eq 'emacs-lisp-mode
+ (with-current-buffer src-buffer
+ major-mode))))
(modified (buffer-modified-p src-buffer)))
(with-current-buffer src-buffer
;; Write to disk
diff --git a/starters/rmsbolt-starter.el b/starters/rmsbolt-starter.el
new file mode 100644
index 0000000000..230ef2fa13
--- /dev/null
+++ b/starters/rmsbolt-starter.el
@@ -0,0 +1,28 @@
+;;; rmsbolt-starter.el --- Starter file for rmsbolt -*- lexical-binding: t; -*-
+
+;;; Commentary:
+;; A simple starter!
+
+;;; Code:
+
+(defun my-apply (fn &rest args)
+ "`apply's FN to ARGS."
+ (apply fn args))
+
+(defun is-rms (letter)
+ "Check to see if a LETTER is RMS."
+ (pcase letter
+ ((or "R" "M" "S") t)
+ (_ nil)
+ (_ "I will never run!")))
+
+(defun main ()
+ "Main entrypoint."
+ (let* ((a (my-apply (lambda (a) (- a (+ 20 21)))
+ 999))
+ (a (+ 1 1 1 a)))
+ (message (is-rms a))))
+
+(main)
+
+;;; rmsbolt-starter.el ends here
- [elpa] externals/beardbolt f911321a02 058/323: Add support for automatically hot recompiling, (continued)
- [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, 2023/03/09
- [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 <=
- [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
- [elpa] externals/beardbolt 0d5774397b 124/323: Update README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt be3f92821e 140/323: Clean up PHP exporter slightly, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a4e0b8a805 134/323: Optimize disassembly function, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3527f2fa3a 123/323: Fix source code highlighting when multiple files are provided, ELPA Syncer, 2023/03/09