From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitalie Spinu Subject: Re: Automatically adding local variables to tangled file Date: Wed, 05 Jun 2013 17:41:59 +0200 Message-ID: <87d2s0muns.fsf@gmail.com> References: <878v2omz5g.fsf@krugs.de> <51af4bfd.0c95ec0a.2372.097e@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkFqv-0007ZU-Sa for emacs-orgmode@gnu.org; Wed, 05 Jun 2013 11:42:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkFqr-0003Db-C0 for emacs-orgmode@gnu.org; Wed, 05 Jun 2013 11:42:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:48983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkFqr-0003DW-54 for emacs-orgmode@gnu.org; Wed, 05 Jun 2013 11:42:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkFqp-0006ID-H8 for emacs-orgmode@gnu.org; Wed, 05 Jun 2013 17:42:15 +0200 Received: from dhcp-077-249-018-128.chello.nl ([77.249.18.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Jun 2013 17:42:15 +0200 Received: from spinuvit by dhcp-077-249-018-128.chello.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Jun 2013 17:42:15 +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: emacs-orgmode@gnu.org >> Darlan Cavalcante Moreira >> on Wed, 05 Jun 2013 11:32:22 -0300 wrote: > It's a good idea to have useful information in the tangled file that can > help these functions. But since org-mode can already tangle with comments > containing useful information, isn't this enough to detect that the file > is a tangled file? In principle yes, but it would be nice to avoid searching the whole buffer for org comments on every step of the debugger. Especially given that OP's workflow is very specific and most users won't ever need it. Instead of local variable it might be just a simple comment at bof and a function org-babel-tangled-file-p to quickly recognize the file. Vitlaie