On Fri, May 13, 2016 at 12:25 PM Nicolas Goaziou <address@hidden
For completeness, export process actually inherits some buffer local
values. See `org-export--generate-copy-script', in particular
;; Copy specific buffer local variables and variables set
;; through BIND keywords.
,@(let ((bound-variables (org-export--list-bound-variables))
(dolist (entry (buffer-local-variables (buffer-base-buffer)) vars)
(when (consp entry)
(let ((var (car entry))
(val (cdr entry)))
(and (not (memq var org-export-ignored-local-variables))
(or (memq var
(assq var bound-variables)
;; Skip unreadable values, as they cannot be
;; sent to external process.
(or (not val) (ignore-errors (read (format "%S" val))))
(push `(set (make-local-variable (quote ,var))
So basically, it copies all Org related variables, default directory,
buffer-file-name buffer-file-coding-system and any variable defined as
a BIND keyword, provided their value is `read'-able (e.g., not a hash
Thanks for that info guys!
It got it working after setting org-export-allow-bind-keywords to t BUT now I need to set the buffer local value twice: (1) Using the Local Variables footer style so that that local value is effective when before-save-hook is run (2) Using #+BIND so that that value is effective when org-export-before-processing-hook is run.
Below is the MWE now:
| N |
#+BIND: modi/org-table-enable-buffer-wide-recalculation nil
# Local Variables:
# modi/org-table-enable-buffer-wide-recalculation: nil