From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#12199: c-guess doesn't guess indent-tabs-mode Date: Thu, 31 Oct 2019 00:28:20 +0100 Message-ID: <87mudhvmnf.fsf@joffe.skangas.se> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="5448"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 12199@debbugs.gnu.org To: Johan Walles Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 31 00:29:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPxOq-0001Iu-ET for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 00:29:12 +0100 Original-Received: from localhost ([::1]:45352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPxOp-0007xq-4f for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 19:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50675) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPxOi-0007vn-KQ for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 19:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPxOh-0000dM-LF for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 19:29:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPxOf-0000YK-Sp; Wed, 30 Oct 2019 19:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPxOf-0002T6-Nz; Wed, 30 Oct 2019 19:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 30 Oct 2019 23:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12199 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 12199-submit@debbugs.gnu.org id=B12199.15724781279452 (code B ref 12199); Wed, 30 Oct 2019 23:29:01 +0000 Original-Received: (at 12199) by debbugs.gnu.org; 30 Oct 2019 23:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:51869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPxOR-0002SM-Ev for submit@debbugs.gnu.org; Wed, 30 Oct 2019 19:28:47 -0400 Original-Received: from giraff.fripost.org ([193.234.15.44]:42500 helo=outgoing.fripost.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPxOP-0002Ry-6E; Wed, 30 Oct 2019 19:28:45 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 681E8187EC8F; Thu, 31 Oct 2019 00:28:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=x.fripost.org; h= content-type:content-type:mime-version:user-agent:message-id :in-reply-to:date:date:references:subject:subject:from:from; s= 9df9cdc7e101629b5003b587945afa70; t=1572478119; x=1574292520; bh=bIu7OIm3mgwTt2i6wy/bE2psTK/3m/an18lxARkbwX4=; b=do0pr1WjkFtO 48VjHPV3cJafeI5gtH0LpCBO0KBUYEIjXspm+NKh4e6FUEPG4d13Dmd8TCB0x9Go 8xZLTgc7YYBY7mna5XWmXmb9J+DNSz/gVtLiHOatq5C6hRXn1f45qa8ciHjXldp/ VQ/Fz5JPHx5n41ADWJmZ1XoZWQxOuejp47EzYIzstSbjqnRm5IUjKfjw8yeNKyL0 BDyvDuwD+lBiSOPFrLrAvYmLHKi9pdEq8NUrIbmhOiKn73lPhbVU23Fye7DeDaq3 C4ClqnvK7tM2Ja8/Eb6FKRtcFpwfsfwZdX1RXvzaEI3eC0C/7xlYYasGGGcd8y2h oHM4055tHw== X-Virus-Scanned: Debian amavisd-new at fripost.org Original-Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id c3HvpYxwMC8H; Thu, 31 Oct 2019 00:28:39 +0100 (CET) Original-Received: from smtp.fripost.org (unknown [172.16.0.6]) by outgoing.fripost.org (Postfix) with ESMTP id 48689187EC8B; Thu, 31 Oct 2019 00:28:39 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by smtp.fripost.org (Postfix) with ESMTPSA id 0ED1759A04D9; Thu, 31 Oct 2019 00:28:29 +0100 (CET) Original-Received: from skangas by joffe.skangas.se with local (Exim 4.92) (envelope-from ) id 1iPxO0-0007uR-CF; Thu, 31 Oct 2019 00:28:20 +0100 In-Reply-To: (Johan Walles's message of "Tue, 14 Aug 2012 09:20:37 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170488 Archived-At: found 12199 26.1 thanks Johan Walles writes: > 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 I can reproduce this on Emacs 26.1. I'm not sure if this is a bug or a feature request. Best regards, Stefan Kangas