aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/octave-mod.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2006-03-11 15:11:09 +0000
committerEli Zaretskii <[email protected]>2006-03-11 15:11:09 +0000
commit0c93f71581de89217200927488d337425ef4fdb3 (patch)
treed510006c5f5ef23c6d4c7fa22a6bbf8e3c0c6275 /lisp/progmodes/octave-mod.el
parent66e9b2b244a03a1cb973ef1e1a909c8d232dcc82 (diff)
(octave-indent-for-comment): Behave according to do string.
Diffstat (limited to 'lisp/progmodes/octave-mod.el')
-rw-r--r--lisp/progmodes/octave-mod.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el
index 5f52e6f4d3..57941db969 100644
--- a/lisp/progmodes/octave-mod.el
+++ b/lisp/progmodes/octave-mod.el
@@ -732,7 +732,10 @@ If there is no comment already on this line, create a code-level comment
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)