[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 443193e02f 071/153: Auto-detect Forth implement
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 443193e02f 071/153: Auto-detect Forth implementation. |
Date: |
Sat, 29 Jan 2022 08:02:18 -0500 (EST) |
branch: elpa/forth-mode
commit 443193e02f9c69e3de65288ad2484e3d89bb058a
Author: Lars Brinkhoff <lars@nocrew.org>
Commit: Lars Brinkhoff <lars@nocrew.org>
Auto-detect Forth implementation.
---
forth-interaction-mode.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/forth-interaction-mode.el b/forth-interaction-mode.el
index 41b4186852..524f41025c 100644
--- a/forth-interaction-mode.el
+++ b/forth-interaction-mode.el
@@ -4,6 +4,15 @@
(defvar forth-interaction-buffer nil)
(defvar forth-interaction-callback nil)
(defvar forth-words-cache nil)
+(defvar forth-implementation nil)
+
+(defvar forth-implementation-matches
+ '(("Gforth" . gforth)
+ ("SP-FORTH" . spforth)
+ ("PForth" . pforth)
+ ("VFX Forth" . vfxforth)
+ ("SwiftForth" . swiftforth)
+ ("lbForth" . lbforth)))
(defvar forth-interaction-mode-map
(let ((map (copy-keymap forth-mode-map)))
@@ -18,6 +27,10 @@
(use-local-map forth-interaction-mode-map))
(defun forth-interaction-preoutput-filter (text)
+ (unless forth-implementation
+ (dolist (x forth-implementation-matches)
+ (when (string-match (car x) text)
+ (setq forth-implementation (cdr x)))))
(if forth-interaction-callback
(funcall forth-interaction-callback text)
text))
- [nongnu] elpa/forth-mode 186bae4853 083/153: Fix set-process-window-size parameter order., (continued)
- [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
- [nongnu] elpa/forth-mode e35317f2f7 093/153: Improve syntax-propertize function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 76e3885c0b 150/153: Remove obsolete Wercker CI build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 443193e02f 071/153: Auto-detect Forth implementation.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define forth-smie-basic-indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 522256d98d 145/153: Adding support for ?of, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 08d891c907 026/153: Use LOCAL argument to add-hook., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 82f746ba54 049/153: Use ERT for some light testing as part of build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ad5ce072ca 006/153: GPL3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6f18e1c20e 011/153: Tweak syntax table., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from forth-mode to forth-block-mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b69527cdd2 084/153: SwiftForth shouldn't concern itself with terminal settings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 90c1ec5293 032/153: GitHub README., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 813620cae9 034/153: Run hooks before starting an interactive Forth session., ELPA Syncer, 2022/01/29