diff emacs/octave-mod.el @ 5557:91cdb5f1eeed

[project @ 2005-12-03 02:42:04 by jwe]
author jwe
date Sat, 03 Dec 2005 02:42:04 +0000
parents 5cc01ba4c052
children 019e68c33798
line wrap: on
line diff
--- a/emacs/octave-mod.el	Thu Dec 01 20:40:14 2005 +0000
+++ b/emacs/octave-mod.el	Sat Dec 03 02:42:04 2005 +0000
@@ -1329,7 +1329,8 @@
 Reindent the line of `octave-auto-indent' is non-nil."
   (interactive)
   (setq last-command-char ? )
-  (if (not (octave-not-in-string-or-comment-p))
+  (if (and octave-auto-indent
+	   (not (octave-not-in-string-or-comment-p)))
       (progn
 	(indent-according-to-mode)
 	(self-insert-command 1))