From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: feature request: reloading settings in an org file should reload file local variables Date: Tue, 14 Jan 2014 14:03:09 +0000 Message-ID: <87txd6pso2.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34aX-0003f4-Qc for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 09:03:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W34aP-0002hl-O5 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 09:03:29 -0500 Received: from va3outboundsmtppool2.messaging.microsoft.com ([157.55.133.164]:14125 helo=VA3EHSNDR001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34aP-0002hY-KW for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 09:03:21 -0500 Received: from mail52-va3 (localhost [127.0.0.1]) by mail52-va3-R.bigfish.com (Postfix) with ESMTP id 9F76A40080 for ; Tue, 14 Jan 2014 14:03:19 +0000 (UTC) Received: from VA3EHSMHS007.bigfish.com (unknown [10.7.14.225]) by mail52-va3.bigfish.com (Postfix) with ESMTP id 82BEF160047 for ; Tue, 14 Jan 2014 14:03:17 +0000 (UTC) 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 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