[ESS] Problems with indentation (v 12.09-2)

Oliver Jones ojones at wiwi.uni-bielefeld.de
Thu Feb 7 19:32:44 CET 2013


Yeah, saw the link too late. Helped me too. :-)


Am 07.02.2013 19:20, schrieb James Jong:
> 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 at wiwi.uni-bielefeld.de
> <mailto:ojones at 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 at r-project.org <mailto:ESS-help at 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 <tel:%2B49%20%280%29521%20106%204895>
>     http://www.wiwi.uni-bielefeld.__de/oekonometrie.html
>     <http://www.wiwi.uni-bielefeld.de/oekonometrie.html>
>     ___________________________________________________________________________________
>
>

-- 
_______________________________________________________________________________
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



More information about the ESS-help mailing list