(tex-start-shell): Use add-hook for
comint-input-filter-functions. Make variables related to shell directory tracking local.
This commit is contained in:
parent
c076faabba
commit
0959218256
1 changed files with 5 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue