diff options
| author | Richard M. Stallman | 1995-01-27 23:08:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-27 23:08:49 +0000 |
| commit | 51b2c84172d26827e22bcd13bf252238683cb3ce (patch) | |
| tree | 892e78cc15fc8a036eae385112dd69d48e3e154a | |
| parent | c8c76dd33f7102dd59060e980cf2043f38796354 (diff) | |
| download | emacs-51b2c84172d26827e22bcd13bf252238683cb3ce.tar.gz emacs-51b2c84172d26827e22bcd13bf252238683cb3ce.zip | |
(tex-display-shell): Pass nil as arg to
tex-recenter-output-buffer.
(tex-region, tex-file, tex-show-print-queue, tex-bibtex-file):
Put the call to tex-display-shell essentially last.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 3063d141bda..66c8485dd3e 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -832,7 +832,12 @@ line numbers for the errors." | |||
| 832 | (use-local-map tex-shell-map) | 832 | (use-local-map tex-shell-map) |
| 833 | (run-hooks 'tex-shell-hook) | 833 | (run-hooks 'tex-shell-hook) |
| 834 | (while (zerop (buffer-size)) | 834 | (while (zerop (buffer-size)) |
| 835 | (sleep-for 1))))) | 835 | (sleep-for 1))))) |
| 836 | |||
| 837 | (defun tex-display-shell () | ||
| 838 | "Make the TeX shell buffer visible in a window." | ||
| 839 | (display-buffer (process-buffer (get-process "tex-shell"))) | ||
| 840 | (tex-recenter-output-buffer nil)) | ||
| 836 | 841 | ||
| 837 | (defun tex-shell-sentinel (proc msg) | 842 | (defun tex-shell-sentinel (proc msg) |
| 838 | (cond ((null (buffer-name (process-buffer proc))) | 843 | (cond ((null (buffer-name (process-buffer proc))) |
| @@ -922,7 +927,6 @@ The value of `tex-command' specifies the command to use to run TeX." | |||
| 922 | (if (tex-shell-running) | 927 | (if (tex-shell-running) |
| 923 | (tex-kill-job) | 928 | (tex-kill-job) |
| 924 | (tex-start-shell)) | 929 | (tex-start-shell)) |
| 925 | (display-buffer (process-buffer (get-process "tex-shell"))) | ||
| 926 | (or tex-zap-file | 930 | (or tex-zap-file |
| 927 | (setq tex-zap-file (tex-generate-zap-file-name))) | 931 | (setq tex-zap-file (tex-generate-zap-file-name))) |
| 928 | (let* ((temp-buffer (get-buffer-create " TeX-Output-Buffer")) | 932 | (let* ((temp-buffer (get-buffer-create " TeX-Output-Buffer")) |
| @@ -972,6 +976,7 @@ The value of `tex-command' specifies the command to use to run TeX." | |||
| 972 | (setq tex-last-temp-file tex-out-file) | 976 | (setq tex-last-temp-file tex-out-file) |
| 973 | (tex-send-command tex-shell-cd-command zap-directory) | 977 | (tex-send-command tex-shell-cd-command zap-directory) |
| 974 | (tex-send-command tex-command tex-out-file) | 978 | (tex-send-command tex-command tex-out-file) |
| 979 | (tex-display-shell) | ||
| 975 | (setq tex-print-file tex-out-file) | 980 | (setq tex-print-file tex-out-file) |
| 976 | (setq tex-last-buffer-texed (current-buffer)))) | 981 | (setq tex-last-buffer-texed (current-buffer)))) |
| 977 | 982 | ||
| @@ -997,9 +1002,9 @@ This function is more useful than \\[tex-buffer] when you need the | |||
| 997 | (if (tex-shell-running) | 1002 | (if (tex-shell-running) |
| 998 | (tex-kill-job) | 1003 | (tex-kill-job) |
| 999 | (tex-start-shell)) | 1004 | (tex-start-shell)) |
| 1000 | (display-buffer (process-buffer (get-process "tex-shell"))) | ||
| 1001 | (tex-send-command tex-shell-cd-command file-dir) | 1005 | (tex-send-command tex-shell-cd-command file-dir) |
| 1002 | (tex-send-command tex-command tex-out-file)) | 1006 | (tex-send-command tex-command tex-out-file)) |
| 1007 | (tex-display-shell) | ||
| 1003 | (setq tex-last-buffer-texed (current-buffer)) | 1008 | (setq tex-last-buffer-texed (current-buffer)) |
| 1004 | (setq tex-print-file (buffer-file-name))) | 1009 | (setq tex-print-file (buffer-file-name))) |
| 1005 | 1010 | ||
| @@ -1119,8 +1124,8 @@ Runs the shell command defined by `tex-show-queue-command'." | |||
| 1119 | (if (tex-shell-running) | 1124 | (if (tex-shell-running) |
| 1120 | (tex-kill-job) | 1125 | (tex-kill-job) |
| 1121 | (tex-start-shell)) | 1126 | (tex-start-shell)) |
| 1122 | (display-buffer (process-buffer (get-process "tex-shell"))) | 1127 | (tex-send-command tex-show-queue-command) |
| 1123 | (tex-send-command tex-show-queue-command)) | 1128 | (tex-display-shell)) |
| 1124 | 1129 | ||
| 1125 | (defun tex-bibtex-file () | 1130 | (defun tex-bibtex-file () |
| 1126 | "Run BibTeX on the current buffer's file." | 1131 | "Run BibTeX on the current buffer's file." |
| @@ -1128,12 +1133,12 @@ Runs the shell command defined by `tex-show-queue-command'." | |||
| 1128 | (if (tex-shell-running) | 1133 | (if (tex-shell-running) |
| 1129 | (tex-kill-job) | 1134 | (tex-kill-job) |
| 1130 | (tex-start-shell)) | 1135 | (tex-start-shell)) |
| 1131 | (display-buffer (process-buffer (get-process "tex-shell"))) | ||
| 1132 | (let ((tex-out-file | 1136 | (let ((tex-out-file |
| 1133 | (tex-append (file-name-nondirectory (buffer-file-name)) "")) | 1137 | (tex-append (file-name-nondirectory (buffer-file-name)) "")) |
| 1134 | (file-dir (file-name-directory (buffer-file-name)))) | 1138 | (file-dir (file-name-directory (buffer-file-name)))) |
| 1135 | (tex-send-command tex-shell-cd-command file-dir) | 1139 | (tex-send-command tex-shell-cd-command file-dir) |
| 1136 | (tex-send-command tex-bibtex-command tex-out-file))) | 1140 | (tex-send-command tex-bibtex-command tex-out-file)) |
| 1141 | (tex-display-shell)) | ||
| 1137 | 1142 | ||
| 1138 | (run-hooks 'tex-mode-load-hook) | 1143 | (run-hooks 'tex-mode-load-hook) |
| 1139 | 1144 | ||