emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa c032063 19/51: Auto save `TeX-command-extra-options'.


From: Tassilo Horn
Subject: [elpa] elpa c032063 19/51: Auto save `TeX-command-extra-options'.
Date: Sun, 22 May 2016 07:22:48 +0000 (UTC)

branch: elpa
commit c0320634797e460dd778f6f29ecd46f0bd9a0b6e
Author: Matthew Leach <address@hidden>
Commit: Matthew Leach <address@hidden>

    Auto save `TeX-command-extra-options'.
    
    * tex.el (TeX-auto-store): Save the value of `TeX-command-extra-options'
      so it is set project-wide.
---
 tex.el |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tex.el b/tex.el
index fb734f4..026824d 100644
--- a/tex.el
+++ b/tex.el
@@ -3953,6 +3953,7 @@ If TEX is a directory, generate style files for all files 
in the directory."
                            LaTeX-provided-class-options))
            (pkg-opts (if (boundp 'LaTeX-provided-package-options)
                          LaTeX-provided-package-options))
+           (tex-cmd-opts TeX-command-extra-options)
            (verb-envs (when (boundp 'LaTeX-verbatim-environments-local)
                         LaTeX-verbatim-environments-local))
            (verb-macros-delims (when (boundp 
'LaTeX-verbatim-macros-with-delims-local)
@@ -3965,6 +3966,9 @@ If TEX is a directory, generate style files for all files 
in the directory."
          (erase-buffer)
          (insert "(TeX-add-style-hook\n \""
                  style "\"\n (lambda ()")
+         (unless (string= tex-cmd-opts "")
+           (insert "\n   (setq TeX-command-extra-options\n"
+                   "         " (prin1-to-string tex-cmd-opts) ")"))
          (when class-opts
            (insert "\n   (TeX-add-to-alist 'LaTeX-provided-class-options\n"
                    "                     '" (prin1-to-string class-opts) ")"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]