aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorEli Zaretskii2005-12-10 10:29:22 +0000
committerEli Zaretskii2005-12-10 10:29:22 +0000
commitd9f9aa720f0bb1ebfb3fd9e9e678da25c7bbf271 (patch)
treede0f6ec24950222b71294521e907b05fda3e2a4a /lisp/progmodes
parent1c398d7410e7b6738b5d31d6d1b3a97fae587898 (diff)
downloademacs-d9f9aa720f0bb1ebfb3fd9e9e678da25c7bbf271.tar.gz
emacs-d9f9aa720f0bb1ebfb3fd9e9e678da25c7bbf271.zip
(octave-electric-space): Don't indent comments or strings if
octave-auto-indent is nil.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/octave-mod.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el
index 0cda438fa6a..56dac972472 100644
--- a/lisp/progmodes/octave-mod.el
+++ b/lisp/progmodes/octave-mod.el
@@ -1311,7 +1311,8 @@ Maybe expand abbrevs and blink matching block open keywords.
1311Reindent the line of `octave-auto-indent' is non-nil." 1311Reindent the line of `octave-auto-indent' is non-nil."
1312 (interactive) 1312 (interactive)
1313 (setq last-command-char ? ) 1313 (setq last-command-char ? )
1314 (if (not (octave-not-in-string-or-comment-p)) 1314 (if (and octave-auto-indent
1315 (not (octave-not-in-string-or-comment-p)))
1315 (progn 1316 (progn
1316 (indent-according-to-mode) 1317 (indent-according-to-mode)
1317 (self-insert-command 1)) 1318 (self-insert-command 1))