diff options
| author | Eli Zaretskii | 2006-03-11 15:11:09 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-03-11 15:11:09 +0000 |
| commit | 0c93f71581de89217200927488d337425ef4fdb3 (patch) | |
| tree | d510006c5f5ef23c6d4c7fa22a6bbf8e3c0c6275 | |
| parent | 66e9b2b244a03a1cb973ef1e1a909c8d232dcc82 (diff) | |
| download | emacs-0c93f71581de89217200927488d337425ef4fdb3.tar.gz emacs-0c93f71581de89217200927488d337425ef4fdb3.zip | |
(octave-indent-for-comment): Behave according to do string.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/octave-mod.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7bc82634547..cf9ecfee24f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-03-11 Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> | ||
| 2 | |||
| 3 | * progmodes/octave-mod.el (octave-indent-for-comment): Behave | ||
| 4 | according to do string. | ||
| 5 | |||
| 1 | 2006-03-11 Agustin Martin <agustin.martin@hispalinux.es> | 6 | 2006-03-11 Agustin Martin <agustin.martin@hispalinux.es> |
| 2 | 7 | ||
| 3 | * textmodes/flyspell.el (flyspell-external-point-words) | 8 | * 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 | |||
| 732 | comment (started by one comment character) otherwise. | 732 | comment (started by one comment character) otherwise. |
| 733 | Point is left after the start of the comment which is properly aligned." | 733 | Point is left after the start of the comment which is properly aligned." |
| 734 | (interactive) | 734 | (interactive) |
| 735 | (indent-for-comment) | 735 | (beginning-of-line) |
| 736 | (if (looking-at "^\\s-*$") | ||
| 737 | (insert octave-block-comment-start) | ||
| 738 | (indent-for-comment)) | ||
| 736 | (indent-according-to-mode)) | 739 | (indent-according-to-mode)) |
| 737 | 740 | ||
| 738 | (defun octave-indent-line (&optional arg) | 741 | (defun octave-indent-line (&optional arg) |