Comments in emacs

novakyu novakyu at gmail.com
Thu Dec 27 22:12:18 CST 2007


I don't know if this is helpful or not ... but it seemed like emacs'
octave-mode recognized only "#" for beginning comments. I think when
you type "%", emacs doesn't think it's a comment (probably an operator
or something).

GNU Octave can handle .m files using "#" for comments, but I don't
think Matlab can, if Matlab compatibility matters to you.

Since Matlab compatibility was important to me, I just ended up
editing my .m files in fundamental-mode, since I didn't really need
any of automatic indenting features for .m files (although the lack of
keyword highlighting is somewhat missed ...).

Regards,

Andrzej

On Dec 27, 2007 7:12 PM, Olivier Lefevre <lefevrol at yahoo.com> wrote:
> I am editing m files in emacs, in the Octave mode. Whenever
> After I start a comment line with a %, the moment I insert
> a blank space emacs insists on positioning the % at col 32!
> This is extremely annoying behaviour and a strong disincentive
> to writing comments. Would anyone know how to make that stop?
> I had a look at octave-mod.el but nothing struck me.
>
> Thanks,
>
> -- O.L.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>



-- 
UC Berkeley Physics Department
275 Birge Hall
Berkeley CA 94720-7300
(510) 642-2207


More information about the Help-octave mailing list