unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* indent tabs mode appears to be broken in 22.1
@ 2008-02-21 19:38 Michael Linck
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Linck @ 2008-02-21 19:38 UTC (permalink / raw)
  To: bug-gnu-emacs

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?  Has it
always done that?  I seem to recall old versions of emacs not giving me
this problem.  Seems pretty awful.

Also, this version of emacs seems to crash a lot.  Any time you click
the mouse into the little action text field at the bottom of the emacs
window, there seems to be a fairly high likelyhood of it just folding up
instantly.  But if you're going to fix one first, I actually think the
tab thing is far more annoying :)

mike





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: indent tabs mode appears to be broken in 22.1
       [not found] <mailman.7763.1203649174.18990.bug-gnu-emacs@gnu.org>
@ 2008-02-22 19:25 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-02-22 19:25 UTC (permalink / raw)
  To: gnu-emacs-bug

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-22 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-21 19:38 indent tabs mode appears to be broken in 22.1 Michael Linck
     [not found] <mailman.7763.1203649174.18990.bug-gnu-emacs@gnu.org>
2008-02-22 19:25 ` Stefan Monnier

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