[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 778470cbcb 014/153: Load a file into an interac
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 778470cbcb 014/153: Load a file into an interactive Forth session. |
Date: |
Sat, 29 Jan 2022 08:02:13 -0500 (EST) |
branch: elpa/forth-mode
commit 778470cbcbde3ff9e76491ea2f820d23540bdc45
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Load a file into an interactive Forth session.
---
forth-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/forth-mode.el b/forth-mode.el
index a5afaf00e6..27e42b3b11 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -13,7 +13,7 @@
;; (define-key (kbd "C-x C-e") #'forth-eval-last-sexp)
;; (define-key (kbd "C-M-x") #'forth-eval-defun)
;; (define-key (kbd "C-c C-r") #'forth-eval-region)
- ;; (define-key (kbd "C-c C-l") #'forth-load-file)
+ (define-key map (kbd "C-c C-l") 'forth-load-file)
;; (define-key (kbd "C-c :") #'forth-eval-expression)
;; (define-key (kbd "C-c C-c") #'forth-compile-defun)
;; (define-key (kbd "C-c C-k") #'forth-compile-and-load-file)
@@ -96,4 +96,9 @@
(defun forth-beginning-of-defun ())
(defun forth-end-of-defun ())
+(defun forth-load-file (file)
+ (interactive (list (buffer-file-name (current-buffer))))
+ (forth-interaction-send (concat "include " file)
+ (lambda (x) (message "Forth: %s" x))))
+
(provide 'forth-mode)
- [nongnu] branch elpa/forth-mode created (now 38d5152011), ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode fa62b36bf4 001/153: Add readme., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 67a9d94c18 012/153: Minor mode to display stack comments., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 0030189ff8 018/153: Prepare for MELPA., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 8471704670 116/153: Add more font lock keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9300eb75c4 025/153: Remove stubs., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 778470cbcb 014/153: Load a file into an interactive Forth session.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 9855800cb7 053/153: Start a user manual., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 3deee67777 097/153: Emacs 23: Don't test font-lock., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b455a556fe 056/153: Add C-M-x, forth-eval-defun., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 973481a1c5 007/153: Add some autoloads., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 244c416c4d 013/153: Variable for secifying Forth executable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode cdab2e4ec1 038/153: Also recognise .4th., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 695bb04ebc 002/153: A humble beginning., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 24d3d052fe 003/153: More work. Font lock and navigation somewhat usable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 93756ec224 005/153: Some basic and flawed support for block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode bca8f01218 004/153: Make it work in older Emacsen without prog-mode., ELPA Syncer, 2022/01/29