[ESS-bugs] Variable name affects indentation

Vitalie Spinu spinuvit at gmail.com
Sat Aug 18 11:27:56 CEST 2012


  >> Martin Maechler <maechler at stat.math.ethz.ch>
  >> on Sat, 18 Aug 2012 11:13:51 +0200 wrote:

  > 	       ;; modified by shiba at isac 7.3.1992
  > 	       (cond ((and (numberp ess-expression-offset)
  > 			   (re-search-backward "[ \t]*expression[ \t]*" bol t))
  > 		      ;; This regexp match every "expression".
  > 		      ;; modified by shiba
  > 		      ;;(forward-sexp -1)
  > 		      (beginning-of-line)
  > 		      (skip-chars-forward " \t")
  > 		      ;; End
  > 		      (+ (current-column) ess-expression-offset))

  > and it is clearly why it leads to the wrong indentation here.

But, cannot we just remove that? Why would we treat "expression"
differently from other functions? There are other functions with the
same semantics (quote, bquote, substitute) and we are not treating them
separately. 

Vitalie.



More information about the ESS-bugs mailing list