[ESS] setMethod indentation

Kevin Coombes kev|n@r@coombe@ @end|ng |rom gm@||@com
Mon Jun 8 14:16:46 CEST 2015


Hi,

I probably should have included the version in my initial post.  I don't 
usually install development versions, and I first noticed the 
indentation problem with the last official release (15.03-1).  For 
various reasons, however, the computer I was on was running version 
ess-20150409.1221, which definitely had the behavior I described in my 
first email.

I just updated to ess-20150601.657, and the obvious problems have been 
fixed. (I haven't tested it thoroughly enough to assert that _all_ the 
indentation problems are gone, but using anonymous functions in 
setMethod or apply now seem to indent sensibly.)

Best,
   Kevin

On 6/6/2015 3:19 PM, Ista Zahn wrote:
> On Fri, Jun 5, 2015 at 4:53 PM, Vitalie Spinu <spinuvit using gmail.com> wrote:
>>   >>> Kevin Coombes on Fri, 5 Jun 2015 10:42:36 -0400 wrote:
>>
>>   > And here is the new behavior:
>>
>>   > setMethod("summary", c("Prior"), function(object, ...) {
>>   >             cat("Prior: ", object using cn,"\n")
>>   >             print(object using vt)
>>   >           })
>>
>>
>> This is not how ESS currently indents.
> Indeed, I get
>
> setMethod("summary", c("Prior"), function(object, ...) {
>      cat("Prior: ", object using cn,"\n")
>      print(object using vt)
> })
>
>
>   Indentation was rewritten from zero in
>> the past month and the configuration UI is still being changed.
> IMO indentation has improved a lot recently, I've finally removed all
> the hacks in my .emacs as I'm now happy with the default indentation.
>
> Best,
> Ista
>
>   Please see
>> recent issues and pull requests on github if you are interested.
>>
>>
>>    Vitalie
>>
>> ______________________________________________
>> ESS-help using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list