Mercurial > emacs
comparison lisp/textmodes/tex-mode.el @ 6632:652dc23b83fd
(tex-start-shell): Use shell-mode-map (instead of comint-mode-map) because
it's bit a nicer.
Change the "require" from comint to shell for the same reason.
author | Edward M. Reingold <reingold@emr.cs.iit.edu> |
---|---|
date | Fri, 01 Apr 1994 16:57:56 +0000 |
parents | 855f4f2d24da |
children | 27e6ef8494b2 |
comparison
equal
deleted
inserted
replaced
6631:eea1789dc6fd | 6632:652dc23b83fd |
---|---|
24 ;; along with GNU Emacs; see the file COPYING. If not, write to | 24 ;; along with GNU Emacs; see the file COPYING. If not, write to |
25 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 25 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | 26 |
27 ;;; Code: | 27 ;;; Code: |
28 | 28 |
29 (require 'comint) | 29 (require 'shell) |
30 (require 'compile) | 30 (require 'compile) |
31 | 31 |
32 ;;;###autoload | 32 ;;;###autoload |
33 (defvar tex-shell-file-name nil | 33 (defvar tex-shell-file-name nil |
34 "*If non-nil, is file name to use for the subshell in which TeX is run.") | 34 "*If non-nil, is file name to use for the subshell in which TeX is run.") |
812 (or tex-shell-file-name (getenv "ESHELL") (getenv "SHELL") "/bin/sh") | 812 (or tex-shell-file-name (getenv "ESHELL") (getenv "SHELL") "/bin/sh") |
813 nil)) | 813 nil)) |
814 (let ((proc (get-process "tex-shell"))) | 814 (let ((proc (get-process "tex-shell"))) |
815 (set-process-sentinel proc 'tex-shell-sentinel) | 815 (set-process-sentinel proc 'tex-shell-sentinel) |
816 (process-kill-without-query proc) | 816 (process-kill-without-query proc) |
817 (setq tex-shell-map (copy-keymap comint-mode-map)) | 817 (setq tex-shell-map (copy-keymap shell-mode-map)) |
818 (tex-define-common-keys tex-shell-map) | 818 (tex-define-common-keys tex-shell-map) |
819 (use-local-map tex-shell-map) | 819 (use-local-map tex-shell-map) |
820 (run-hooks 'tex-shell-hook) | 820 (run-hooks 'tex-shell-hook) |
821 (while (zerop (buffer-size)) | 821 (while (zerop (buffer-size)) |
822 (sleep-for 1))))) | 822 (sleep-for 1))))) |