[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnus-mock 88de2e8 05/27: Maybe clean up dirs if the sta
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnus-mock 88de2e8 05/27: Maybe clean up dirs if the start process fails |
Date: |
Tue, 1 Dec 2020 10:11:36 -0500 (EST) |
branch: externals/gnus-mock
commit 88de2e8d7a80d73e47c721485182ae25eafbd036
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Maybe clean up dirs if the start process fails
* packages/gnus-mock/gnus-mock.el (gnus-mock-start): Check value of
gnus-mock-cleanup-p.
---
gnus-mock.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gnus-mock.el b/gnus-mock.el
index bbf4745..715aa27 100644
--- a/gnus-mock.el
+++ b/gnus-mock.el
@@ -197,10 +197,13 @@ gnus-directory \"%s\"
(while (re-search-forward "REPLACE_ME" (point-max) t)
(replace-match mock-tmp-dir t))
(basic-save-buffer))
- (make-process :name "gnus-mock" :buffer nil
- :command (list gnus-mock-emacs-program
- "-Q" "--load" init-file)
- :stderr "*gnus mock errors*")))
+ (condition-case nil
+ (make-process :name "gnus-mock" :buffer nil
+ :command (list gnus-mock-emacs-program
+ "-Q" "--load" init-file)
+ :stderr "*gnus mock errors*")
+ (error (when gnus-mock-cleanup-p
+ (delete-directory mock-tmp-dir t))))))
(provide 'gnus-mock)
;;; gnus-mock.el ends here
- [elpa] branch externals/gnus-mock created (now 84c6b96), Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 4d8423a 01/27: Gnus mock initial commit, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock a9208d3 02/27: Split gnus-mock-settings-file into two separate options, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 20ed31e 03/27: Create necessary empty maildir on startup, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock e533ff2 06/27: Provide support for fakesendmail script in windows, bump to 0.1.1, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 9a13623 09/27: * gnus-mock.el: Make sure the 'data' subdir is included, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 6beed29 07/27: packages/gnus-mock: Adjust copyright, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock d499861 04/27: Warn user if sendmail-program is unavailable, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 88de2e8 05/27: Maybe clean up dirs if the start process fails,
Stefan Monnier <=
- [elpa] externals/gnus-mock a21fb5d 08/27: gnus-mock/data/.gnus.el: Fix comment, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 9cf301f 10/27: [gnus-mock] Zoop the condition-case up around the whole function, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 5431bdd 13/27: [gnus-mock] Fix two small bugs, bump version to 0.2.1, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 5564ed9 15/27: [gnus-mock] Don't completely swallow errors, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock de629d1 20/27: [gnus-mock] Add Paul Eggert's misencoded Gnus message, bump to 0.4.2, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock adbd14e 24/27: [gnus-mock] Improvement to previous patch, bump to 0.4.4, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 35692d0 26/27: [gnus-mock] Add guard around setting sendmail-program, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 9196a0f 11/27: [gnus-mock] Instead of inserting strings, use princ and prin1, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock ab39a00 12/27: [gnus-mock] Conditionally add nnimap server, bump to 0.2.0, Stefan Monnier, 2020/12/01
- [elpa] externals/gnus-mock 0e8663e 14/27: [gnus-mock] Add Cyrillic group to the nnimap server, bump to 0.3.0, Stefan Monnier, 2020/12/01