all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Francesco Potorti` <pot@gnu.org>
Cc: Octave bugs list <bug-octave@bevo.che.wisc.edu>,
	bug-gnu-emacs@gnu.org, 443439-maintonly@bugs.debian.org,
	Gabriele Oligeri <gabriele.oligeri@isti.cnr.it>,
	Francesco Potorti` <Potorti@isti.cnr.it>
Subject: Re: Bug#443439: emacs: run-octave captures the shell directory tracker
Date: Fri, 21 Sep 2007 13:32:56 +0200	[thread overview]
Message-ID: <jebqbwgsnr.fsf@sykes.suse.de> (raw)
In-Reply-To: <E1IYfkv-0008G3-Fj@tucano.isti.cnr.it> (Francesco Potorti`'s message of "Fri\, 21 Sep 2007 12\:29\:05 +0200")

Francesco Potorti` <pot@gnu.org> 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:20: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
>  
>    (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 = t.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




  reply	other threads:[~2007-09-21 11:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-21  9:44 emacs: run-octave captures the shell directory tracker Francesco Potorti`
2007-09-21 10:29 ` Bug#443439: " Francesco Potorti`
2007-09-21 11:32   ` Andreas Schwab [this message]
2007-09-21 11:47     ` Francesco Potorti`
2007-09-21 15:44       ` John W. Eaton
     [not found]         ` <E1IYl9C-00019F-27@tucano.isti.cnr.it>
     [not found]           ` <je1wcs2aoy.fsf@sykes.suse.de>
2007-09-21 18:10             ` Francesco Potorti`
2007-09-21 19:29               ` Andreas Schwab
2007-09-22 11:57         ` Richard Stallman
2007-10-05 17:56           ` John W. Eaton
2007-10-06  1:52             ` Glenn Morris
2007-09-22 18:41       ` Glenn Morris
2007-09-22 20:13         ` Francesco Potorti`

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jebqbwgsnr.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=443439-maintonly@bugs.debian.org \
    --cc=Potorti@isti.cnr.it \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=bug-octave@bevo.che.wisc.edu \
    --cc=gabriele.oligeri@isti.cnr.it \
    --cc=pot@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.