[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comint-preoutput-filter-functions trouble
From: |
Stefan Monnier |
Subject: |
Re: comint-preoutput-filter-functions trouble |
Date: |
Wed, 08 Dec 2010 15:36:59 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> Now if I listen on localhost 60750 with nc, and switch to comint-mode
> in the buffer created by (open-network-stream "foo" "*foo*"
> "localhost" 60750) (instead of *shell*), evaluate (add-hook
> 'comint-preoutput-filter-functions 'upcase nil t), and type something
> in nc, it does *NOT* show up as uppercase in the Emacs buffer *foo*.
> Why do the comint-preoutput-filter-functions seem to have no effect in
> a network-stream buffer?
That's because you haven't told the (network) process to use
comint's functionality. OTOH when you start a shell via M-x shell, the
process is not just created but it's also configured to do things such
as run comint-preoutput-filter-functions.
You can look for set-process-filter in comint.el to see what comint does
that you didn't do.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: comint-preoutput-filter-functions trouble,
Stefan Monnier <=