changeset 24527:9c8fd1f7b4d3

(tex-start-shell): Use add-hook for comint-input-filter-functions. Make variables related to shell directory tracking local.
author Andreas Schwab <schwab@suse.de>
date Mon, 29 Mar 1999 09:06:05 +0000
parents a70f2306f60b
children 440fb6df32c8
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)))))