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

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

[nongnu] elpa/gptel 9f82021590: gptel: Strip properties when collecting


From: ELPA Syncer
Subject: [nongnu] elpa/gptel 9f82021590: gptel: Strip properties when collecting region
Date: Sat, 23 Nov 2024 04:00:07 -0500 (EST)

branch: elpa/gptel
commit 9f820215902e080e7a32115c090277068a4caaa6
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>

    gptel: Strip properties when collecting region
    
    * gptel.el (gptel--parse-media-links): Strip text-properties when
    collecting a region into the request prompt in non Markdown/Org
    buffers.  Only affects the case when media tracking is turned on.
---
 gptel.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gptel.el b/gptel.el
index 955665ecb2..afbd133170 100644
--- a/gptel.el
+++ b/gptel.el
@@ -1489,7 +1489,8 @@ Returns a plist where each entry is of the form
 or
   (:media \"media uri or file path\")."
   (ignore mode)                         ;byte-compiler
-  (list `(:text ,(buffer-substring beg end))))
+  (list `(:text ,(buffer-substring-no-properties
+                  beg end))))
 
 (defvar markdown-regex-link-inline)
 (defvar markdown-regex-angle-uri)



reply via email to

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