aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-12-23 02:48:56 +0000
committerRichard M. Stallman1993-12-23 02:48:56 +0000
commit64db24613f8d8bbc1a3b976f6c84a4b67806cc37 (patch)
tree7b1248f1f03d916d4415bfaee42af6cc82eb3db7
parentfe8c32a65d9ead86ec43c8f0ca5eabbfdb735303 (diff)
downloademacs-64db24613f8d8bbc1a3b976f6c84a4b67806cc37.tar.gz
emacs-64db24613f8d8bbc1a3b976f6c84a4b67806cc37.zip
(tex-common-initialization): Make paragraph-start
and paragraph-separate match a line of $$. (tex-send-command): New local var BUF. Use it when calling buffer-modified-tick. (tex-send-command): Switch to buffer before checking for subproc output in it.
-rw-r--r--lisp/textmodes/tex-mode.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 1d2e20a223a..1f9ad2c51e3 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -463,7 +463,8 @@ Entering SliTeX mode calls the value of `text-mode-hook', then the value of
463 (modify-syntax-entry ?' "w")) 463 (modify-syntax-entry ?' "w"))
464 (set-syntax-table tex-mode-syntax-table)) 464 (set-syntax-table tex-mode-syntax-table))
465 (make-local-variable 'paragraph-start) 465 (make-local-variable 'paragraph-start)
466 (setq paragraph-start "^[ \t]*$\\|^[\f\\\\%]") 466 ;; A line containing just $$ is treated as a paragraph separator.
467 (setq paragraph-start "^[ \t]*$\\|^[\f\\\\%]\\|^[ \t]*\\$\\$[ \t]*$")
467 (make-local-variable 'paragraph-separate) 468 (make-local-variable 'paragraph-separate)
468 (setq paragraph-separate paragraph-start) 469 (setq paragraph-separate paragraph-start)
469 (make-local-variable 'comment-start) 470 (make-local-variable 'comment-start)
@@ -803,6 +804,7 @@ evaluates to a command string."
803 (save-excursion 804 (save-excursion
804 (let* ((cmd (eval command)) 805 (let* ((cmd (eval command))
805 (proc (get-process "tex-shell")) 806 (proc (get-process "tex-shell"))
807 (buf (process-buffer proc))
806 (star (string-match "\\*" cmd)) 808 (star (string-match "\\*" cmd))
807 (string 809 (string
808 (concat 810 (concat
@@ -812,15 +814,16 @@ evaluates to a command string."
812 (concat cmd " " file)) 814 (concat cmd " " file))
813 cmd) 815 cmd)
814 (if background "&" "")))) 816 (if background "&" ""))))
817 ;; Switch to buffer before checking for subproc output in it.
818 (set-buffer buf)
815 ;; If text is unchanged since previous tex-send-command, 819 ;; If text is unchanged since previous tex-send-command,
816 ;; we haven't got any output. So wait for output now. 820 ;; we haven't got any output. So wait for output now.
817 (if (= (buffer-modified-tick) tex-send-command-modified-tick) 821 (if (= (buffer-modified-tick buf) tex-send-command-modified-tick)
818 (accept-process-output proc)) 822 (accept-process-output proc))
819 (set-buffer (process-buffer proc))
820 (goto-char (process-mark proc)) 823 (goto-char (process-mark proc))
821 (insert string) 824 (insert string)
822 (comint-send-input) 825 (comint-send-input)
823 (setq tex-send-command-modified-tick (buffer-modified-tick))))) 826 (setq tex-send-command-modified-tick (buffer-modified-tick buf)))))
824 827
825(defun tex-delete-last-temp-files () 828(defun tex-delete-last-temp-files ()
826 "Delete any junk files from last temp file." 829 "Delete any junk files from last temp file."