more robust sbe macro
authorEric Schulte <schulte.eric@gmail.com>
Sun, 14 Jul 2013 22:20:49 +0000 (16:20 -0600)
committerEric Schulte <schulte.eric@gmail.com>
Sun, 14 Jul 2013 22:20:49 +0000 (16:20 -0600)
lisp/ob-table.el

index 869d992..8b3e36d 100644 (file)
@@ -97,9 +97,11 @@ as shown in the example below.
                                (lambda (el)
                                  (if (eq '$ el)
                                      (prog1 nil (setq quote t))
-                                   (prog1 (if quote
-                                              (format "\"%s\"" el)
-                                            (org-no-properties el))
+                                   (prog1
+                                       (cond
+                                        (quote (format "\"%s\"" el))
+                                        ((stringp el) (org-no-properties el))
+                                        (t el))
                                      (setq quote nil))))
                                (cdr var)))))
             variables)))