* lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 24 May 2013 19:37:55 +0000 (15:37 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 24 May 2013 19:37:55 +0000 (15:37 -0400)
commit650cff3d874e68a8aa80cbdb71ff9f48e10d1cb6
treeccd37f50a1ca75b81b3c602937d8be1a71caa0b2
parent9631677d730a314f55378f5da6734db521f8130d
* lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
(smie-setup): Use add-function to set it.

* lisp/progmodes/octave.el (octave-smie-rules): Return nil rather than
0 after a semi-colon; it works better for smie-auto-fill.
(octave--indent-new-comment-line): New function.
(octave-indent-new-comment-line): Use it (indirectly).
(octave-mode): Don't disable smie-auto-fill.  Use add-function to
modify comment-line-break-function.
lisp/ChangeLog
lisp/emacs-lisp/smie.el
lisp/progmodes/octave.el
test/indent/octave.m