changeset 5557:91cdb5f1eeed

[project @ 2005-12-03 02:42:04 by jwe]
author jwe
date Sat, 03 Dec 2005 02:42:04 +0000
parents dc24a787b96b
children ec7b3ceb4bf2
files ChangeLog emacs/octave-mod.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-02  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-11-30  John W. Eaton  <jwe@octave.org>
 
 	* examples/Makefile.in (install install-strip): Install images and
--- a/emacs/octave-mod.el
+++ b/emacs/octave-mod.el
@@ -1329,7 +1329,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))