On  2-Dec-2005, Frederik Eaton wrote:

| Package: octave2.9-emacsen
| Version: 2.9.4-8
| Severity: normal
| 
| I have "Auto Indent" set to "off" in the octave customization group
| but when I type a "#" character it still ends up indented by 32
| columns. I would like to make octave-mode stop doing this so that I
| can easily type unindented comments, but I can't figure out what the
| proper configuration variable is.
| 
| Here is a clip from the customization buffer:
| 
| Auto Indent: [Hide] [Toggle]  off (nil) 
|    [State]: this option is unchanged from its standard setting. 
| Non-nil means indent line after a semicolon or space in Octave mode. 

Please try the following patch.

Thanks,

jwe


ChangeLog:

2005-12-02  John W. Eaton  <[EMAIL PROTECTED]>

        * emacs/octave-mod.el (octave-electric-space): Don't indent
        comments or strings if octave-auto-indent is nil.


Index: emacs/octave-mod.el
===================================================================
RCS file: /cvs/octave/emacs/octave-mod.el,v
retrieving revision 1.37
diff -u -r1.37 octave-mod.el
--- emacs/octave-mod.el 30 Nov 2005 03:04:45 -0000      1.37
+++ emacs/octave-mod.el 3 Dec 2005 02:40:11 -0000
@@ -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))



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to