emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/plz 2c19b7f11d 11/81: Changes


From: ELPA Syncer
Subject: [elpa] externals/plz 2c19b7f11d 11/81: Changes
Date: Wed, 11 May 2022 17:57:58 -0400 (EDT)

branch: externals/plz
commit 2c19b7f11d91c43e056f66050101b9218da7c9bf
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Changes
---
 plz.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plz.el b/plz.el
index 855df410ac..1af1de35de 100644
--- a/plz.el
+++ b/plz.el
@@ -223,7 +223,7 @@ argument: the `plz-response' object."
 SUCCESS and ERROR should be callback functions, called when the
 curl process finishes with a single argument: the `plz-response'
 object.  Uses `make-process' to call curl asynchronously."
-  (with-current-buffer (generate-new-buffer "*plz-request-curl*")
+  (with-current-buffer (generate-new-buffer " *plz-request-curl*")
     (let ((process (make-process :name "plz-request-curl"
                                  :buffer (current-buffer)
                                  :command (append (list plz-curl-program) 
curl-args)
@@ -237,7 +237,7 @@ object.  Uses `make-process' to call curl asynchronously."
 (cl-defun plz-request--sync (curl-args &key success error)
   "Return HTTP response object for curl called with CURL-ARGS.
 Uses `call-process' to call curl synchronously."
-  (with-current-buffer (generate-new-buffer "*plz-request-curl*")
+  (with-current-buffer (generate-new-buffer " *plz-request-curl*")
     (let ((status (apply #'call-process plz-curl-program nil t nil
                          curl-args))
           (plz-success #'identity))
@@ -246,8 +246,8 @@ Uses `call-process' to call curl synchronously."
 (defun plz--sentinel (process-or-buffer status)
   "Process buffer of curl output in PROCESS-OR-BUFFER.
 If PROCESS-OR-BUFFER if a process, uses its buffer; if a buffer,
-uses it.  STATUS should be the process's event
-string (see info node `(elisp) Sentinels')."
+uses it.  STATUS should be the process's event string (see info
+node `(elisp) Sentinels').  Kills the buffer before returning."
   ;; Inspired by and some code copied from `elfeed-curl--sentinel'.
   (let ((buffer (cl-etypecase process-or-buffer
                   (process (process-buffer process-or-buffer))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]