[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent tabs mode appears to be broken in 22.1
From: |
Stefan Monnier |
Subject: |
Re: indent tabs mode appears to be broken in 22.1 |
Date: |
Fri, 22 Feb 2008 14:25:57 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> 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
.