[ESS] indentation of ggplot code and ess from MELPA

Ramon Diaz-Uriarte rdiaz02 at gmail.com
Tue May 20 01:30:58 CEST 2014



On Mon, 19-05-2014, at 18:20, Martin Maechler <maechler at stat.math.ethz.ch> wrote:
> (subject corrected!)
>
>>>>>> Ramon Diaz-Uriarte <rdiaz02 at gmail.com>
>>>>>>     on Mon, 19 May 2014 17:35:45 +0200 writes:
>
>> Dear All,
>
>> I have weird indentation problems with ggplot code but only
>> with it[1] with the latest ESS from ELPA. For instance
>
>> ggplot(data = dd, aes(x = x, y = y)) +
>>     ylab("some y") +
>>         xlab(" some x") +
>>             fact_wrap(~z)
>
>
>> This is using the latest ESS from ELPA; ess-version: 13.09-2 [elpa:
>> 20140507.2352]
>
> Well, this is outrageous:  
> The ELPA/MELPA version is *NOT AT ALL* ess-version 13.09-2 from
> all I know.
> Rather it uses a version of the *development* version of ESS,
> see below.

I understood it was the development version (as the ESS page lists 13.09-1
as the current stable version). As for the 13.09-2, it is not my fault :-):
I just copied what gets left in *Messages* when I type

M-x ess-version

ess-version: 13.09-2 [elpa: 20140507.2352] (loaded from /home/ramon/.emacs.d/elpa/ess-20140507.2352/)



>
>> and emacs 24 from Debian: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+
>> Version 3.12.1) of 2014-05-06 on trouble, modified by Debian
>
>
>
>> The problem is still present if the only thing I have in my .emacs is
>
>> (add-to-list 'load-path "/home/ramon/.emacs.d/elpa/ess-20140507.2352/lisp")
>> (load "ess-site")
>
>
>> and also if I start emacs with -Q and then I evaluate the above code. So it
>> does not seem related to any obvious site/local configuration problems.
>
>
>> If I use ESS from Debian (13.09-1-1) then I have no problem. Is this a
>> known issue, or is there something weird some where in my machine?
>> Best,
>
>> R.
>
>
>> [1] Not just "only". In fact,
>
>> ab + cd +
>>     ef + gh +
>>         ij + kl +
>>             mn 
>
>> but I do not tend to type that kind of code, except with ggplot. 
>
> and similar.
>
> What formerly indented as
>
>   if(...)  
>     A
>   else if(...)
>     B
>   else if(...)
>     C
>   else
>     D
>
> now indents very badly.
>

I hadn't noticed that. 

> Please note that the ELPA / MELPA version of ESS are
> *development* versions and hence you are beta testing the
> release I had planned for last week and postponed, exactly for
> this (indentation "broken") reason.
>

I understood I was not using the stable version. But after reading these
entries, from 2012,

http://stackoverflow.com/questions/12805873/changing-indentation-in-emacs-ess
https://stat.ethz.ch/pipermail/ess-bugs/2012q4/000844.html

I did not know if this was the same issue popping up again (or me doing
something wrong).  (Yes, sure, I just found

https://stat.ethz.ch/pipermail/ess-bugs/2014q2/001064.html
)


Best,

R.


> Martin


-- 
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-25
Facultad de Medicina 
Universidad Autónoma de Madrid 
Arzobispo Morcillo, 4
28029 Madrid
Spain

Phone: +34-91-497-2412

Email: rdiaz02 at gmail.com
       ramon.diaz at iib.uam.es

http://ligarto.org/rdiaz



More information about the ESS-help mailing list