~bzg/dev

1

[PATCH org-contrib] lisp/org-collector.el (org-propview-collect): Proper read of org inactive ts in props

Details
Message ID
<66b5bbc8-cc5e-4b35-ac6c-06b28be77c3f@cas.cat>
DKIM signature
pass
Download raw message
Inhibit lisp evaluation when properties with inactive timestamps value
are processed using lisp functions in the :cols argument
---
  lisp/org-collector.el | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-collector.el b/lisp/org-collector.el
index ce3a937..8c3e6ef 100644
--- a/lisp/org-collector.el
+++ b/lisp/org-collector.el
@@ -187,7 +187,8 @@ variables and values specified in props"
       (header-props
        (mapcar (lambda (props)
              (mapcar (lambda (pair)
-                  (let ((inhibit-lisp-eval (string= (car pair) "ITEM")))
+                  (let ((inhibit-lisp-eval (or (string= (car pair) "ITEM")
+                                               (string-match-p 
org-ts-regexp-inactive (cdr pair)))))
                  (cons (car pair) (org-babel-read (cdr pair) 
inhibit-lisp-eval))))
                  props))
            header-props)))
-- 
2.39.2
Details
Message ID
<87frycqcp4.fsf@bzg.fr>
In-Reply-To
<66b5bbc8-cc5e-4b35-ac6c-06b28be77c3f@cas.cat> (view parent)
DKIM signature
pass
Download raw message
Hi Pedro,

Pedro <pedro@cas.cat> writes:

> Inhibit lisp evaluation when properties with inactive timestamps value
> are processed using lisp functions in the :cols argument

Applied, thanks!

-- 
 Bastien Guerry
Reply to thread Export thread (mbox)