]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-feed-input): New function.
authorRichard M. Stallman <rms@gnu.org>
Wed, 25 Nov 1998 01:07:19 +0000 (01:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 25 Nov 1998 01:07:19 +0000 (01:07 +0000)
(tex-define-common-keys): Add binding for C-c C-m.

lisp/textmodes/tex-mode.el

index 41ff4204de428d7fe4d6ac43065f730b6deead3a..92ddade1985caa87e6f1a9217925b73c384846aa 100644 (file)
@@ -337,6 +337,7 @@ subsubsection\\|paragraph\\|subparagraph\\)\\*?[ \t]*{" nil t)
   "Define the keys that we want defined both in TeX mode and in the TeX shell."
   (define-key keymap "\C-c\C-k" 'tex-kill-job)
   (define-key keymap "\C-c\C-l" 'tex-recenter-output-buffer)
+  (define-key keymap "\C-c\C-m" 'tex-feed-input)
   (define-key keymap "\C-c\C-q" 'tex-show-print-queue)
   (define-key keymap "\C-c\C-p" 'tex-print)
   (define-key keymap "\C-c\C-v" 'tex-view)
@@ -990,6 +991,15 @@ Mark is left at original location."
       (while (zerop (buffer-size))
        (sleep-for 1)))))
 
+(defun tex-feed-input ()
+  "Send input to the tex shell process.
+In the tex buffer this can be used to continue an interactive tex run.
+In the tex shell buffer this command behaves like `comint-send-input'." 
+  (interactive)
+  (set-buffer (process-buffer (get-process "tex-shell")))
+  (comint-send-input)
+  (tex-recenter-output-buffer nil))
+
 (defun tex-display-shell ()
   "Make the TeX shell buffer visible in a window."
   (display-buffer (process-buffer (get-process "tex-shell")))