emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: feature request: reloading settings in an org file should reload file local variables
Date: Tue, 14 Jan 2014 14:03:09 +0000	[thread overview]
Message-ID: <87txd6pso2.fsf@pinto.chemeng.ucl.ac.uk> (raw)

Hello,

I constantly run into an annoying side effect of org's handling of
settings in a document.  When writing a document for export, usually to
LaTeX, I find myself playing around with the document wide
setting variables, e.g. 

   #+options: toc:nil
   #+latex_header: \usepackage{tikz}

and similar.  Org requires me to re-load the document settings by
hitting C-c C-c on any such document setting line.  This is fine.

The problem is that org appears to reset *all* variables to default
(custom?)  settings.  This includes variables that have been set using
file local variables in the given document.  Of particular note is the
variable ~org-export-allow-bind-keywords~.  I normally have this set to
nil for safety reasons but wish to set this to t in some documents.  I
use something like this quite often on documents I *know* are safe:

,----
| # Local Variables:
| # org-confirm-babel-evaluate: nil
| # org-export-allow-bind-keywords: t
| # End:
`----

The problem is that hitting C-c C-c on a settings line clears these
variables.  Having the bind one reset is particularly confusing at
times.  In the end, I have to kill the buffer and re-visit the file to
have things set up properly.

Is it possible to have org reload the whole file when reloading
settings?  Or not reset any variables at all?  Either approach would be
exhibit more consistent behaviour possibly?  Obviously, the position in
the file would have to be remembered should the file be reloaded
automatically.

This is not a major issue but a niggly one...

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5c-451-gf75f3d

             reply	other threads:[~2014-01-14 14:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 14:03 Eric S Fraga [this message]
2014-01-14 14:49 ` feature request: reloading settings in an org file should reload file local variables Carsten Dominik
2014-01-14 15:33   ` Nick Dokos
2014-01-14 19:49     ` Carsten Dominik
2014-01-14 16:12   ` Bastien
2014-01-14 19:57   ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txd6pso2.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).