[ESS-bugs] ess-mode 5.2.12; R help error

Sam Steingold sds at podval.org
Tue Mar 21 18:02:42 CET 2006


> * A.J. Rossini <oyvaqtybor at tznvy.pbz> [2006-03-21 17:44:50 +0100]:
>
> On 3/21/06, Sam Steingold <sds at podval.org> wrote:
>
>> did you do
>>
>> (add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
>
> what is the rationale for that, Sam?  I don't use it on any platform
> (Linux/Win/Mac).

I used it on woe32 because otherwise I saw "^M" at the end of lines of
program output in the comint buffers.

> If you remove that, does it work?

yes.

> I'd guess that there is some nasty interaction with our interception
> command (which grabs "?" and "help(" strings from the command line as
> a signal to redirect output).

I think this is a bug in ess-mode, I do not see this problem with shell,
lisp and others.

I am not sure if
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
is still necessary on woe32 (luckily, I no longer have access to a woe32
machine), so, for now, I will just comment that add-hook from my .emacs.

I suggest that the ess maintainers take a look at the problem though.
even if comint-strip-ctrl-m is completely obsolete, other hooks may
assume that the current buffer does not change inside comint-send-input
and you will be bitten by this in the future.

-- 
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 4 (Stentz)
http://ffii.org http://www.camera.org http://www.savegushkatif.org
http://truepeace.org http://www.memri.org http://www.jihadwatch.org
Don't hit a man when he's down -- kick him; it's easier.




More information about the ESS-bugs mailing list