[ESS] problems with curly braces { }
Rodney Sparapani
rsparapa at mcw.edu
Thu May 27 20:52:52 CEST 2010
On 05/27/10 01:31 PM, Joshua Wiley wrote:
> Hello,
>
> I am not very experienced with Emacs so my apologies if this is a
> stupid question. Right now I am running:
>
> Windows (XP x32 at school; 7 x64 at home)
> XEmacs version 21.4.22
> ESS version 5.9.1
>
> When I have .R files open, I generally have these modes:
> ess-roxy-mode
> font-lock-mode
> line-number-mode
>
> When I try to type something like:
>
> for(i in index) {
> data<- otherdata[i]
> }
>
> It will not let me type the closing } on the bottom line. It is not a
> problem if I type it on the line above, but I cannot use it on an
> empty line. The error is:
>
> "Wrong type of argument: char-or-string-p, #keypress-event }>"
>
> I read that lisp will throw that error if the wrong type of object is
> used as a function argument, and I gather that it was looking for a
> character or string object. What I am not certain about is why is "}"
> not a character or string? What function is it being used in that
> does not like it? Why does it work as long as there is something on
> the line already?
>
> Oh, also it does not replicate if I am just using the default scratch
> buffer in XEmacs.
>
> Thanks,
>
> Josh
>
Hi Josh:
Very weird. I see the same thing. This is coming from
ess-electric-brace from ess-mode.el This feature is discussed here
http://ess.r-project.org/Manual/ess.html#Indenting
But, the documentation gives no inkling of turning this feature off or
what to do if it is broken?!?
--
Rodney Sparapani Center for Patient Care and Outcomes Research
Sr. Biostatistician http://www.mcw.edu/pcor
4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW)
WWLD?: What Would Lombardi Do? Milwaukee, WI, USA
More information about the ESS-help
mailing list