GNU bug report logs - #15478
cc-mode does not obey electric-indent-mode

Previous Next

Packages: cc-mode, emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Sat, 28 Sep 2013 18:12:02 UTC

Severity: normal

Found in version 24.3.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: gnu-emacs-bug <at> moderators.isc.org
Subject: bug#15478: cc-mode does not obey electric-indent-mode
Date: Sat, 5 Oct 2013 17:06:46 +0000 (UTC)
Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>> The global default should be On for C and Off for Python.

> There's a problem in your sentence: global means "for all modes",
> whereas you only talk about C and Python.

:-).  Then please consider that last sentence of mine modified by
removing "global" from it.

> My opinion is: default for python-mode should be off (I think we all agree
> here) and default for cc-mode should be the same as the global default.

Yes, we agree about python-mode.  The default for CC Mode must be on,
otherwise automatic indentation is broken.

> What the global default should be is another discussion.

In the sense we now agree upon, there shouldn't be a global default,
just as there isn't a global default for `font-lock-keywords'.

>>> Whereas this bug report is about changing cc-mode to follow the
>>> global preference, whichever way it's set.

>> If it's been set.

> No: even if it's not been set by the user.

If it's not been explicitly disabled by the user, electric indentation
must be on in CC Mode.  Otherwise automatic indentation doesn't work.

>        Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).





This bug report was last modified 11 years and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.