diff lisp/progmodes/octave-mod.el @ 67467:7f9de4e59fcf

(octave-electric-space): Don't indent comments or strings if octave-auto-indent is nil.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 Dec 2005 10:28:46 +0000
parents a11fdee52c05
children dc49655f57ae 7beb78bc1f8e
line wrap: on
line diff
--- a/lisp/progmodes/octave-mod.el	Sat Dec 10 05:47:27 2005 +0000
+++ b/lisp/progmodes/octave-mod.el	Sat Dec 10 10:28:46 2005 +0000
@@ -1311,7 +1311,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))