diff options
author | Francesco Potortì <pot@gnu.org> | 2007-09-22 20:12:05 +0000 |
---|---|---|
committer | Francesco Potortì <pot@gnu.org> | 2007-09-22 20:12:05 +0000 |
commit | e9886e8899240a103ceb8d51e10875ca6c0c3cce (patch) | |
tree | 3db0429447a54303b909b5e7a1926045605da5e7 /lisp/progmodes/octave-inf.el | |
parent | 01dbc75e9e9845c8fcdc34eac5bd4d708c46aae0 (diff) | |
download | emacs-e9886e8899240a103ceb8d51e10875ca6c0c3cce.tar.gz |
(inferior-octave-mode): Use add-hook to
add inferior-octave-directory-tracker to the buffer-local value
of comint-input-filter-functions.
Diffstat (limited to 'lisp/progmodes/octave-inf.el')
-rw-r--r-- | lisp/progmodes/octave-inf.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el index 83d99ab8bee..7620649981c 100644 --- a/lisp/progmodes/octave-inf.el +++ b/lisp/progmodes/octave-inf.el @@ -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)) |