# HG changeset patch # User jwe # Date 1141332692 0 # Node ID c1a765321f280381157fb0038c5c66d912eabf9a # Parent fce700d5bb5ff3e29ff74a9853d9c6a590bcd93d [project @ 2006-03-02 20:51:32 by jwe] diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-02 Kurt Hornik + + * emacs/octave-mod.el (octave-indent-for-comment): Make the code + match the comments. + 2006-03-02 John W. Eaton * octMakefile.in (ALL_SUBDIRS): Delete. diff --git a/emacs/octave-mod.el b/emacs/octave-mod.el --- a/emacs/octave-mod.el +++ b/emacs/octave-mod.el @@ -750,7 +750,10 @@ comment (started by one comment character) otherwise. Point is left after the start of the comment which is properly aligned." (interactive) - (indent-for-comment) + (beginning-of-line) + (if (looking-at "^\\s-*$") + (insert octave-block-comment-start) + (indent-for-comment)) (indent-according-to-mode)) (defun octave-indent-line (&optional arg)