From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12199: c-guess doesn't guess indent-tabs-mode Date: Tue, 01 Jun 2021 15:01:42 +0300 Message-ID: <83eedl23q1.fsf@gnu.org> References: <87pmx6ca14.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20846"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 12199@debbugs.gnu.org, johan.walles@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 14:04:05 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lo37s-0005C7-TN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 14:04:04 +0200 Original-Received: from localhost ([::1]:43622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo37r-0007Lc-SN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 08:04:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo36s-00070s-7A for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 08:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo36r-0005sU-Qt; Tue, 01 Jun 2021 08:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lo36r-0005od-O6; Tue, 01 Jun 2021 08:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 01 Jun 2021 12:03: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.162254892522266 (code B ref 12199); Tue, 01 Jun 2021 12:03:01 +0000 Original-Received: (at 12199) by debbugs.gnu.org; 1 Jun 2021 12:02:05 +0000 Original-Received: from localhost ([127.0.0.1]:35887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo35x-0005n3-AO for submit@debbugs.gnu.org; Tue, 01 Jun 2021 08:02:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo35w-0005ma-Bv for 12199@debbugs.gnu.org; Tue, 01 Jun 2021 08:02:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53950) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo35q-0005NA-Ff; Tue, 01 Jun 2021 08:01:58 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2075 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo35p-0002sk-I9; Tue, 01 Jun 2021 08:01:58 -0400 In-Reply-To: <87pmx6ca14.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 01 Jun 2021 09:35:19 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207771 Archived-At: > From: Lars Ingebrigtsen > Date: Tue, 01 Jun 2021 09:35:19 +0200 > Cc: Alan Mackenzie , 12199@debbugs.gnu.org > > > 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.) AFAICT, c-guess.el doesn't try to guess the value of indent-tabs-mode, it only guesses indentation parameters specific to CC Mode. IOW, this feature, if it belongs to c-guess.el, was never implemented.