commented-out parentheses cause error in C-c C-c

View: New views
2 Messages — Rating Filter:   Alert me  

commented-out parentheses cause error in C-c C-c

by Levi Waldron-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For example the following R code, which contains no errors or unbalanced
parentheses:

## fun <- function(x){
##   x^2
## }

print("hello world")

Using this with an inferior R process, all of the eval commands work except
for C-c C-c.  If I hold the cursor over the print line (or anywhere) and
press C-c C-c, I get the following error and it does not evaluate:

Scan error: "Unbalanced parentheses", 22, 60

I am using GNU Emacs 21.4.1, ESS version 5.5.  The same problem existed in
ESS 5.3.8.


--
Levi Waldron
post-doctoral fellow
Jurisica Lab, Ontario Cancer Institute
Division of Signaling Biology
TMDT 9-304D
101 College Street
Toronto, Ontario M5G 1L7
(416)581-7453

        [[alternative HTML version deleted]]

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: commented-out parentheses cause error in C-c C-c

by Stephen Eglen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Levi Waldron <lwaldron.research@...> wrote:

> For example the following R code, which contains no errors or unbalanced
> parentheses:
>
> ## fun <- function(x){
> ##   x^2
> ## }
>
> print("hello world")
>
> Using this with an inferior R process, all of the eval commands work except
> for C-c C-c.  If I hold the cursor over the print line (or anywhere) and
> press C-c C-c, I get the following error and it does not evaluate:
>
> Scan error: "Unbalanced parentheses", 22, 60
>
> I am using GNU Emacs 21.4.1, ESS version 5.5.  The same problem existed in
> ESS 5.3.8.
Thanks, I can confirm this on Emacs 23.1 (no fix yet though).

Stephen

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help