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

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

[elpa] externals/plz 63e4b2260c 1/2: Fix: (plz) Use with-local-quit for


From: ELPA Syncer
Subject: [elpa] externals/plz 63e4b2260c 1/2: Fix: (plz) Use with-local-quit for synchronous requests
Date: Thu, 29 Jun 2023 06:59:13 -0400 (EDT)

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

    Fix: (plz) Use with-local-quit for synchronous requests
    
    Fixes <https://github.com/alphapapa/plz.el/issues/26>.
---
 README.org |  1 +
 plz.el     |  2 +-
 plz.info   | 33 ++++++++++++++++++---------------
 3 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/README.org b/README.org
index b7e26ede2d..8c8977fa3d 100644
--- a/README.org
+++ b/README.org
@@ -187,6 +187,7 @@ You may also clear a queue with ~plz-clear~, which cancels 
any active or queued
 *Fixes*
 + Significant improvement in reliability by implementing failsafes and 
workarounds for Emacs's process-handling code.  (See 
[[https://github.com/alphapapa/plz.el/issues/3][#3]].)
 + STDERR output from curl processes is not included in response bodies (which 
sometimes happened, depending on Emacs's internal race conditions).  (Fixes 
[[https://github.com/alphapapa/plz.el/issues/23][#23]].)
++ Use ~with-local-quit~ for synchronous requests (preventing Emacs from 
complaining sometimes).  (Fixes 
[[https://github.com/alphapapa/plz.el/issues/26][#26]].)
 
 *Internal*
 + Response processing now happens outside the process sentinel, so any errors 
(e.g. in user callbacks) are not signaled from inside the sentinel.  (This 
avoids the 2-second pause Emacs imposes in such cases.)
diff --git a/plz.el b/plz.el
index a8e2732ab8..9c5e2e91ce 100644
--- a/plz.el
+++ b/plz.el
@@ -488,7 +488,7 @@ NOQUERY is passed to `make-process', which see.
     (process-send-eof process)
     (if sync-p
         (unwind-protect
-            (progn
+            (with-local-quit
               ;; See Info node `(elisp)Accepting Output'.
               (unless (and process stderr-process)
                 (error "Process unexpectedly nil"))
diff --git a/plz.info b/plz.info
index a760397f2a..057c64a43a 100644
--- a/plz.info
+++ b/plz.info
@@ -319,6 +319,9 @@ File: README.info,  Node: 07-pre,  Next: 06,  Up: Changelog
      bodies (which sometimes happened, depending on Emacs’s internal
      race conditions).  (Fixes #23
      (https://github.com/alphapapa/plz.el/issues/23).)
+   • Use ‘with-local-quit’ for synchronous requests (preventing Emacs
+     from complaining sometimes).  (Fixes #26
+     (https://github.com/alphapapa/plz.el/issues/26).)
 
    *Internal*
    • Response processing now happens outside the process sentinel, so
@@ -534,21 +537,21 @@ Node: Queueing6859
 Node: Tips8242
 Node: Changelog8543
 Node: 07-pre8812
-Node: 0610280
-Node: 05410895
-Node: 05311138
-Node: 05211454
-Node: 05111661
-Node: 0511913
-Node: 0412119
-Node: 0313025
-Node: 02113473
-Node: 0213624
-Node: 0113755
-Node: Credits13851
-Node: Development14217
-Node: Copyright assignment14731
-Node: License15319
+Node: 0610457
+Node: 05411072
+Node: 05311315
+Node: 05211631
+Node: 05111838
+Node: 0512090
+Node: 0412296
+Node: 0313202
+Node: 02113650
+Node: 0213801
+Node: 0113932
+Node: Credits14028
+Node: Development14394
+Node: Copyright assignment14908
+Node: License15496
 
 End Tag Table
 



reply via email to

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