From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Variable settings in .emacs VS cross device portability. Date: Wed, 1 Feb 2012 15:02:36 +0000 Message-ID: <87liomtx4j.fsf@ucl.ac.uk> References: <87k448y9gp.fsf@gmx.com> <87ehuf4rar.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RscB7-0006Qf-QK for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 10:33:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RscB2-0001iw-3V for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 10:32:57 -0500 Received: from am1ehsobe004.messaging.microsoft.com ([213.199.154.207]:14383 helo=AM1EHSOBE001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RscB1-0001iI-SW for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 10:32:52 -0500 In-Reply-To: (Yu's message of "Wed, 1 Feb 2012 09:45:46 +0100") 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: Yu Cc: org-mode mailing list , Eric Schulte Yu writes: [...] > Did you try the general emacs syntax for file variables, Eric Schulte > mentioned? [1] For me that worked (except that non-safe variables > require confirmation in order to avoid text files executing harmful > code). The emacs-documentation doesn't mention it, but apparently this > works also in shebang'ed files, by moving the single line form (`-*- > ... -*-') to the second line. [2] > > [1] http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html > [2] http://www.lugaru.com/man/File.Variables.html Yu, Thanks for this. I use file local variables all the time, both with and without org, and have done so for years! I also use BIND successfully. My point was that org seems to ignore some variables that have been set using file local variables and I think it's only those that affect the export behaviour that are ignored. Hence my gut feeling regarding whether exporting doesn't actually set file local variables due to the export working on a copy of the buffer. But I am not entirely sure what the interaction between the export process and Emacs may be in this case. Maybe others have a better intuition. I'll try to come up with a minimal example that illustrates the problem. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1 : using Org-mode version 7.8.03 (release_7.8.03.285.g646b3)