summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kampas <martin.kampas@ubedi.net>2018-04-23 19:27:18 +0200
committerBastien <bzg@gnu.org>2018-04-26 14:07:58 +0200
commitfd4ade40ed3ce135495796401296d318f2475352 (patch)
treeb51061e1e8fd2f3b354a79e4799cb97ad9a4bd91
parent4323db60c5786d708f7dac69a257c0340b372500 (diff)
downloadorg-mode-fd4ade40ed3ce135495796401296d318f2475352.tar.gz
org-collector.el: Inhibit lisp evaluation of headlines
* contrib/lisp/org-collector.el (org-propview-collect): Inhibit lisp evaluation of headlines This fixes org-collector usage for items starting with a hyperlink, which would be incorrectly treated as lisp code.
-rw-r--r--contrib/lisp/org-collector.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/lisp/org-collector.el b/contrib/lisp/org-collector.el
index 1d23519..833ecbf 100644
--- a/contrib/lisp/org-collector.el
+++ b/contrib/lisp/org-collector.el
@@ -186,7 +186,8 @@ variables and values specified in props"
(header-props
(mapcar (lambda (props)
(mapcar (lambda (pair)
- (cons (car pair) (org-babel-read (cdr pair))))
+ (let ((inhibit-lisp-eval (string= (car pair) "ITEM")))
+ (cons (car pair) (org-babel-read (cdr pair) inhibit-lisp-eval))))
props))
header-props))
;; collect all property names