[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre c6d0201342 09/10: Capture calibredb output
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre c6d0201342 09/10: Capture calibredb output |
|
Date: |
Thu, 18 May 2023 12:57:32 -0400 (EDT) |
branch: externals/calibre
commit c6d02013423dec09c97235503f3c17416865ff73
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Capture calibredb output
* calibre-exec.el (calibre-exec--process-sentinel): Kill the process
buffer if execution was successful. This ensures that only the output
of the failed command is present in the output buffer.
(calibre-exec--execute): Call make-process with a :buffer argument.
---
calibre-exec.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/calibre-exec.el b/calibre-exec.el
index 1c229ab4f6..c51ac1553b 100644
--- a/calibre-exec.el
+++ b/calibre-exec.el
@@ -31,7 +31,9 @@
EVENT is the process event, see Info node
`(elisp)Sentinels'"
(if (string= event "finished\n")
- (calibre-library--refresh t)
+ (progn
+ (kill-buffer "*calibre*")
+ (calibre-library--refresh t))
(error "Calibre process failed %S" event))
(if calibre-exec--commands
(calibre-exec--next-command)
@@ -46,6 +48,7 @@ calibredb. SENTINEL is a process sentinel to install."
(make-process
:name "calibre"
:command `(,calibre-calibredb-executable "--with-library"
,(calibre--library) ,@args)
+ :buffer (get-buffer-create "*calibre*")
:sentinel sentinel)))
(defun calibre-exec--next-command ()
- [elpa] externals/calibre updated (e283a2c928 -> ba5fa17e31), ELPA Syncer, 2023/05/18
- [elpa] externals/calibre f0324a9d21 06/10: Move calibre-parse-timestamp to calibre-db, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre b237fd2e5e 05/10: Allow searching by title, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 512b5a1197 02/10: Add mode line indicator when updating library, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre c07fa7d0f3 04/10: Require exact matching in calibre-cli search, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre cc66ec42bf 08/10: Remove seemingly unnecessary require, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre c6d0201342 09/10: Capture calibredb output,
ELPA Syncer <=
- [elpa] externals/calibre 47ae488aed 07/10: Drop EIEIO in favor of custom editing solution, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre ba5fa17e31 10/10: Update copyright headers, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 524ce0353e 01/10: Fix docstring, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre f096edd1d3 03/10: Return list instead of list of lists, ELPA Syncer, 2023/05/18