From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Tangling takes long - profiling and calling R Date: Tue, 16 Jun 2015 15:04:49 +0200 Message-ID: <87si9rajny.fsf@selenimh.access.network> References: <87ioaobvl1.fsf@selenimh.access.network> <87a8vzc1u8.fsf@selenimh.access.network> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qWm-0006Yk-Ur for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 09:03:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4qWi-0005VK-Da for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 09:03:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:60227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qWi-0005Uj-6h for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 09:03:40 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z4qWe-0003r5-7S for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 15:03:36 +0200 In-Reply-To: (Sebastien Vauban's message of "Tue, 16 Jun 2015 14:45:48 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, Sebastien Vauban writes: > To be clear, are we talking of constructs such as: > > ** Subtree > :PROPERTIES: > :tangle: no > :END: > > ? Yes, we are. > Your suggestion with Org-lint, or even writing a function that would > convert from the old to the new syntax, makes a shorter period > acceptable IMO. What about the following check, which could be integrated in Org Lint: (defun check-deprecated-babel-properties () (interactive) (let ((deprecated-babel-properties (mapcar (lambda (arg) (symbol-name (car arg))) org-babel-common-header-args-w-values))) (org-element-map (org-element-parse-buffer 'element) 'node-property (lambda (p) (let ((key (org-element-property :key p))) (when (member-ignore-case key deprecated-babel-properties) (error "Deprecated Babel property \"%s\" at line %d. Use :header-args: instead" key (save-excursion (goto-char (org-element-property :begin p)) (org-current-line))))))))) Regards, -- Nicolas Goaziou