Does anybody see a problem with the following patch allowing people
who use a recent texexec binary not supporting the --passon switch to
change the command line option for switching to nonstopmode?

I don't really like to use a full-fledged defcustom for the variable
because sooner or later such options should be handled differently
anyway and because the --passon switch might be reintroduced.

With the patch applied the --passon switch might occur twice on the
command line which the texexec version I have here (5.2.4) seems to
support.


--- context.el  16 Sep 2006 20:24:32 +0200      1.58
+++ context.el  25 Nov 2006 20:56:38 +0100      
@@ -1445,6 +1445,10 @@
 
 ;;; Option expander
 
+(defvar ConTeXt-texexec-option-nonstop
+  "--passon=\"-interaction=nonstopmode\" "
+  "Command line option for texexec to use nonstopmode.")
+
 (defun ConTeXt-expand-options ()
   "Expand options for texexec command."
   (concat
@@ -1456,15 +1460,10 @@
          (format "--tex=%s " ConTeXt-engine)))
    (unless (eq ConTeXt-current-interface "en")
      (format "--interface=%s " ConTeXt-current-interface))
-   (if TeX-source-specials-mode
-       (format
-       "--passon=\"%s\" "
-       (concat
-        TeX-source-specials-tex-flags
-        (unless TeX-interactive-mode
-          " -interaction=nonstopmode")))
-     (unless TeX-interactive-mode
-       "--passon=\"-interaction=nonstopmode\" "))))
+   (when TeX-source-specials-mode
+     (format "--passon=\"%s\" " TeX-source-specials-tex-flags))
+   (unless TeX-interactive-mode
+     ConTeXt-texexec-option-nonstop)))
 
 ;;; Mode
 

-- 
Ralf



_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to