1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(inferior-octave-mode): Use add-hook to

add inferior-octave-directory-tracker to the buffer-local value
of comint-input-filter-functions.
This commit is contained in:
Francesco Potortì 2007-09-22 20:12:05 +00:00
parent 01dbc75e9e
commit e9886e8899

View File

@ -153,10 +153,11 @@ Entry to this mode successively runs the hooks `comint-mode-hook' and
(setq comint-input-ring-file-name
(or (getenv "OCTAVE_HISTFILE") "~/.octave_hist")
comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024)
comint-input-filter-functions '(inferior-octave-directory-tracker))
comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024))
(set (make-local-variable 'comint-dynamic-complete-functions)
inferior-octave-dynamic-complete-functions)
(add-hook 'comint-input-filter-functions
'inferior-octave-directory-tracker nil t)
(comint-read-input-ring t)
(run-mode-hooks 'inferior-octave-mode-hook))