[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#703: Octave comments in emacs

From: Chong Yidong
Subject: bug#703: Octave comments in emacs
Date: Wed, 13 Aug 2008 18:18:10 -0400

Hi Kurt,

Could you take a look at this bug report?



2008/8/11 Rosen Diankov <address@hidden>:

> The % also messes up formatting when seen in strings, ie
> 'my value: %d'
> For some reason, the octave syntax does not recognize that single
> quotes are strings (it might be because the transpose character is
> also ' and it is hard to differentiate between a string and the
> transposing).
> In any case, writing the above example will treat the % as a comment.
> The indenting engine will skip the closing parenthesis )... resulting
> in all the rest of the indents looking like garbage.
> In calculate-octave-indent, just delete the entire expression
> ((looking-at "\\s<\\S<")
>        (setq icol (list comment-column icol)))
> that forces comments to comment-column (which is 32). Was there a
> reason for this?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]