[ESS] Using Rterm under Cygwin Emacs, and future Sweave handling extensions.
Martin Maechler
maechler at stat.math.ethz.ch
Fri Nov 25 09:46:52 CET 2005
>>>>> "tony" == A J Rossini <blindglobe at gmail.com>
>>>>> on Fri, 25 Nov 2005 09:14:00 +0100 writes:
tony> I'm not seeing that problem. However, there was at least one case of
tony> ess-microsoft-p
tony> not flagging being in Microsoft Windows (i.e. we aren't careful about
tony> differentiating between MinGW and Cygwin).
tony> I'll look more into this soon.
IIRC, also from a local colleague, the problem is +/- the
following:
On windoze, there's
1) the "native" windows Emacs (and several
kinds of "shells", including real ones such as bash)
2) There's Cygwin / MingGW versions of Emacs
(which use bash when using a shell, e.g., for M-x shell).
And it seems for both, our 'ess-microsoft-p' is t (TRUE)
(which may be correct, since the OS is M$ after all),
but in some cases, notably the one below,
in case "2)" the behavior should be rather "unixish" than
"windowsish".
Yes, that would be great if this could be made to work correctly
-- automatically -- "real soon now".
Martin
tony> On 11/25/05, Frede Aakmann Tøgersen <FredeA.Togersen at agrsci.dk> wrote:
>>
>> I updated to the recent developement version of ESS in order to check whether the problem that I have had with Cygwins bash shell in Emacs together with ESS. See below for Martin M.'s answer.
>>
>> Last month I succeeded in finding a solution on the web. The problem seems to be related to the the definition of the R function in the 'essd-r.el' file, where the following code sniplet is included:
>>
>> (if ess-microsoft-p
>> (setq default-process-coding-system '(undecided-dos . undecided-dos)))
>>
>> When setting the process-coding-system to undecided-dos a newline (^L) is appended to a carriage return <CR> which interferes with Cygwin's normal UNIX behaviour. Cygwin expects only a <CR>.
>>
>> I have solved this by putting:
>>
>> (add-to-list 'process-coding-system-alist '("bash" . undecided-unix))
>>
>> into my .emacs. Whether this is the right way to do it I don't known, but it seems to work in the sense that I can now use Cygwin's bash in a shell buffer at the same time as I use R without any problem observed during the last month.
>>
>> I will now check if the new version breaks normal Emacs behaviour.
>>
>> Best regards
>>
>> Frede Aakmann Tøgersen
>>
>>
>> ----------------------------------------------------
>> Frede Aakmann Tøgersen
>> Statistics and Decision Theory
>> Department of Genetics and Biotechnology
>> Danish Institute of Agricultural Sciences
>> P.O. Box 50, DK-8830 Tjele,
>> --------------------------------------------------------
More information about the ESS-help
mailing list