unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "håkan engblom" <hkengblom@gmail.com>
Cc: 65349@debbugs.gnu.org
Subject: bug#65349: 29.1; "setq-default indent-tabs-mode nil" seem to be ignored
Date: Thu, 17 Aug 2023 17:06:28 +0300	[thread overview]
Message-ID: <83fs4h69wb.fsf@gnu.org> (raw)
In-Reply-To: <CAOyp8UXPqrghDvnu8rckrArtOzm3H1bgzYkZyw2=fSr2KtiTwA@mail.gmail.com> (message from håkan engblom on Thu, 17 Aug 2023 14:09:26 +0200)

> From: håkan engblom <hkengblom@gmail.com>
> Date: Thu, 17 Aug 2023 14:09:26 +0200
> 
> I'm using Ubuntu 20.04 and the emacs version is:
> 
> GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of
> 2023-08-04
> 
> as seen when I look the emacs-menu help->About Emacs
> 
> In my .emacs file this line is present:
> 
> (setq-default indent-tabs-mode nil)
> 
> which, as far as I understand, shall make the default setting of this variable (indent-tabs-mode) to be
> disabled, i.e. instead of inserting a tab in the code-file, it shall insert a number of spaces, four to be
> exact, according to this line in .emacs:
> 
> (setq-default tab-width 4)
> 
> This is what I want, and it has worked fine until recently. What I get now is that emacs insert a tab (\t)
> character instead. I suspect that it broke during some upgrade of emacs, judging from the build date
> of emacs it is updated recently, 2023-08-04

I cannot reproduce this in Emacs 29.1.  What happens if you start
Emacs as "emacs -Q" and then type

  M-: (setq-default indent-tabs-mode nil) RET

Does then every buffer you create and every file you visit have
indent-tabs-mode set to nil?  That's what happens to me, and that's
what I expect.

If this works as expected in "emacs -Q", then something in your
customizations causes the problem, and you should bisect your
customizations to find which of them does that.

> So it seems to me the problem is that the default setting of this variable is ignored.

It isn't ignored on my system.





  reply	other threads:[~2023-08-17 14:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-17 12:09 bug#65349: 29.1; "setq-default indent-tabs-mode nil" seem to be ignored håkan engblom
2023-08-17 14:06 ` Eli Zaretskii [this message]
     [not found]   ` <CAOyp8UXZAfWCxpZt6WqL+ExtYYOGfMrXh2WYbtLb07f03jGJpg@mail.gmail.com>
2023-08-17 18:02     ` Eli Zaretskii

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=83fs4h69wb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=65349@debbugs.gnu.org \
    --cc=hkengblom@gmail.com \
    /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).