1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00

(octave-indent-for-comment): Behave according to do string.

This commit is contained in:
Eli Zaretskii 2006-03-11 15:11:09 +00:00
parent 66e9b2b244
commit 0c93f71581
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-11 Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>
* progmodes/octave-mod.el (octave-indent-for-comment): Behave
according to do string.
2006-03-11 Agustin Martin <agustin.martin@hispalinux.es>
* textmodes/flyspell.el (flyspell-external-point-words)

View File

@ -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)