# HG changeset patch # User Eli Zaretskii # Date 1134210526 0 # Node ID 7f9de4e59fcf3c5a381f6d32ed5c66be64b180b0 # Parent f9832f025dd53133ab731954c1bbdf88daa0cfd0 (octave-electric-space): Don't indent comments or strings if octave-auto-indent is nil. diff -r f9832f025dd5 -r 7f9de4e59fcf lisp/progmodes/octave-mod.el --- 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))