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

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

[elpa] externals/dape b0987d0c25: Fix leaking dash replacement props on


From: ELPA Syncer
Subject: [elpa] externals/dape b0987d0c25: Fix leaking dash replacement props on unbalanced options list
Date: Sun, 1 Dec 2024 18:57:39 -0500 (EST)

branch: externals/dape
commit b0987d0c25ef07082a3bb904299487347565e87f
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>

    Fix leaking dash replacement props on unbalanced options list
---
 dape.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dape.el b/dape.el
index 0b10fc26ba..2c18be5478 100644
--- a/dape.el
+++ b/dape.el
@@ -5045,6 +5045,8 @@ Where ALIST-KEY exists in `dape-configs'."
           (let ((thing (read (current-buffer))))
             (cond
              ((eq thing '-)
+              (unless (dape--plistp read-config)
+                (user-error "Expecting complete options list before `-'"))
               (cl-loop
                with command = (split-string-shell-command
                                (buffer-substring (point) (point-max)))
@@ -5065,7 +5067,7 @@ Where ALIST-KEY exists in `dape-configs'."
                and return (goto-char (point-max))))
              (t
               (push thing read-config))))))
-      ;; Try to save half baked plist (value missing)
+      ;; Balance half baked options list
       (when (not (dape--plistp read-config))
         (pop read-config))
       (unless (dape--plistp read-config)



reply via email to

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