Yes, Thanks Oliver and Mathieu.

Mathieu pointed me in the right direction. There are three types of comment
prefixes, #, ##, and ###, all with different types of automatic
indentations. See the link from Mathieu.

James


On Thu, Feb 7, 2013 at 1:19 PM, Oliver Jones
<ojones@wiwi.uni-bielefeld.de>wrote:

> Hi,
>
> I experience a similar behaviour when pressing RET at the beginning of a
> commented line.
> I guess you just experience this TAB problem for commented lines?
>
>
> Am 07.02.2013 19:10, schrieb James Jong:
>
>  Sometimes I am editing an R file, and when I press<TAB>  it automatically
>> indents my line way off , for example:
>>
>>
>> options(tab.width = 2)
>> options(width = 130)
>> options(graphics.record=TRUE)
>>                                 # Some comments
>>
>> While it should be:
>>
>> options(tab.width = 2)
>> options(width = 130)
>> options(graphics.record=TRUE)
>> # Some comments
>>
>> I have not customized my .emacs for ESS in any way.
>>
>> Why does it guess the wrong indentation?
>>
>> For the version I am using, I installed ESS through the package manager
>> with MELPA, and when I do M-x ess-version I get:
>> 12.09-2
>>
>> Thanks,
>>
>> James
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________**________________
>> ESS-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/**listinfo/ess-help<https://stat.ethz.ch/mailman/listinfo/ess-help>
>>
>
> --
> ______________________________**______________________________**
> ___________________
> Universität Bielefeld
> Fakultät für Wirtschaftswissenschaften
> Lehrstuhl für Ökonometrie und Statistik
> Raum / room:  V9-108
> Tel / phone:  +49 (0)521 106 4895
> http://www.wiwi.uni-bielefeld.**de/oekonometrie.html<http://www.wiwi.uni-bielefeld.de/oekonometrie.html>
> ______________________________**______________________________**
> ___________________
>

	[[alternative HTML version deleted]]

