branch: externals/plz
commit 93a2ccaaa8604433d0c75ea4d9adc1de834cbdc6
Author: Adam Porter <a...@alphapapa.net>
Commit: Adam Porter <a...@alphapapa.net>

    Fix: Run curl in temporary-file-directory
    
    Fixes https://github.com/alphapapa/ement.el/issues/19.  Thanks to
    @akater for reporting.
---
 plz.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/plz.el b/plz.el
index 3775863c14..348f2f8b36 100644
--- a/plz.el
+++ b/plz.el
@@ -362,7 +362,11 @@ NOQUERY is passed to `make-process', which see."
                    ('binary nil)
                    (_ decode))))
     (with-current-buffer (generate-new-buffer " *plz-request-curl*")
-      (let ((process (make-process :name "plz-request-curl"
+      ;; Avoid making process in a nonexistent directory (in case the current
+      ;; default-directory has since been removed).  It's unclear what the best
+      ;; directory is, but this seems to make sense, and it should still exist.
+      (let ((default-directory temporary-file-directory)
+            (process (make-process :name "plz-request-curl"
                                    :buffer (current-buffer)
                                    :coding 'binary
                                    :command (append (list plz-curl-program) 
curl-args)

Reply via email to