[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/detached 5fba6790f6 05/22: Update detached message on f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/detached 5fba6790f6 05/22: Update detached message on failure |
Date: |
Mon, 30 May 2022 10:57:29 -0400 (EDT) |
branch: externals/detached
commit 5fba6790f64ec154cdfda03d82221cebe3b285c6
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Update detached message on failure
---
detached.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/detached.el b/detached.el
index fb9810b797..627db339b4 100644
--- a/detached.el
+++ b/detached.el
@@ -1159,7 +1159,7 @@ Optionally make the path LOCAL to host."
(defun detached--detached-command (session)
"Return the detached command for SESSION.
-If SESSION is nonattachable fallback to a command that doesn't rely on tee."
+If SESSION is non-attachable fallback to a command that doesn't rely on tee."
(let* ((log (detached--session-file session 'log t))
(begin-shell-group (if (string= "fish" (file-name-nondirectory
detached-shell-program))
"begin;"
@@ -1171,14 +1171,11 @@ If SESSION is nonattachable fallback to a command that
doesn't rely on tee."
(if (detached--session-attachable session)
(format "2>&1 | tee %s" log)
(format "&> %s" log)))
- ;; With detached-env
- (env (if detached-env detached-env (format "%s -c"
detached-shell-program)))
- ;; Without detached-env
(env (format "%s -c" detached-shell-program))
(command
(if (eq 'terminal-data (detached--session-env-mode session))
(shell-quote-argument
- (format "if %s; then echo Success; else echo \"Fail $?\"; fi"
+ (format "if %s; then true; else echo \"[detached-exit-code:
$?]\"; fi"
(format "TERM=eterm-color script --quiet --flush
--return --command \"%s\" /dev/null"
(detached--session-command session))))
(shell-quote-argument (detached--session-command session)))))
- [elpa] externals/detached bae90a13dd 22/22: Remove unnecessary with-connection-local-variables, (continued)
- [elpa] externals/detached bae90a13dd 22/22: Remove unnecessary with-connection-local-variables, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 10cf120383 19/22: Bug fix: Address bugs in detached--db-directory-event, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 3feae45d28 04/22: Add success check in detached.el, ELPA Syncer, 2022/05/30
- [elpa] externals/detached cfe69e4978 09/22: Add detached-terminal-data-command, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 636c273039 11/22: Update README, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 0224d2961a 13/22: Update message-filter function, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 33d31b1619 17/22: Add command to open session log file in dired, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 6ea2bb38c6 18/22: Update CHANGELOG, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 950b1533ab 21/22: Update name of database file, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 8cbfca00bd 20/22: Improve support for multiple Emacs sessions, ELPA Syncer, 2022/05/30
- [elpa] externals/detached 5fba6790f6 05/22: Update detached message on failure,
ELPA Syncer <=
- [elpa] externals/detached 006a715e11 12/22: Update CHANGELOG, ELPA Syncer, 2022/05/30