[ESS] ESS language defaults to S

Vitalie S. spinuvit.list at gmail.com
Tue Dec 14 12:59:18 CET 2010

Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk> writes:

>> The problem is that "ess-request-a-process" uses ess-language variable
>> and not "ess-dialect" for initial-input. Here is the patch:
>> Index: lisp/ess-inf.el
> Thanks Vitalie, I've added this.
>> Taking this opportunity, `ess-electric-brace` when skeleton-pair is used
> does
>> not indent the braces. Here is a simple patch:
> I've not touched that, as I don't use the electric-brace feature -- do
> others think it should also automatically indent?

electric-brace indents by default, but if skeleton is used it gives the
precedence to it, and doesn't indent:

(if (and (boundp 'skeleton-pair) skeleton-pair (featurep 'skeleton))
    (skeleton-pair-insert-maybe "{")

I am using skeleton-pair for "(", "[" but not for "{".
Thus, the above piece of code does exactly what I
don't want (skeleton-pair-insert-maybe "{").

I must be missing something, the reason for skeleton-pair quite eludes
me here. If "{" is bound to ess-electric-brace it should be electric-brace and not
skeleton-pair, shouldn't it?

Thanks for looking into it,

> S
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

More information about the ESS-help mailing list