From maechler at stat.math.ethz.ch  Mon Dec 24 14:09:29 2007
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Mon, 24 Dec 2007 14:09:29 +0100
Subject: [Rd] re quest for addition to R-int
In-Reply-To: <14482966.post@talk.nabble.com>
References: <476BE28C.2010203@zoo.ufl.edu>
	<m0abo28wyx.fsf@bar.nemo-project.org>
	<14482966.post@talk.nabble.com>
Message-ID: <18287.44937.608015.137096@ada-stat.math.ethz.ch>

>>>>> "BB" == Ben Bolker <bolker at ufl.edu>
>>>>>     on Sun, 23 Dec 2007 15:31:23 -0800 (PST) writes:

    BB> Bj?rn-Helge Mevik wrote:
    >> 
    >> Ben Bolker wrote:
    >> 
    >>> http://cran.r-project.org/doc/manuals/R-ints.html#R-coding-standards
    >>> 
    >>> gives detailed advice on how to set the indentation level for
    >>> C code to 4, but it took me a bit of poking around in the archives
    >>> to find the
    >>> 
    >>> (setq ess-indent-level 4)
    >>> 
    >>> incantation for getting the R indentation right as well.
    >> 
    >> I'm confused.  Doesn't the suggested code 
    >> 
    >> (add-hook 'ess-mode-hook
    >>  (lambda ()
    >>   (ess-set-style 'C++)
    >> ...
    >> 
    >> implicitly set ess-indent-level to 4?  At least for me, using the
    >> suggested code gives indentation steps of 4 in R code.
    >> 
    >> -- 
    >> Bj?rn-Helge Mevik
    >> 
    >> ____
    >> 

    BB> I guess, but since I was using emacs 21 I followed the
    BB> instructions to use customization instead -- and I guess
    BB> the customization steps don't include this hook ?


I'm confused, too, Ben.

Why exactly are you not willing to use the above (add-hook ...) ?

Is this an "unfortunate" wording of the "Writing R Ext.." manual?

Regards,
Martin



[Rd] re quest for addition to R-int
Martin Maechler