From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Subject: Re: Variable settings in .emacs VS cross device portability. Date: Wed, 1 Feb 2012 09:45:46 +0100 Message-ID: References: <87k448y9gp.fsf@gmx.com> <87ehuf4rar.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsVph-0002fM-SV for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 03:46:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsVpb-00049R-Re for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 03:46:25 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:37963) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RsVpb-00046f-JW for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 03:46:19 -0500 Received: by lamf4 with SMTP id f4so623229lam.0 for ; Wed, 01 Feb 2012 00:46:16 -0800 (PST) In-Reply-To: <87ehuf4rar.fsf@ucl.ac.uk> 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: Eric Schulte , Yu , org-mode mailing list 2012/1/31 Eric S Fraga : > Eric Schulte writes: > > [...] > >> File Local Variables [1] make it possible to explicitly specify the >> values of variables from within the text of a .org file. =C2=A0This can = be >> placed in a single line at the top of a file for small changes or in a >> larger section at the end of the file. > > Eric, > > this doesn't always seem to work, at least not for me. =C2=A0BIND always > works but certain org variables seem to be ignored when set using local > file variables. > > The variables I refer to are often, maybe always (?), related to export > functions. =C2=A0My gut feeling is that this has something to do with a c= opy > of the file being made for the export and maybe emacs not getting a > chance to set local variables for that copy? =C2=A0Grasping at straws her= e, > mind you ;-) For #+BIND the org manual is probably not quite clear. The "Concept Index" page says: : * #+BIND: Export options. (line 19) "12.2 Export options" says: : #+BIND: lisp-var lisp-val, e.g.: org-export-latex-low-levels itemize : You need to confirm using these, or configure `org-export-allow-BIND' So basically, #+BIND only applies to export, though the manual maybe slightly underemphasizes that fact. 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