# HG changeset patch # User Andreas Schwab # Date 922698365 0 # Node ID 9c8fd1f7b4d39f65d347b4aea76ecfc2b2c3aafe # Parent a70f2306f60baa95314044e0954a53e6a1bff888 (tex-start-shell): Use add-hook for comint-input-filter-functions. Make variables related to shell directory tracking local. diff -r a70f2306f60b -r 9c8fd1f7b4d3 lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Mon Mar 29 07:35:55 1999 +0000 +++ b/lisp/textmodes/tex-mode.el Mon Mar 29 09:06:05 1999 +0000 @@ -1005,7 +1005,11 @@ (tex-define-common-keys tex-shell-map) (use-local-map tex-shell-map) (compilation-shell-minor-mode t) - (setq comint-input-filter-functions 'shell-directory-tracker) + (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t) + (make-local-variable 'list-buffers-directory) + (make-local-variable 'shell-dirstack) + (make-local-variable 'shell-last-dir) + (make-local-variable 'shell-dirtrackp) (run-hooks 'tex-shell-hook) (while (zerop (buffer-size)) (sleep-for 1)))))