[ESS] ess-style indentation broken, I think...

Brian zen||ne@ @end|ng |rom gm@||@com
Wed Aug 12 19:46:38 CEST 2015


Dear developers,

upon upgrading/downgrading to:

ess-version: 15.03-1 [<unknown>]

I get indentation as such:

TRUE +
    FALSE +
        TRUE +
            FALSE +
                TRUE +
                    FALSE

ess-style is a variable defined in `ess-custom.el'.
Its value is C++

~/.emacs:
;; According to the manual:
http://cran.r-project.org/doc/manuals/R-ints.html#R-coding-standards
(add-hook 'ess-mode-hook
      (lambda ()
        (ess-set-style 'C++ 'quiet)
        ;; Because
        ;;                                 DEF GNU BSD K&R C++
        ;; ess-indent-level                  2   2   8   5   4
        ;; ess-continued-statement-offset    2   2   8   5   4
        ;; ess-brace-offset                  0   0  -8  -5  -4
        ;; ess-arg-function-offset           2   4   0   0   0
        ;; ess-expression-offset             4   2   8   5   4
        ;; ess-else-offset                   0   0   0   0   0
        ;; ess-close-brace-offset            0   0   0   0   0
        (add-hook 'local-write-file-hooks
              (lambda ()
            (ess-nuke-trailing-whitespace)))))
;; (setq ess-nuke-trailing-whitespace-p 'ask)
;; or even
(setq ess-nuke-trailing-whitespace-p t)
(setq ess-default-style 'C++) ; for good measure
(load "~/.emacs.d/ess-15.03-1/lisp/ess-site.el")

I've tried cycling through all the other available styles, and
restarting emacs, with the exact same results.

I read NEWS and followed the instructions.

GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
of 2015-06-23

I guess i should go back to ess-14.09?

Even though I've sent two negative emails, I really like ess.  So don't
get me wrong.

Best Regards,
Brian





On 10.08.2015 16:33, Brian wrote:
> Dear developers,
>
> ess-roxy-update-entry is wreaking havoc
> C-c C-o C-o within
> test <- function(crap, crap.parameter)
> {
>     paste(crap, crap.parameter, sep=" + ")
> }
> ## random text
>
> Gives me:
> ##'
> ##'
> ##'
> ##' @param crap
> ##' @param crap.parameter t
> ##' @return
> ##' @examples
> ##' @export est <- function(crap, crap.parameter) { paste(crap,
> crap.parameter, sep=" + ") } ## random text
>
> It looks like a bit of text mauling plus auto-fill-mode.  I got bitten
> (again) by using melpa.  What am I, a lowly emacs+ess user, doing using
> a development release? 
>
> Cheers,
> Brian
>
> Problematic:
> GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
> of 2015-06-23
> ess-version: 15.09-devel [elpa: 20150727.1221]
>
> Works as expected:
> GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9) of
> 2015-03-05
> ess-version: 14.09 [svn: 6041 (2014-09-13)]
>
> <mailto:ess-help using r-project.org>




More information about the ESS-help mailing list