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

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

[nongnu] elpa/emacsql 95a00de3f1 346/427: Save match-data around call to


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 95a00de3f1 346/427: Save match-data around call to accept-process-output
Date: Tue, 13 Dec 2022 03:00:00 -0500 (EST)

branch: elpa/emacsql
commit 95a00de3f1f841e4045f664f12820ad03c8eaa3c
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Save match-data around call to accept-process-output
---
 emacsql.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/emacsql.el b/emacsql.el
index 1703756444..b56e28245b 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -156,7 +156,8 @@ MESSAGE should not have a newline on the end."
          (end (when real-timeout (+ (float-time) real-timeout))))
     (while (and (or (null real-timeout) (< (float-time) end))
                 (not (emacsql-waiting-p connection)))
-      (accept-process-output (emacsql-process connection) real-timeout))
+      (save-match-data
+        (accept-process-output (emacsql-process connection) real-timeout)))
     (unless (emacsql-waiting-p connection)
       (signal 'emacsql-timeout (list "Query timed out" real-timeout)))))
 



reply via email to

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