unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: gnu-emacs-bug@moderators.isc.org
Subject: Re: indent tabs mode appears to be broken in 22.1
Date: Fri, 22 Feb 2008 14:25:57 -0500	[thread overview]
Message-ID: <jwvejb4n6dc.fsf-monnier+gnu.emacs.bug@gnu.org> (raw)
In-Reply-To: mailman.7763.1203649174.18990.bug-gnu-emacs@gnu.org

> 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
.




       reply	other threads:[~2008-02-22 19:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7763.1203649174.18990.bug-gnu-emacs@gnu.org>
2008-02-22 19:25 ` Stefan Monnier [this message]
2008-02-21 19:38 indent tabs mode appears to be broken in 22.1 Michael Linck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvejb4n6dc.fsf-monnier+gnu.emacs.bug@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=gnu-emacs-bug@moderators.isc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).