]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-start-shell): Use add-hook for
authorAndreas Schwab <schwab@suse.de>
Mon, 29 Mar 1999 09:06:05 +0000 (09:06 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 29 Mar 1999 09:06:05 +0000 (09:06 +0000)
comint-input-filter-functions.  Make variables related to shell
directory tracking local.

lisp/textmodes/tex-mode.el

index 1f248699758543a8620dec0810cc0781e389bcda..c620a25fc6456934d0ab02f9df68410f45562620 100644 (file)
@@ -1005,7 +1005,11 @@ Mark is left at original location."
       (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)))))