diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-12-10 10:29:22 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-12-10 10:29:22 +0000 |
commit | d9f9aa720f0bb1ebfb3fd9e9e678da25c7bbf271 (patch) | |
tree | de0f6ec24950222b71294521e907b05fda3e2a4a /lisp/progmodes/octave-mod.el | |
parent | 1c398d7410e7b6738b5d31d6d1b3a97fae587898 (diff) | |
download | emacs-d9f9aa720f0bb1ebfb3fd9e9e678da25c7bbf271.tar.gz |
(octave-electric-space): Don't indent comments or strings if
octave-auto-indent is nil.
Diffstat (limited to 'lisp/progmodes/octave-mod.el')
-rw-r--r-- | lisp/progmodes/octave-mod.el | 3 |
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. 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)) |