[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux 4302357 052/112: Make crux-visit-term-buffer ask to r
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux 4302357 052/112: Make crux-visit-term-buffer ask to restart dead process (#36) |
Date: |
Wed, 11 Aug 2021 09:57:51 -0400 (EDT) |
branch: elpa/crux
commit 430235753cda1e9af75d209e36a2c9c4f6599a80
Author: Justin Burkett <justin@burkett.cc>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Make crux-visit-term-buffer ask to restart dead process (#36)
---
crux.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/crux.el b/crux.el
index 579816d..9fe00f2 100644
--- a/crux.el
+++ b/crux.el
@@ -120,11 +120,16 @@ the current buffer."
(switch-to-buffer-other-window buffer-name)))
(defun crux-visit-term-buffer ()
- "Create or visit a terminal buffer."
+ "Create or visit a terminal buffer.
+If the process in that buffer died, ask to restart."
(interactive)
(crux-start-or-switch-to (lambda ()
(ansi-term crux-shell (concat
crux-term-buffer-name "-term")))
- (format "*%s-term*" crux-term-buffer-name)))
+ (format "*%s-term*" crux-term-buffer-name))
+ (when (and (null (get-buffer-process (current-buffer)))
+ (y-or-n-p "The process has died. Do you want to restart it? "))
+ (kill-buffer-and-window)
+ (crux-visit-term-buffer)))
(defun crux-indent-rigidly-and-copy-to-clipboard (begin end arg)
"Indent region between BEGIN and END by ARG columns and copy to clipboard."
- [nongnu] elpa/crux 5b3c815 047/112: Release 0.3, (continued)
- [nongnu] elpa/crux 5b3c815 047/112: Release 0.3, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3e03d72 049/112: Don't use dash.el function (#34), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux b60d9f4 051/112: Fix a compilation warning, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 54cc9b8 056/112: Fix typo in crux-top-join-line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 11096b9 058/112: Fix typo in keybindings (#47), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux cedec52 063/112: Mark crux-recentf-ido-find-file as obsolete, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 66954bf 022/112: Mention crux-indent-defun, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3042f6f 029/112: Add some contribution guidelines, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 225b5e3 042/112: Merge pull request #29 from Wilfred/rename_file_and_buffer_tweaks, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6ae09d0 045/112: Add functions on duplicate current line or region (#31), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 4302357 052/112: Make crux-visit-term-buffer ask to restart dead process (#36),
ELPA Syncer <=
- [nongnu] elpa/crux 2e16b82 087/112: Rework `move-to-mode-line-start` to add extensibility (#71), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux bb5a133 090/112: Simplify a bit of code, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 1fa7162 091/112: Optionally move visually in `move-to-mode-line-start', ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux dcd693c 093/112: Rename move-to-mode-line-start to crux-move-to-mode-line-start, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux e805ab7 057/112: Use synchronous process for crux-open-with, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 4f5c8fe 059/112: [Fix #46] Address two issues with crux-move-beginning-line (#48), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 49dc7d7 067/112: Remove unused prefix argument from crux-smart-kill-line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 903db7b 080/112: Add history on crux and links to emacsredux blog posts, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux ba4a1f3 098/112: Restructure the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux a0a34d1 100/112: Fix defcustom types, ELPA Syncer, 2021/08/11