diff options
| author | Richard M. Stallman | 1998-11-25 01:07:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-11-25 01:07:19 +0000 |
| commit | 033306e36b44c10b4ff6fc270f77655239f78866 (patch) | |
| tree | 41205ae8a2b11e95d490696e6ef9706f4359158f | |
| parent | 9ebc22d43e28f579c9ee32e92a9f00ff742f215c (diff) | |
| download | emacs-033306e36b44c10b4ff6fc270f77655239f78866.tar.gz emacs-033306e36b44c10b4ff6fc270f77655239f78866.zip | |
(tex-feed-input): New function.
(tex-define-common-keys): Add binding for C-c C-m.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 41ff4204de4..92ddade1985 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -337,6 +337,7 @@ subsubsection\\|paragraph\\|subparagraph\\)\\*?[ \t]*{" nil t) | |||
| 337 | "Define the keys that we want defined both in TeX mode and in the TeX shell." | 337 | "Define the keys that we want defined both in TeX mode and in the TeX shell." |
| 338 | (define-key keymap "\C-c\C-k" 'tex-kill-job) | 338 | (define-key keymap "\C-c\C-k" 'tex-kill-job) |
| 339 | (define-key keymap "\C-c\C-l" 'tex-recenter-output-buffer) | 339 | (define-key keymap "\C-c\C-l" 'tex-recenter-output-buffer) |
| 340 | (define-key keymap "\C-c\C-m" 'tex-feed-input) | ||
| 340 | (define-key keymap "\C-c\C-q" 'tex-show-print-queue) | 341 | (define-key keymap "\C-c\C-q" 'tex-show-print-queue) |
| 341 | (define-key keymap "\C-c\C-p" 'tex-print) | 342 | (define-key keymap "\C-c\C-p" 'tex-print) |
| 342 | (define-key keymap "\C-c\C-v" 'tex-view) | 343 | (define-key keymap "\C-c\C-v" 'tex-view) |
| @@ -990,6 +991,15 @@ Mark is left at original location." | |||
| 990 | (while (zerop (buffer-size)) | 991 | (while (zerop (buffer-size)) |
| 991 | (sleep-for 1))))) | 992 | (sleep-for 1))))) |
| 992 | 993 | ||
| 994 | (defun tex-feed-input () | ||
| 995 | "Send input to the tex shell process. | ||
| 996 | In the tex buffer this can be used to continue an interactive tex run. | ||
| 997 | In the tex shell buffer this command behaves like `comint-send-input'." | ||
| 998 | (interactive) | ||
| 999 | (set-buffer (process-buffer (get-process "tex-shell"))) | ||
| 1000 | (comint-send-input) | ||
| 1001 | (tex-recenter-output-buffer nil)) | ||
| 1002 | |||
| 993 | (defun tex-display-shell () | 1003 | (defun tex-display-shell () |
| 994 | "Make the TeX shell buffer visible in a window." | 1004 | "Make the TeX shell buffer visible in a window." |
| 995 | (display-buffer (process-buffer (get-process "tex-shell"))) | 1005 | (display-buffer (process-buffer (get-process "tex-shell"))) |