]> git.eshelyaron.com Git - emacs.git/commitdiff
(octave-electric-space): Don't indent comments or strings if
authorEli Zaretskii <eliz@gnu.org>
Sat, 10 Dec 2005 10:29:22 +0000 (10:29 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Dec 2005 10:29:22 +0000 (10:29 +0000)
octave-auto-indent is nil.

lisp/ChangeLog
lisp/progmodes/octave-mod.el

index b0feea559e6d8ca01dc1ede039cb1157d849b990..39237924e11cbd8739977cc9cc7d27968c2c6b4d 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0cda438fa6ad4395478cd4505cc63c010aedc937..56dac972472ce9991cae7f8423c25796c04b9d44 100644 (file)
@@ -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))