From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: Re: Bug#443439: emacs: run-octave captures the shell directory tracker Date: Fri, 21 Sep 2007 13:32:56 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1190374406 25953 80.91.229.12 (21 Sep 2007 11:33:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2007 11:33:26 +0000 (UTC) Cc: Octave bugs list , bug-gnu-emacs@gnu.org, 443439-maintonly@bugs.debian.org, Gabriele Oligeri , Francesco Potorti` To: Francesco Potorti` Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 13:33:23 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 1IYgkz-0006nh-OJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2007 13:33:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYgkx-0004dc-45 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2007 07:33:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IYgku-0004a1-4c for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:33:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IYgkp-0004Ra-HE for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:33:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYgkp-0004RN-9Y for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2007 07:33:03 -0400 Original-Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IYgkl-0001Kx-AW; Fri, 21 Sep 2007 07:32:59 -0400 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 0AA451500D; Fri, 21 Sep 2007 13:32:57 +0200 (CEST) X-Yow: I want to read my new poem about pork brains and outer space... In-Reply-To: (Francesco Potorti`'s message of "Fri\, 21 Sep 2007 12\:29\:05 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.4-2.6 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:16585 Archived-At: Francesco Potorti` writes: > The second problem is that shell-mode uses the global value of > comint-input-filter-functions rather than the local one. This is a feature, not a bug. > --- /usr/share/emacs/22.1/lisp/progmodes/octave-inf.el~ 2007-01-21 04:2= 0:44.000000000 +0100 > +++ /usr/share/emacs/22.1/lisp/progmodes/octave-inf.el 2007-09-21 12:11= :09.000000000 +0200 > @@ -153,8 +153,9 @@ Entry to this mode successively runs the > =20 > (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-input-filter-functions) > + '(inferior-octave-directory-tracker)) This should use add-hook with LOCAL =3D t. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."