GNU bug report logs - #12199
c-guess doesn't guess indent-tabs-mode

Previous Next

Packages: emacs, cc-mode;

Reported by: Johan Walles <johan.walles <at> gmail.com>

Date: Tue, 14 Aug 2012 15:58:01 UTC

Severity: normal

Found in versions 26.1, 24.1.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Johan Walles <johan.walles <at> gmail.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 12199 <at> debbugs.gnu.org
Subject: bug#12199: c-guess doesn't guess indent-tabs-mode
Date: Tue, 01 Jun 2021 09:35:19 +0200
[Message part 1 (text/plain, inline)]
Johan Walles <johan.walles <at> gmail.com> writes:

> Try this:
> 1. Set indent-tabs-mode to nil.
> 2. Load a C file indented with tabs.
> 3. c-guess
> 4. Do describe-variable on indent-tabs-mode
>
> Current result:
> "Its value is nil"
>
> Expected result:
> "Its value is t" (since c-guess should have noticed that tabs are used
> for indentation)

This still seems to be the case in Emacs 28.

I've included my test file here.  Perhaps Alan has some insights here?
(Added to the CCs.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no
[indent.c (text/x-csrc, inline)]
main () {
	foo();
	bar();
}

This bug report was last modified 4 years and 50 days ago.

Previous Next


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