[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode c64035c209 073/153: Add backends for Forth impl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode c64035c209 073/153: Add backends for Forth implementations. |
Date: |
Sat, 29 Jan 2022 08:02:19 -0500 (EST) |
branch: elpa/forth-mode
commit c64035c20934cd60ad948816f031451ba7fd0599
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Add backends for Forth implementations.
---
backend/gforth.el | 1 +
backend/lbforth.el | 1 +
backend/pforth.el | 1 +
backend/spforth.el | 1 +
backend/swiftforth.el | 1 +
backend/vfxforth.el | 1 +
forth-interaction-mode.el | 10 ++++++++--
7 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/backend/gforth.el b/backend/gforth.el
new file mode 100644
index 0000000000..e05c8425c6
--- /dev/null
+++ b/backend/gforth.el
@@ -0,0 +1 @@
+(provide 'gforth)
diff --git a/backend/lbforth.el b/backend/lbforth.el
new file mode 100644
index 0000000000..c90a3b47a3
--- /dev/null
+++ b/backend/lbforth.el
@@ -0,0 +1 @@
+(provide 'lbforth)
diff --git a/backend/pforth.el b/backend/pforth.el
new file mode 100644
index 0000000000..a6f1398db6
--- /dev/null
+++ b/backend/pforth.el
@@ -0,0 +1 @@
+(provide 'pforth)
diff --git a/backend/spforth.el b/backend/spforth.el
new file mode 100644
index 0000000000..21d08fa2a5
--- /dev/null
+++ b/backend/spforth.el
@@ -0,0 +1 @@
+(provide 'spforth)
diff --git a/backend/swiftforth.el b/backend/swiftforth.el
new file mode 100644
index 0000000000..84b749cb98
--- /dev/null
+++ b/backend/swiftforth.el
@@ -0,0 +1 @@
+(provide 'swiftforth)
diff --git a/backend/vfxforth.el b/backend/vfxforth.el
new file mode 100644
index 0000000000..5504a3a7d7
--- /dev/null
+++ b/backend/vfxforth.el
@@ -0,0 +1 @@
+(provide 'vfxforth)
diff --git a/forth-interaction-mode.el b/forth-interaction-mode.el
index 524f41025c..f3f15de847 100644
--- a/forth-interaction-mode.el
+++ b/forth-interaction-mode.el
@@ -5,6 +5,8 @@
(defvar forth-interaction-callback nil)
(defvar forth-words-cache nil)
(defvar forth-implementation nil)
+(defvar forth-banner "")
+(defvar forth-backend-dir (concat default-directory "backend"))
(defvar forth-implementation-matches
'(("Gforth" . gforth)
@@ -28,9 +30,11 @@
(defun forth-interaction-preoutput-filter (text)
(unless forth-implementation
+ (setq forth-banner (concat forth-banner text))
(dolist (x forth-implementation-matches)
- (when (string-match (car x) text)
- (setq forth-implementation (cdr x)))))
+ (when (string-match (car x) forth-banner)
+ (let ((load-path (cons forth-backend-dir load-path)))
+ (require (setq forth-implementation (cdr x)))))))
(if forth-interaction-callback
(funcall forth-interaction-callback text)
text))
@@ -56,6 +60,8 @@
(defun run-forth ()
"Start an interactive forth session."
(interactive)
+ (setq forth-implementation nil)
+ (setq forth-banner "")
(unless forth-executable
(setq forth-executable
(read-string "Forth executable: ")))
- [nongnu] elpa/forth-mode b29a929b78 028/153: Add provide forms., (continued)
- [nongnu] elpa/forth-mode b29a929b78 028/153: Add provide forms., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 992bfb64b4 103/153: Fix warning about font-lock-fontify-buffer non-interactive use., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode efa1f0a336 046/153: Build Emacs Lisp files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 1bc27cd6b6 115/153: Support paragraph filling in comments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 4868a0ff03 051/153: Fix for imenu integration., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5b42dfac0c 105/153: Merge branch 'master' into case-insensitive-indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode c8103312c3 041/153: Fix typo., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b83ff1274b 054/153: Type C-c C-s to SEE a word., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2f5d87f3c5 126/153: No 64-bit build for pForth in Ubuntu. Try Gforth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2813a7bf3d 090/153: Introduce a hook to initialize backends, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode c64035c209 073/153: Add backends for Forth implementations.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode d1498037a2 107/153: Add simple tests for forward-sexp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 83a62c82c4 030/153: Move all package metadata to forth-mode.el., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 186bae4853 083/153: Fix set-process-window-size parameter order., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 48bcf41d63 058/153: Cache words from interactive Forth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f418b9aac2 087/153: Set process coding system for SwiftForth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f3d76c12c1 125/153: Test completion-at-point, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 4dc1ff0f3b 086/153: Include backend files in make dependencies., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2779ca61ab 075/153: Improve building of backend files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 71016700dc 095/153: Emacs 23: use cl library instead of cl-lib., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests., ELPA Syncer, 2022/01/29