From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Kampas Subject: Bug: org-collector evaluates headlines starting with hyperlink as lisp code Date: Mon, 23 Apr 2018 19:54:17 +0200 Message-ID: <3793941.P5vVg0DhfO@5th> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAffV-0006NO-TQ for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 13:54:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAffS-0004Oc-1Z for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 13:54:25 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:42296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAffR-0004O9-Mm for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 13:54:21 -0400 Received: by mail-wr0-x22c.google.com with SMTP id s18-v6so43633487wrg.9 for ; Mon, 23 Apr 2018 10:54:21 -0700 (PDT) Received: from 5th.localnet (cst-prg-94-244.cust.vodafone.cz. [46.135.94.244]) by smtp.gmail.com with ESMTPSA id a10-v6sm21571400wri.10.2018.04.23.10.54.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 10:54:19 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, With headlines like * [[http://example.com]] Example org-collector writes just "http://example.com" in the table, omitting the rest of the headline. Patch below. BR, Martin >From 1228efc453d38bc090511f21fafa750e416e8b7a Mon Sep 17 00:00:00 2001 From: Martin Kampas Date: Mon, 23 Apr 2018 19:27:18 +0200 Subject: [PATCH] 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. --- contrib/lisp/org-collector.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/org-collector.el b/contrib/lisp/org-collector.el index 1d2351923..833ecbf51 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 -- 2.16.2