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

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

[nongnu] elpa/gptel 5caa292bbf: gptel-rewrite: Use correct form of `with


From: ELPA Syncer
Subject: [nongnu] elpa/gptel 5caa292bbf: gptel-rewrite: Use correct form of `with-demoted-errors' (#745)
Date: Wed, 26 Mar 2025 13:01:23 -0400 (EDT)

branch: elpa/gptel
commit 5caa292bbfd291cd4583ab9937224ee40873cf3b
Author: Henrik Ahlgren <pablo@seestieto.com>
Commit: GitHub <noreply@github.com>

    gptel-rewrite: Use correct form of `with-demoted-errors' (#745)
    
    Avoid these warnings:
    Warning: Missing format argument in ‘with-demoted-errors’
    
    * gptel-rewrite.el (gptel--rewrite-callback): Add the required FORMAT
    argument to `with-demoted-errors'.
---
 gptel-rewrite.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gptel-rewrite.el b/gptel-rewrite.el
index 29a94a8dfe..e66b15f0ce 100644
--- a/gptel-rewrite.el
+++ b/gptel-rewrite.el
@@ -419,8 +419,8 @@ INFO is the async communication channel for the rewrite 
request."
             (let ((inhibit-read-only t))
               (delete-region (point) (point-max))
               ;; Run post-rewrite-functions on rewritten text in its buffer
-              (with-demoted-errors
-                  (run-hook-with-args 'gptel-post-rewrite-functions 
(point-min) (point-max)))
+              (with-demoted-errors "gptel-post-rewrite-functions: %S"
+                (run-hook-with-args 'gptel-post-rewrite-functions (point-min) 
(point-max)))
               (when (and (plist-get info :newline)
                          (not (eq (char-before (point-max)) ?\n)))
                 (insert "\n"))



reply via email to

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