[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 91baa9ecfa 031/158: Update dtache-message detect
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 91baa9ecfa 031/158: Update dtache-message detection |
Date: |
Wed, 19 Jan 2022 18:57:42 -0500 (EST) |
branch: externals/dtache
commit 91baa9ecfa6323eaa677986f1c62324b6936b9ce
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Update dtache-message detection
---
dtache-env | 2 +-
dtache.el | 17 +++++++----------
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/dtache-env b/dtache-env
index d03c4bbebc..27726c2540 100755
--- a/dtache-env
+++ b/dtache-env
@@ -5,5 +5,5 @@ dtache_command="$*"
if eval "$dtache_command"; then
echo -e "\nDtache session finished"
else
- echo -e "\nDtache exited abnormally with code $?"
+ echo -e "\nDtache session exited abnormally with code $?"
fi
diff --git a/dtache.el b/dtache.el
index c0fa2efdd2..2ae7b82de1 100644
--- a/dtache.el
+++ b/dtache.el
@@ -101,7 +101,6 @@
(open-function nil :read-only t)
(callback-function nil :read-only t)
(status-function nil :read-only t)
- (env nil :read-only t)
(working-directory nil :read-only t)
(creation-time nil :read-only t)
(session-directory nil :read-only t)
@@ -454,16 +453,15 @@ Sessions running on current host or localhost are
updated."
(defun dtache-session-output (session)
"Return content of SESSION's output."
(let* ((filename (dtache-session-file session 'log))
- (status (dtache--session-status session))
- (remove-dtache-message (and (dtache--session-env session)
- (not (eq status 'unknown)))))
+ (dtache-message (rx (regexp "\n.*\nDtache session ") (or "finished"
"exited"))))
(with-temp-buffer
(insert-file-contents filename)
- (goto-char (point-max))
- (when remove-dtache-message
- (line-move -3)
- (end-of-line))
- (buffer-substring (point-min) (point)))))
+ (goto-char (point-min))
+ (let ((beginning (point))
+ (end (if (search-forward-regexp dtache-message nil t)
+ (match-beginning 0)
+ (point-max))))
+ (buffer-substring beginning end)))))
(defun dtache-session-finish-notification (session)
"Send a notification when SESSION finish."
@@ -573,7 +571,6 @@ Sessions running on current host or localhost are updated."
:callback-function
dtache-session-callback-function
:status-function
dtache-session-status-function
:working-directory
(dtache-get-working-directory)
- :env dtache-env
:redirect-only (dtache-redirect-only-p
command)
:creation-time (time-to-seconds
(current-time))
:status 'unknown
- [elpa] externals/dtache 47b17c2183 001/158: Add LICENSE, (continued)
- [elpa] externals/dtache 47b17c2183 001/158: Add LICENSE, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 708f9afbf2 002/158: Add empty README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 7cbd6b3530 009/158: Merge remote branch into master, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache d0b0ed41e2 012/158: Merge develop branch into master, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache bcbc2d8b4d 003/158: Merge with development branch, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ea07041f52 013/158: Merge develop branch into master, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 522e149252 010/158: Add .dir-locals.el file, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9b9d58e6b5 011/158: Add flycheck-mode to .dir-locals, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9194f78dec 005/158: Update credits section, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 34b481d354 008/158: Add some more information to the README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 91baa9ecfa 031/158: Update dtache-message detection,
ELPA Syncer <=
- [elpa] externals/dtache eaf141725f 044/158: Add compile section to tips and tricks in README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache eb997e0b4e 023/158: Correct some spelling mistakes, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 082139f1c3 045/158: Add instructions on how to customize annotations, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache f6c9710c1b 017/158: Merge develop branch into master, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 99fd5c5b5c 025/158: Make sure to erase the output buffer, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b2eabec6c7 041/158: Improve dtache actions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 357432877c 033/158: Implement annotation/affixation function, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ecc7563302 048/158: Update LICENSE, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2958d21869 035/158: Remove marginalia from dtache, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache afb2684f38 027/158: Improve dtache-env command, ELPA Syncer, 2022/01/19