changeset 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 f9832f025dd5
children 4d92860b8e50
files lisp/progmodes/octave-mod.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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))