help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ERC] wanna have C-a take me to after prompt..


From: Roland Winkler
Subject: Re: [ERC] wanna have C-a take me to after prompt..
Date: Tue, 18 Jun 2002 19:56:40 +0200

On     Jun 18 2002 Miles Bader wrote:
> Roland Winkler <address@hidden> writes:
> > I'd like to use the field properties to get the expected behavior
> > from `C-a' (comint-bol). But with the prompt being inserted by the
> > process filter function, this doesn't work.
> 
> The reason is that processing of `comint-output-filter-functions' is
> done _after_ the prompt is set up.  It's probably OK to move the filter
> processing after that point (though I'm not sure), but it will still
> require some care on your part if you do this sort of thing -- in
> particular, if you insert text after the process-mark, you have to be
> sure to move the process-mark to reflect that, or else it will be
> considered `after' the prompt.

Thanks a lot!

It seems to me that I have to dig deeper in the code of comint.el.
Right now I define the filter function by using the function
set-process-filter instead of using the variable
comint-output-filter-functions. The reason is that three different
buffers display the output of the process, and only one of these
buffers uses a mode that is derived from comint-mode. Then I can
simply change the filter function that connects to one or the other
buffer.

Therefore I never thought about using the features of comint for
handling the output of my process. But now I am browsing through the
code of comint.el and it seems to me that it offers quite some
suport for my problems. I need not reinvent the wheel.

(Sometimes I was thinking that it would be very helpful to have info
pages for the very powerful comint package.)

> Can you try the following patch to comint, and see if this makes
> things work correctly for you?

First I expect I have to modify my code so that the process output
is handled by comint. This might require some (major?) rewriting of
my code. So it might take a little while till I can tell you whether
your patch solves my problem.

Thank you once again.

Roland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]