From 0c93f71581de89217200927488d337425ef4fdb3 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 11 Mar 2006 15:11:09 +0000 Subject: [PATCH] (octave-indent-for-comment): Behave according to do string. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/octave-mod.el | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7bc82634547..cf9ecfee24f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-03-11 Kurt Hornik + + * progmodes/octave-mod.el (octave-indent-for-comment): Behave + according to do string. + 2006-03-11 Agustin Martin * textmodes/flyspell.el (flyspell-external-point-words) diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index 5f52e6f4d3c..57941db9691 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) -- 2.39.2