changeset 69383:d42f434529e3

(octave-indent-for-comment): Behave according to do string.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 11 Mar 2006 15:10:32 +0000
parents 743351204cc6
children d73f157167c6
files lisp/progmodes/octave-mod.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/octave-mod.el	Sat Mar 11 15:09:48 2006 +0000
+++ b/lisp/progmodes/octave-mod.el	Sat Mar 11 15:10:32 2006 +0000
@@ -732,7 +732,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)