From d9f9aa720f0bb1ebfb3fd9e9e678da25c7bbf271 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 10 Dec 2005 10:29:22 +0000 Subject: [PATCH] (octave-electric-space): Don't indent comments or strings if octave-auto-indent is nil. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/octave-mod.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b0feea559e6..39237924e11 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-12-10 John W. Eaton + + * emacs/octave-mod.el (octave-electric-space): Don't indent + comments or strings if octave-auto-indent is nil. + 2005-12-10 YAMAMOTO Mitsuharu * term/mac-win.el: Require url when compiling. Call 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)) -- 2.39.2