Yu <yu_...@gmx.at> 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)


Reply via email to