Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting options via buffer local variables do not update the visible settings #81

Open
EmmanuelCharpentier opened this issue Jul 7, 2018 · 1 comment

Comments

@EmmanuelCharpentier
Copy link

Thanks to this solved issue, I have been able to add some settings to a .md file :

<!-- Local Variables: -->
<!-- mode: markdown -->
<!-- markdown-command: "pandoc" -->
<!-- pandoc/read: "markdown" -->
<!-- pandoc/write: "latex" -->
<!-- pandoc/output: t -->
<!-- pandoc/standalone: t -->
<!-- eval: (pandoc-mode) -->
<!-- eval: (flyspell-mode) -->
<!-- End: -->

This works (i. e. I get a standalone .tex file, I can use pandoc-specific extensions, etc...). However, when I use the menu option 'Pandoc/View Current Settings`, I get this :

((read . "markdown")
 (write . "latex"))

The settings for output, standalone and so on, which are verifiably non-default, aren't updated in this display.

This discrepancy between what is done and what is shown is a boo-boo, but this inconsistency is ugly... Worth fixing ?

@joostkremers
Copy link
Owner

Commit f1fa01d displays the file-local settings of options whose names start with pandoc/ when you view the current settings. This display should be improved a bit, because it's currently not clear what settings are actually in effect if an option is set through the menu (or from a settings file) and also as a file-local variable. (The latter takes precedence, but both values are shown.) But at least the file-local settings aren't ignored anymore.

If you run into any trouble, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants