]> git.eshelyaron.com Git - emacs.git/commitdiff
(inferior-octave-mode): Use add-hook to
authorFrancesco Potortì <pot@gnu.org>
Sat, 22 Sep 2007 20:12:05 +0000 (20:12 +0000)
committerFrancesco Potortì <pot@gnu.org>
Sat, 22 Sep 2007 20:12:05 +0000 (20:12 +0000)
add inferior-octave-directory-tracker to the buffer-local value
of comint-input-filter-functions.

lisp/progmodes/octave-inf.el

index 83d99ab8bee4764ed18828f0fd2208bafc0a2321..7620649981c9550691b2e4ecbfad559f443d77c4 100644 (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))