From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: Re: indent tabs mode appears to be broken in 22.1 Date: Fri, 22 Feb 2008 14:25:57 -0500 Organization: UseNetServer.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203708535 4930 80.91.229.12 (22 Feb 2008 19:28:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 19:28:55 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 22 20:29:16 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSdZ5-0003GL-6e for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2008 20:28:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSdYZ-0002AK-Ok for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2008 14:27:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSdYU-00029z-Vf for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2008 14:27:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSdYT-000291-FN for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2008 14:27:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSdYT-00028y-Ak for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2008 14:27:33 -0500 Original-Received: from moderators.individual.net ([130.133.4.7]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSdYS-0001tN-Ua for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2008 14:27:33 -0500 Original-Received: from eweka4.usenetserver.com ([208.49.80.204]) by moderators.individual.net (Exim 4.69) for gnu-emacs-bug@moderators.isc.org with esmtp (envelope-from ) id <1JSdWy-0006OL-3D>; Fri, 22 Feb 2008 20:26:00 +0100 Original-Received: from eweka4.usenetserver.com (eweka4.usenetserver.com [127.0.0.1]) by eweka4.usenetserver.com (8.12.11/8.12.11) with ESMTP id m1MJF3ZR027922 for ; Fri, 22 Feb 2008 19:15:03 GMT Original-Received: (from news@localhost) by eweka4.usenetserver.com (8.12.11/8.12.11/Submit) id m1MJF3Tg027921; Fri, 22 Feb 2008 19:15:03 GMT Original-Path: TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:09qI2WK5x6H2HnvWX9bCTHJYuw0= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 32 Original-X-Trace: b789a47bf1f366b5d383927919 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17563 Archived-At: > Intro: I loathe tabs > Problem: > My .emacs contains "(setq-default indent-tabs-mode nil)" globally and > again in cmode > " > (defun my-c-mode-common-hook () > ;; my customizations for all of c-mode and related modes > (c-set-offset 'substatement-open 0) > ;; other customizations can go here > (setq c-basic-offset 2) > (setq-default indent-tabs-mode nil) > ; (c-toggle-auto-hungry-state 1) > (c-toggle-hungry-state 1) > ) > " > How come when I select and then indent a buffer, it uses tabs? Can't reproduce it here. I did "emacs -Q foo.c" and then M-: (setq-default indent-tabs-mode nil) RET and then C-x h C-M-\ to reindent the whole buffer, and there was no TAB in sight (and yes, I did make sure that foo.c contains lines that need to be indented far enough for TABs to be useful). Note that reindenting the code with indent-tabs-mode==nil will not *remove* TABs that were there before. As for your other bug, please report it with M-x report-emacs-bug and a precise recipe to (try and) reproduce it. Stefan .