[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache ebf9b491bd 117/158: Add variable for dtache-shel
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache ebf9b491bd 117/158: Add variable for dtache-shell-command buffer |
Date: |
Wed, 19 Jan 2022 18:58:04 -0500 (EST) |
branch: externals/dtache
commit ebf9b491bdfc01a5c44dc7f48e4c90c683cfa252
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Add variable for dtache-shell-command buffer
---
dtache-shell.el | 2 +-
dtache.el | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dtache-shell.el b/dtache-shell.el
index 69f3ca99c3..62d3b4f2d7 100644
--- a/dtache-shell.el
+++ b/dtache-shell.el
@@ -124,7 +124,7 @@ cluttering the comint-history with dtach commands."
(defun dtache-shell--save-history ()
"Save `shell' history."
(with-connection-local-variables
- (unless (string-prefix-p "\*Dtache Shell Command" (buffer-name))
+ (unless (string-prefix-p dtache--shell-command-buffer (buffer-name))
(let* ((inhibit-message t)
(comint-input-ring-file-name
(concat
diff --git a/dtache.el b/dtache.el
index 75de38a3ed..29c6b071b5 100644
--- a/dtache.el
+++ b/dtache.el
@@ -214,6 +214,8 @@ Valid values are: create, new and attach")
(defvar dtache--session-candidates nil
"An alist of session candidates.")
+(defconst dtache--shell-command-buffer "*Dtache Shell Command*"
+ "Name of the `dtache-shell-command' buffer.")
(defconst dtache--dtach-eof-message "\\[EOF - dtach terminating\\]"
"Message printed when `dtach' terminates.")
(defconst dtache--dtach-detached-message "\\[detached\\]\^M"
@@ -428,7 +430,7 @@ compilation or shell-command the command will also kill the
window."
(interactive)
(if (dtache-session-p dtache--buffer-session)
(if-let ((command-or-compile
- (cond ((string-match "\*Dtache Shell Command" (buffer-name)) t)
+ (cond ((string-match dtache--shell-command-buffer
(buffer-name)) t)
((string-match "\*dtache-compilation" (buffer-name)) t)
((eq major-mode 'dtache-log-mode) t)
((eq major-mode 'dtache-tail-mode) t)
@@ -510,7 +512,7 @@ Optionally SUPPRESS-OUTPUT."
`("dtache" nil ,(dtache-dtach-command
dtache--current-session t))))
(cl-letf* ((dtache-session-mode 'create)
((symbol-function #'set-process-sentinel) #'ignore)
- (buffer "*Dtache Shell Command*"))
+ (buffer (generate-new-buffer-name
dtache--shell-command-buffer)))
(setq dtache-enabled nil)
(funcall #'async-shell-command (dtache-dtach-command
dtache--current-session t) buffer)
(with-current-buffer buffer (setq dtache--buffer-session
dtache--current-session))))))
@@ -626,7 +628,7 @@ If session is not valid trigger an automatic cleanup on
SESSION's host."
(if (dtache--session-redirect-only session)
(dtache--attach-session session)
(cl-letf* (((symbol-function #'set-process-sentinel) #'ignore)
- (buffer "*Dtache Shell Command*"))
+ (buffer dtache--shell-command-buffer))
(funcall #'async-shell-command (dtache--session-command session)
buffer)
(with-current-buffer buffer (setq dtache--buffer-session
dtache--current-session)))))))
- [elpa] externals/dtache b1e4ead73e 094/158: Remove start-process advice, (continued)
- [elpa] externals/dtache b1e4ead73e 094/158: Remove start-process advice, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2c4520a3c5 015/158: Add missing variable to tail-mode, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b247ddc6dd 077/158: Rewrite dtache-dtach-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 471a2f57c7 058/158: Update dtache-session-annotation, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e3a12a9dc8 073/158: Add connection local variable to timer, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9b7e7ffd2e 086/158: Rename session-type to session-origin, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e8bc20f563 095/158: Fix error in dtache-shell-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c40f0b2203 102/158: Make some public functions private, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9c16dd3751 109/158: Update active to state, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3cc493e6b0 115/158: Add missing dtache-log-mode to detach-dwim, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ebf9b491bd 117/158: Add variable for dtache-shell-command buffer,
ELPA Syncer <=
- [elpa] externals/dtache e9f6794621 129/158: Rename log-directory to directory, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3969524f23 125/158: Improve dtache session header, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e0a45c055c 133/158: Address error in eshell/shell extension, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 34c7d23346 088/158: Make dtache-eshell compatible with recent changes, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2354197acb 096/158: Fix error in dtache-compile, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 5da693be75 100/158: Update CHANGELOG, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 0c8241a33d 107/158: Update actions from defvar to defcustom, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 848f3a943a 108/158: Update attach naming, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 52c82428ac 110/158: Remove documentation directory, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9f948349a3 112/158: Rename dtache-detach to dtache-detach-dwim, ELPA Syncer, 2022/01/19