diff emacs/octave-mod.el @ 5636:c1a765321f28

[project @ 2006-03-02 20:51:32 by jwe]
author jwe
date Thu, 02 Mar 2006 20:51:32 +0000
parents 019e68c33798
children 28e8abe7027e
line wrap: on
line diff
--- a/emacs/octave-mod.el	Thu Mar 02 06:09:17 2006 +0000
+++ b/emacs/octave-mod.el	Thu Mar 02 20:51:32 2006 +0000
@@ -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)