changeset 84772:c104419f915c

(inferior-octave-mode): Use add-hook to add inferior-octave-directory-tracker to the buffer-local value of comint-input-filter-functions.
author Francesco Potortì <pot@gnu.org>
date Sat, 22 Sep 2007 00:09:45 +0000
parents 20c4f1b1d217
children d8b9b78eb16c
files lisp/progmodes/octave-inf.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/octave-inf.el	Sat Sep 22 00:09:12 2007 +0000
+++ b/lisp/progmodes/octave-inf.el	Sat Sep 22 00:09:45 2007 +0000
@@ -153,10 +153,11 @@
 
   (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))