From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.bugs Subject: Re: Bug#443439: emacs: run-octave captures the shell directory tracker Date: Fri, 21 Sep 2007 13:47:02 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: sea.gmane.org 1190375258 28640 80.91.229.12 (21 Sep 2007 11:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2007 11:47:38 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Octave bugs list , 443439-maintonly@bugs.debian.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 13:47:34 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IYgyq-00031K-Nx for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2007 13:47:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYgyo-000057-LB for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2007 07:47:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IYgym-0008Vv-Ik for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:47:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IYgyk-0008Vg-8U for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:47:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYgyk-0008Vd-36 for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:47:26 -0400 Original-Received: from mx2.isti.cnr.it ([194.119.192.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IYgyj-0003Eg-Ih for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:47:25 -0400 Original-Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.3 #31251) id <01MLMFKF6MQ89OE3FN@mx.isti.cnr.it> for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 13:47:04 +0200 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by mx.isti.cnr.it (PMDF V6.3 #31251) with ESMTPSA id <01MLMFKEKYVG9ODYSJ@mx.isti.cnr.it>; Fri, 21 Sep 2007 13:47:02 +0200 Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.67) (envelope-from ) id 1IYgyM-00005q-E2; Fri, 21 Sep 2007 13:47:02 +0200 In-reply-to: X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-Detected-Kernel: OpenVMS 7.2 (Multinet 4.3-4.4 stack) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16586 Archived-At: >This should use add-hook with LOCAL =3D t. Good, thanks. So here is a correct patch: 2007-09-21 Francesco Potort=EC =09* progmodes/octave-inf.el (inferior-octave-mode): Use add-hook to =09add inferior-octave-directory-tracker to the buffer-local value =09of comint-input-filter-functions. --- octave-inf.el=0921 Sep 2007 12:19:05 +0200=091.31 +++ octave-inf.el=0921 Sep 2007 13:38:20 +0200=09 @@ -153,10 +153,11 @@ Entry to this mode successively runs the =20 (setq comint-input-ring-file-name =09(or (getenv "OCTAVE_HISTFILE") "~/.octave_hist") -=09comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024) -=09comint-input-filter-functions '(inferior-octave-directory-tracker= )) +=09comint-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 +=09'inferior-octave-directory-tracker nil t) (comint-read-input-ring t) =20 (run-mode-hooks 'inferior-octave-mode-hook))