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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: Johan Walles <johan.walles@HIDDEN>; dated Tue, 14 Aug 2012 15:58:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Aug 2012 15:57:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 14 11:57:25 2012
Received: from localhost ([127.0.0.1]:56490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1T1JUi-0007TJ-O9
	for submit <at> debbugs.gnu.org; Tue, 14 Aug 2012 11:57:25 -0400
Received: from mail-lpp01m010-f44.google.com ([209.85.215.44]:46277)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <johan.walles@HIDDEN>) id 1T1BYx-0002Iy-D7
	for submit <at> debbugs.gnu.org; Tue, 14 Aug 2012 03:29:16 -0400
Received: by lahm15 with SMTP id m15so36137lah.3
	for <submit <at> debbugs.gnu.org>; Tue, 14 Aug 2012 00:20:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=GJf0OR6545BxId6wDyl+57tsrjkQToyJiSEnWGmfKv4=;
	b=NoBwZD+PWPkBfryuCJcB++moe2b2thuPEP0xYrwJjuvwILw+cG7Kin5sMcLOx7BpTb
	Bx4Jt0M7WptlX4Jf7bGNLypU8TUHgpxU6qjlH0ygcCWQ/r0DCXiqb53w+jTacCnXdGtL
	aHVbORqzcSkGLx7Dl4CpnRRPh8/q6FV07daChLOvdtX1HE9xVR7JXxydm7vVRjLsJCGy
	9sO/yFoUFqM0tkIg03FqgwVEPTg5sowNx9cvuz40geM66olqZ6iz7lOS/mtyP8NHxLTX
	Jq7teQ/ATXuKqlCzWGSME3/ToAHpGtZx+GY9lormrQ9B3cf0rGuRugkEPlb+/N5mKtSt
	cvLA==
MIME-Version: 1.0
Received: by 10.112.85.200 with SMTP id j8mr7453484lbz.41.1344928837832; Tue,
	14 Aug 2012 00:20:37 -0700 (PDT)
Received: by 10.112.9.132 with HTTP; Tue, 14 Aug 2012 00:20:37 -0700 (PDT)
Date: Tue, 14 Aug 2012 09:20:37 +0200
Message-ID: <CAKtyTbficngU7r+VufDT8eOZNbm9b2rOz3OZia62Mww24JmbHg@HIDDEN>
Subject: c-guess doesn't guess indent-tabs-mode
From: Johan Walles <johan.walles@HIDDEN>
To: submit <at> debbugs.gnu.org
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 14 Aug 2012 11:57:23 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Package: emacs
Version: 24.1.1

Hi Emacsers!

c-guess seems not to guess the correct value for indent-tabs-mode.

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)

Note:
In my case this makes c-guess much less useful than it could have
been, since I work on both tab and space indented files.

  Regards //Johan




Acknowledgement sent to Johan Walles <johan.walles@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#12199; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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