*** tex-mode.el.orig 2005-03-29 22:17:07.000000000 +0200 --- tex-mode.el 2005-03-29 22:23:30.000000000 +0200 *************** *** 781,787 **** (setq tex-command latex-run-command) (setq tex-start-of-header "\\\\document\\(style\\|class\\)") (setq tex-end-of-header "\\\\begin\\s-*{document}") ! (setq tex-trailer "\\end\\s-*{document}\n") ;; A line containing just $$ is treated as a paragraph separator. ;; A line starting with $$ starts a paragraph, ;; but does not separate paragraphs if it has more stuff on it. --- 781,787 ---- (setq tex-command latex-run-command) (setq tex-start-of-header "\\\\document\\(style\\|class\\)") (setq tex-end-of-header "\\\\begin\\s-*{document}") ! (setq tex-trailer "\\end{document}\n") ;; A line containing just $$ is treated as a paragraph separator. ;; A line starting with $$ starts a paragraph, ;; but does not separate paragraphs if it has more stuff on it. *************** *** 1352,1359 **** (concat (if file (if star (concat (substring cmd 0 star) ! file (substring cmd (1+ star))) ! (concat cmd " " file)) cmd) (if background "&" "")))) ;; Switch to buffer before checking for subproc output in it. --- 1352,1359 ---- (concat (if file (if star (concat (substring cmd 0 star) ! (shell-quote-argument file) (substring cmd (1+ star))) ! (concat cmd " " (shell-quote-argument file))) cmd) (if background "&" "")))) ;; Switch to buffer before checking for subproc output in it. *************** *** 1444,1456 **** (compile-command (if star (concat (substring command 0 star) ! (comint-quote-filename file) (substring command (1+ star))) (concat command " " (if (< 0 (length tex-start-options-string)) (concat (shell-quote-argument tex-start-options-string) " ")) ! (comint-quote-filename file))))) (tex-send-tex-command compile-command dir))) (defun tex-send-tex-command (cmd &optional dir) --- 1444,1456 ---- (compile-command (if star (concat (substring command 0 star) ! (shell-quote-argument file) (substring command (1+ star))) (concat command " " (if (< 0 (length tex-start-options-string)) (concat (shell-quote-argument tex-start-options-string) " ")) ! (shell-quote-argument file))))) (tex-send-tex-command compile-command dir))) (defun tex-send-tex-command (cmd &optional dir)