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

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

[elpa] scratch/org-edna 0977b83 20/72: Don't assume arguments will be sy


From: Ian Dunn
Subject: [elpa] scratch/org-edna 0977b83 20/72: Don't assume arguments will be symbols or strings
Date: Sun, 21 May 2017 21:11:21 -0400 (EDT)

branch: scratch/org-edna
commit 0977b836b52388aa3c3b593aa5bc2cc5af670c4a
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>

    Don't assume arguments will be symbols or strings
    
    * org-edna.el (org-edna-parse-form): Use `prin1-to-string' instead of
      `symbol-name'.
---
 org-edna.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-edna.el b/org-edna.el
index 485c5ae..9416aa0 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -31,7 +31,7 @@
         (pcase-let* ((`(,arg . ,new-pos) (read-from-string form pos)))
           (unless arg
             (signal 'invalid-read-syntax (substring form pos)))
-          (let ((new-arg (if (stringp arg) arg (symbol-name arg))))
+          (let ((new-arg (if (stringp arg) arg (prin1-to-string arg))))
             (push new-arg args))
           (setq pos new-pos)
           ;; Move past whitespace



reply via email to

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