[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 5aa3a700b0 016/153: Improve killing an interact
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 5aa3a700b0 016/153: Improve killing an interactive Forth session. |
Date: |
Sat, 29 Jan 2022 08:02:13 -0500 (EST) |
branch: elpa/forth-mode
commit 5aa3a700b0580ea42d9c087bf826f1cfd48b12cc
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Improve killing an interactive Forth session.
---
forth-interaction-mode.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/forth-interaction-mode.el b/forth-interaction-mode.el
index 731ccb1bcc..5fb40194d7 100644
--- a/forth-interaction-mode.el
+++ b/forth-interaction-mode.el
@@ -6,7 +6,7 @@
(defvar forth-interaction-mode-map
(let ((map (copy-keymap forth-mode-map)))
(set-keymap-parent map comint-mode-map)
- (define-key map (kbd "C-c C-k") 'forth-interaction-kill)
+ (define-key map (kbd "C-c C-k") 'forth-kill)
map)
"Keymap for Forth interaction.")
@@ -22,14 +22,16 @@
(setq forth-interaction-callback nil))
text))
-(defun forth-interaction-kill (&optional buffer)
+(defun forth-kill (&optional buffer)
(interactive)
- (kill-buffer (or buffer (current-buffer)))
+ (setq buffer (or buffer (current-buffer)))
+ (set-process-query-on-exit-flag (get-buffer-process buffer) nil)
+ (kill-buffer buffer)
(setq forth-interaction-buffer nil))
(defun forth-interaction-sentinel (proc arg)
(message "Forth: %s" arg)
- (forth-interaction-kill (process-buffer proc)))
+ (forth-kill (process-buffer proc)))
(defvar forth-executable "gforth")
- [nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from forth-mode to forth-block-mode., (continued)
- [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, 2022/01/29
- [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 <=
- [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
- [nongnu] elpa/forth-mode 399fd00921 055/153: Fix killing interactive Forth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 56bbc06a16 079/153: Error out if byte compilation fails in Emacs 23., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 531c9e11e2 023/153: Add autoload cookie to extension configuration, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 847481f866 061/153: Tweak window handling., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5a08c82adb 111/153: Improve word movement commands inside symbols., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 50a7eb4bf1 094/153: Handle indentation of : and with smie instead of syntax-table., ELPA Syncer, 2022/01/29