[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 6dcd29382f 015/153: Make the forth-interaction-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 6dcd29382f 015/153: Make the forth-interaction-send callback optional. |
Date: |
Sat, 29 Jan 2022 08:02:13 -0500 (EST) |
branch: elpa/forth-mode
commit 6dcd29382f95a2f34d2c8bbb2990ceb65a90e373
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Make the forth-interaction-send callback optional.
---
forth-interaction-mode.el | 5 +++--
forth-mode.el | 3 +--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/forth-interaction-mode.el b/forth-interaction-mode.el
index e8529af451..731ccb1bcc 100644
--- a/forth-interaction-mode.el
+++ b/forth-interaction-mode.el
@@ -17,7 +17,8 @@
(defun forth-interaction-preoutput-filter (text)
(if forth-interaction-callback
- (prog1 (funcall forth-interaction-callback text)
+ (prog1 (when forth-interaction-callback
+ (funcall forth-interaction-callback text))
(setq forth-interaction-callback nil))
text))
@@ -53,7 +54,7 @@
(get-buffer-process forth-interaction-buffer))
;;;### autoload
-(defun forth-interaction-send (string callback)
+(defun forth-interaction-send (string &optional callback)
(let ((proc (ensure-forth)))
(setq forth-interaction-callback callback)
(comint-send-string proc string)
diff --git a/forth-mode.el b/forth-mode.el
index 27e42b3b11..8580cdc3d0 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -98,7 +98,6 @@
(defun forth-load-file (file)
(interactive (list (buffer-file-name (current-buffer))))
- (forth-interaction-send (concat "include " file)
- (lambda (x) (message "Forth: %s" x))))
+ (forth-interaction-send (concat "include " file)))
(provide 'forth-mode)
- [nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define forth-smie-basic-indent, (continued)
- [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
- [nongnu] elpa/forth-mode 6dcd29382f 015/153: Make the forth-interaction-send callback optional.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 68d740e7ae 042/153: Empty files are not block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 745e1d8388 039/153: Document key bindings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5df1f95c26 044/153: Speedbar support., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 794c9efd01 021/153: Use require and provide instead of load, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9812d1decd 114/153: Use /interperter to setup terminal personalty, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5aa3a700b0 016/153: Improve killing an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2869bc25e4 085/153: Create a terminal personality for SwiftForth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 8d1d8ea795 099/153: Re-add test for 'syntax-propertize-function., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 55de74bb4f 033/153: Query Forth session about defined words., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 44dd013096 059/153: Remove terminal escape sequences from strings returned from Forth., ELPA Syncer, 2022/01/29