Commit d9f9aa72 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(octave-electric-space): Don't indent comments or strings if

octave-auto-indent is nil.
parent 1c398d74
2005-12-10 John W. Eaton <jwe@octave.org>
* emacs/octave-mod.el (octave-electric-space): Don't indent
comments or strings if octave-auto-indent is nil.
2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
 
* term/mac-win.el: Require url when compiling. Call
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment