GNU bug report logs - #55862
Removing indent-tabs-mode set to t by default

Previous Next

Package: emacs;

Reported by: goncholden <goncholden <at> protonmail.com>

Date: Thu, 9 Jun 2022 03:20:02 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55862 in the body.
You can then email your comments to 55862 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 03:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to goncholden <goncholden <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 09 Jun 2022 03:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 03:19:01 +0000
[Message part 1 (text/plain, inline)]
Why is `indent-tabs-mode' t by default? Tabs should not be used.

I have been modifying bash scripts and the introduced tabs are driving me insane.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 05:39:01 GMT) Full text and rfc822 format available.

Message #8 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 08:38:08 +0300
> Date: Thu, 09 Jun 2022 03:19:01 +0000
> From:  goncholden via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Why is `indent-tabs-mode' t by default?  Tabs should not be used.

That depends on the major mode.  E.g., in text mode and its
derivatives this is turned off.  But in programming modes, many
languages accept TABs, so using them is not a bad idea, especially
since this is a long-standing Emacs default.

> I have been modifying bash scripts and the introduced tabs are driving me insane.

Maybe shell-mode should change its defaults, then.  I don't use that
too much, so I don't have an opinion.

Of course, arguing about defaults is many times futile, since changing
them is very easy.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 12:41:01 GMT) Full text and rfc822 format available.

Message #11 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 12:40:35 +0000
------- Original Message -------
On Thursday, June 9th, 2022 at 5:38 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:


> > Date: Thu, 09 Jun 2022 03:19:01 +0000
> > From: goncholden via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org
> >
> > Why is `indent-tabs-mode' t by default? Tabs should not be used.
>
>
> That depends on the major mode. E.g., in text mode and its
> derivatives this is turned off. But in programming modes, many
> languages accept TABs, so using them is not a bad idea, especially
> since this is a long-standing Emacs default.
>
> > I have been modifying bash scripts and the introduced tabs are driving me insane.
>
>
> Maybe shell-mode should change its defaults, then. I don't use that
> too much, so I don't have an opinion.
>
> Of course, arguing about defaults is many times futile, since changing
> them is very easy.
>

It is not so easy because one also has to make the change based on major mode.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 13:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 15:00:56 +0200
goncholden <goncholden <at> protonmail.com> writes:

> It is not so easy because one also has to make the change based on major mode.

You have to put the setting into the major mode hook where you're
interested in setting it.

We're not going to change any defaults in this area, because that would
break people's setups, and I'm therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 09 Jun 2022 13:02:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 55862 <at> debbugs.gnu.org and goncholden <goncholden <at> protonmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 09 Jun 2022 13:02:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 13:13:02 GMT) Full text and rfc822 format available.

Message #21 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 16:12:41 +0300
> Date: Thu, 09 Jun 2022 12:40:35 +0000
> From: goncholden <goncholden <at> protonmail.com>
> Cc: 55862 <at> debbugs.gnu.org
> 
> > Of course, arguing about defaults is many times futile, since changing
> > them is very easy.
> >
> 
> It is not so easy because one also has to make the change based on major mode.

Every major mode has a mode hook, and the usual way to customize a
mode is in that hook.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 13:36:02 GMT) Full text and rfc822 format available.

Message #24 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 55862 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 13:34:52 +0000
------- Original Message -------
On Friday, June 10th, 2022 at 1:00 AM, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:


> goncholden goncholden <at> protonmail.com writes:
>
> > It is not so easy because one also has to make the change based on major mode.
>
>
> You have to put the setting into the major mode hook where you're
> interested in setting it.

Fantastic!  Could you show me how I can do that exactly?

> We're not going to change any defaults in this area, because that would
> break people's setups, and I'm therefore closing this bug report.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 13:39:01 GMT) Full text and rfc822 format available.

Message #27 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 15:38:16 +0200
goncholden <goncholden <at> protonmail.com> writes:

> Fantastic!  Could you show me how I can do that exactly?

This is a bug tracker -- please use the Emacs help mailing lists for
questions like this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 14:07:01 GMT) Full text and rfc822 format available.

Message #30 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 14:05:49 +0000
A 2016 survey by Felipe Hoffa concluded that spaces far outpace tabs in every major programming language with the exceptions of C, one of the very oldest programming languages, and Google's Go.

It is worth reconsidering the decision to stick with tabs in future.  I do not know of any mechanism to show (with some symbol) the beginning of each tab and the end of a line when space happens at the end of a line.

https://hoffa.medium.com/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd#.o7n8zeezx


------- Original Message -------
On Friday, June 10th, 2022 at 1:12 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:


> > Date: Thu, 09 Jun 2022 12:40:35 +0000
> > From: goncholden goncholden <at> protonmail.com
> > Cc: 55862 <at> debbugs.gnu.org
> >
> > > Of course, arguing about defaults is many times futile, since changing
> > > them is very easy.
> >
> > It is not so easy because one also has to make the change based on major mode.
>
>
> Every major mode has a mode hook, and the usual way to customize a
> mode is in that hook.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 14:11:01 GMT) Full text and rfc822 format available.

Message #33 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>, goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 9 Jun 2022 17:10:12 +0300
On 09.06.2022 08:38, Eli Zaretskii wrote:
>> Date: Thu, 09 Jun 2022 03:19:01 +0000
>> From:  goncholden via "Bug reports for GNU Emacs,
>>   the Swiss army knife of text editors"<bug-gnu-emacs <at> gnu.org>
>>
>> Why is `indent-tabs-mode' t by default?  Tabs should not be used.
> That depends on the major mode.  E.g., in text mode and its
> derivatives this is turned off.  But in programming modes, many
> languages accept TABs, so using them is not a bad idea, especially
> since this is a long-standing Emacs default.
> 

It being a long-time default of ours has no effect on whether using tabs 
is a good idea (since Emacs is not particularly popular these days to 
affect global practive).

But you know my opinion on this anyway.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 14:12:02 GMT) Full text and rfc822 format available.

Message #36 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: goncholden <goncholden <at> protonmail.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 9 Jun 2022 17:11:39 +0300
On 09.06.2022 15:40, goncholden via Bug reports for GNU Emacs, the Swiss 
army knife of text editors wrote:
> It is not so easy because one also has to make the change based on major mode.

You can customize 'indent-tabs-mode' globally to nil, to use spaces in 
most language modes.

The ones that really need tabs (such as makefile-mode) will continue to 
use them anyway.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 14:19:01 GMT) Full text and rfc822 format available.

Message #39 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 55862 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 14:18:28 +0000

------- Original Message -------
On Friday, June 10th, 2022 at 2:11 AM, Dmitry Gutov <dgutov <at> yandex.ru> wrote:

> On 09.06.2022 15:40, goncholden via Bug reports for GNU Emacs, the Swiss
> army knife of text editors wrote:
>
> > It is not so easy because one also has to make the change based on major mode.
>
>
> You can customize 'indent-tabs-mode' globally to nil, to use spaces in
> most language modes.

If it is changed globally, I would think it would be a bad idea for major modes that require tabs.  Can use setq-default perhaps.

> The ones that really need tabs (such as makefile-mode) will continue to
> use them anyway.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 14:22:02 GMT) Full text and rfc822 format available.

Message #42 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 55862 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 14:21:33 +0000
------- Original Message -------
On Friday, June 10th, 2022 at 2:10 AM, Dmitry Gutov <dgutov <at> yandex.ru> wrote:


> On 09.06.2022 08:38, Eli Zaretskii wrote:
>
> > > Date: Thu, 09 Jun 2022 03:19:01 +0000
> > > From: goncholden via "Bug reports for GNU Emacs,
> > > the Swiss army knife of text editors"bug-gnu-emacs <at> gnu.org
> > >
> > > Why is `indent-tabs-mode' t by default? Tabs should not be used.
> > > That depends on the major mode. E.g., in text mode and its
> > > derivatives this is turned off. But in programming modes, many
> > > languages accept TABs, so using them is not a bad idea, especially
> > > since this is a long-standing Emacs default.
>
>
> It being a long-time default of ours has no effect on whether using tabs
> is a good idea (since Emacs is not particularly popular these days to
> affect global practive).
>
> But you know my opinion on this anyway.

This has been a continual problem with emacs as it mostly caters for passed-over old folks stuck in the eigthies.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 14:31:02 GMT) Full text and rfc822 format available.

Message #45 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 9 Jun 2022 17:30:17 +0300
On 09.06.2022 17:18, goncholden wrote:
> If it is changed globally, I would think it would be a bad idea for major modes that require tabs.  Can use setq-default perhaps.

You seem to have missed the last sentence in my email.

And customization does have a similar effect to setq-default.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 15:54:02 GMT) Full text and rfc822 format available.

Message #48 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, larsi <at> gnus.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 18:53:39 +0300
> Date: Thu, 09 Jun 2022 13:34:52 +0000
> From: goncholden <goncholden <at> protonmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 55862 <at> debbugs.gnu.org
> 
> > You have to put the setting into the major mode hook where you're
> > interested in setting it.
> 
> Fantastic!  Could you show me how I can do that exactly?

Something like this:

 (defun my-FOO-stuff ()
   (setq indent-tabs-mode nil)
 (add-hook 'FOO-mode-hook 'my-FOO-stuff)

(Replace "FOO" with the actual mode name.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:04:02 GMT) Full text and rfc822 format available.

Message #51 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 19:03:08 +0300
> Date: Thu, 09 Jun 2022 14:05:49 +0000
> From: goncholden <goncholden <at> protonmail.com>
> Cc: 55862 <at> debbugs.gnu.org
> 
> I do not know of any mechanism to show (with some symbol) the beginning of each tab and the end of a line when space happens at the end of a line.

Try "M-x whitespace-mode RET".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:07:01 GMT) Full text and rfc822 format available.

Message #54 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 19:06:00 +0300
> Date: Thu, 09 Jun 2022 14:21:33 +0000
> From: goncholden <goncholden <at> protonmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 55862 <at> debbugs.gnu.org
> 
> This has been a continual problem with emacs as it mostly caters for passed-over old folks stuck in the eigthies.

The crowd of youngsters from 2020s are welcome to come aboard in their
masses and take over from the old farts.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:07:02 GMT) Full text and rfc822 format available.

Message #57 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: goncholden <goncholden <at> protonmail.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: "55862 <at> debbugs.gnu.org" <55862 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#55862: Removing indent-tabs-mode set to t by
 default
Date: Thu, 9 Jun 2022 16:06:20 +0000
> It is worth reconsidering the decision to stick with tabs in future.  I
> do not know of any mechanism to show (with some symbol) the beginning
> of each tab and the end of a line when space happens at the end of a
> line.

FWIW: You can use my library `highlight-chars.el'
to highlight TAB chars (or any chars) individually:

  M-x hc-highlight-chars
  TAB
  [enter the face you want for it]

Use `hc-toggle-highlight-trailing-whitespace' to
highlight trailing whitespace with a different face.

But as the code stands now, trailing whitespace
includes TAB chars.  As a quick hack you can edit
`hc-highlight-trailing-whitespace' to remove TAB
chars from the (hard-coded, so far) regexp of chars
to match:

(font-lock-add-keywords
  nil
  `(("[\u00a0\040\t]+$"   ; <===== Remove \t
     (0 'hc-trailing-whitespace
        ,hc-font-lock-override)))
  'APPEND)

https://www.emacswiki.org/emacs/ShowWhiteSpace#HighlightChars

https://www.emacswiki.org/emacs/download/highlight-chars.el

[FWIW2: I'm one of the many who think the default
 should be changed to nil.  There was a fair
 amount of discussion, but t carried the day.]  

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:33:02 GMT) Full text and rfc822 format available.

Message #60 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55862 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 16:32:07 +0000
------- Original Message -------
On Friday, June 10th, 2022 at 4:06 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:


> > Date: Thu, 09 Jun 2022 14:21:33 +0000
> > From: goncholden goncholden <at> protonmail.com
> > Cc: Eli Zaretskii eliz <at> gnu.org, 55862 <at> debbugs.gnu.org
> >
> > This has been a continual problem with emacs as it mostly caters for passed-over old folks stuck in the eigthies.
>
>
> The crowd of youngsters from 2020s are welcome to come aboard in their
> masses and take over from the old farts.

I am from the seventies actually.  The youngsters will take over but maintainers should be forward thinking.  Else things would stay put even when they take over.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:37:02 GMT) Full text and rfc822 format available.

Message #63 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "55862 <at> debbugs.gnu.org" <55862 <at> debbugs.gnu.org>,
 Eli Zaretskii <eliz <at> gnu.org>
Subject: RE: [External] : bug#55862: Removing indent-tabs-mode set to t by
 default
Date: Thu, 09 Jun 2022 16:35:35 +0000
Sent with Proton Mail secure email.
------- Original Message -------

On Friday, June 10th, 2022 at 4:06 AM, Drew Adams <drew.adams <at> oracle.com> wrote:


> > It is worth reconsidering the decision to stick with tabs in future. I
> > do not know of any mechanism to show (with some symbol) the beginning
> > of each tab and the end of a line when space happens at the end of a
> > line.
>
>
> FWIW: You can use my library `highlight-chars.el' to highlight TAB chars (or any chars) individually: M-x hc-highlight-chars TAB [enter the face you want for it] Use` hc-toggle-highlight-trailing-whitespace' to
> highlight trailing whitespace with a different face.
>
> But as the code stands now, trailing whitespace
> includes TAB chars. As a quick hack you can edit
> `hc-highlight-trailing-whitespace' to remove TAB chars from the (hard-coded, so far) regexp of chars to match: (font-lock-add-keywords nil` (("[\u00a0\040\t]+$" ; <===== Remove \t
> (0 'hc-trailing-whitespace
> ,hc-font-lock-override)))
> 'APPEND)
>
> https://www.emacswiki.org/emacs/ShowWhiteSpace#HighlightChars
>
> https://www.emacswiki.org/emacs/download/highlight-chars.el
>
> [FWIW2: I'm one of the many who think the default
> should be changed to nil. There was a fair
> amount of discussion, but t carried the day.]

What about visws.el ?  Have tried using it but cannot get it to function.  I have done as follows and emacs did not respond well to it.

(defun visws ()
 "TODO"

 (add-to-list
 'load-path "~/contrib/visws")
 (require 'visible-whitespace-mode)
 (visible-whitespace-mode))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:45:01 GMT) Full text and rfc822 format available.

Message #66 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55862 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 16:44:27 +0000
------- Original Message -------
On Friday, June 10th, 2022 at 4:06 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:


> > Date: Thu, 09 Jun 2022 14:21:33 +0000
> > From: goncholden goncholden <at> protonmail.com
> > Cc: Eli Zaretskii eliz <at> gnu.org, 55862 <at> debbugs.gnu.org
> >
> > This has been a continual problem with emacs as it mostly caters for passed-over old folks stuck in the eigthies.
>
>
> The crowd of youngsters from 2020s are welcome to come aboard in their
> masses and take over from the old farts.

The problem occurs mainly because tab widths are not consistent.  As is known, tab widths relate directly with spaces, but that information is lost.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:53:02 GMT) Full text and rfc822 format available.

Message #69 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 19:52:46 +0300
> Date: Thu, 09 Jun 2022 16:32:07 +0000
> From: goncholden <goncholden <at> protonmail.com>
> Cc: dgutov <at> yandex.ru, 55862 <at> debbugs.gnu.org
> 
> ------- Original Message -------
> On Friday, June 10th, 2022 at 4:06 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
> 
> > > Date: Thu, 09 Jun 2022 14:21:33 +0000
> > > From: goncholden goncholden <at> protonmail.com
> > > Cc: Eli Zaretskii eliz <at> gnu.org, 55862 <at> debbugs.gnu.org
> > >
> > > This has been a continual problem with emacs as it mostly caters for passed-over old folks stuck in the eigthies.
> >
> >
> > The crowd of youngsters from 2020s are welcome to come aboard in their
> > masses and take over from the old farts.
> 
> I am from the seventies actually.  The youngsters will take over but maintainers should be forward thinking.

We do: I'm from the fifties.  So by being stuck in the eighties, I'm
looking forward 30 years -- not bad for an old grunt such as myself.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 16:59:02 GMT) Full text and rfc822 format available.

Message #72 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55862 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 09 Jun 2022 19:58:17 +0300
> Date: Thu, 09 Jun 2022 16:44:27 +0000
> From: goncholden <goncholden <at> protonmail.com>
> Cc: dgutov <at> yandex.ru, 55862 <at> debbugs.gnu.org
> 
> The problem occurs mainly because tab widths are not consistent.  As is known, tab widths relate directly with spaces, but that information is lost.

If you work in an environment where people change the visual width of
TABs, then indeed you will want not to use TABs.  But that is not a
given.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55862; Package emacs. (Thu, 09 Jun 2022 17:42:02 GMT) Full text and rfc822 format available.

Message #75 received at 55862 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>, Eli Zaretskii <eliz <at> gnu.org>, goncholden
 <goncholden <at> protonmail.com>
Cc: "55862 <at> debbugs.gnu.org" <55862 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#55862: Removing indent-tabs-mode set to t by
 default
Date: Thu, 9 Jun 2022 17:41:18 +0000
> It being a long-time default of ours has no effect on whether using
> tabs is a good idea (since Emacs is not particularly popular these days to
> affect global practive).
> 
> But you know my opinion on this anyway.

As long as reasons are being given, let me add this one:

People copy bits of code and paste that text into places
other than Emacs - online Q&A forums, email, etc.

TAB chars here and there due to `indent-tabs-mode' force
users to manually reformat the code - or at least to have
known about and thought to use `M-x untabify' beforehand.

This ex-Emacs use case is likely larger today than it was
decades ago.  Defaulting the var to t just produces more
bother and annoyance, especially for newbies (who are
less likely to use `untabify').

Just one more reason why the current default is not ideal.

Not that posting this here will help.  Except that it
might bring it to the attention of a few readers to whom
it might not have occurred.  


bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 08 Jul 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.