branch: externals/plz
commit acba6e19a673e6d3e43a6cd3d1460fd5b9b94688
Merge: e077c706a2 f2b1ee045b
Author: Adam Porter <a...@alphapapa.net>
Commit: Adam Porter <a...@alphapapa.net>

    Merge: (plz) Inhibit buffer hooks when calling generate-new-buffer
    
    Closes #52.  Thanks to Michał Krzywkowski (@mkcms).
---
 README.org | 1 +
 plz.el     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 042dd4d094..0e6e2e0629 100644
--- a/README.org
+++ b/README.org
@@ -197,6 +197,7 @@ You may also clear a queue with ~plz-clear~, which cancels 
any active or queued
 *Fixes*
 
 + Improve workaround for Emacs's process sentinel-related issues.  (Don't try 
to process response a second time if Emacs calls the sentinel after ~plz~ has 
returned for a synchronous request.  See 
[[https://github.com/alphapapa/plz.el/issues/53][#53]].  Thanks to 
[[https://github.com/josephmturner][Joseph Turner]] for extensive help 
debugging, and to [[https://ushin.org/][USHIN]] for sponsoring some of this 
work.)
++ Inhibit buffer hooks when calling ~generate-new-buffer~ (as extra protection 
against "kill buffer?" prompts in case of errors).  (See 
[[https://github.com/alphapapa/plz.el/pull/52][#52]].  Thanks to 
[[https://github.com/mkcms][Michał Krzywkowski]].)
 
 ** 0.8
 
diff --git a/plz.el b/plz.el
index 72b8beac9e..7ff57f216d 100644
--- a/plz.el
+++ b/plz.el
@@ -467,9 +467,9 @@ into the process buffer.
           ;; 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.
           temporary-file-directory)
-         (process-buffer (generate-new-buffer " *plz-request-curl*"))
+         (process-buffer (generate-new-buffer " *plz-request-curl*" t))
          (stderr-process (make-pipe-process :name "plz-request-curl-stderr"
-                                            :buffer (generate-new-buffer " 
*plz-request-curl-stderr*")
+                                            :buffer (generate-new-buffer " 
*plz-request-curl-stderr*" t)
                                             :noquery t
                                             :sentinel #'plz--stderr-sentinel))
          (process (make-process :name "plz-request-curl"

Reply via email to