unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55862: Removing indent-tabs-mode set to t by default
@ 2022-06-09  3:19 goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09  5:38 ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09  3:19 UTC (permalink / raw)
  To: 55862

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 721 bytes --]

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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09  3:19 bug#55862: Removing indent-tabs-mode set to t by default goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09  5:38 ` Eli Zaretskii
  2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 14:10   ` Dmitry Gutov
  0 siblings, 2 replies; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09  5:38 UTC (permalink / raw)
  To: goncholden; +Cc: 55862

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





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09  5:38 ` Eli Zaretskii
@ 2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:00     ` Lars Ingebrigtsen
                       ` (2 more replies)
  2022-06-09 14:10   ` Dmitry Gutov
  1 sibling, 3 replies; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 12:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 55862


------- Original Message -------
On Thursday, June 9th, 2022 at 5:38 PM, Eli Zaretskii <eliz@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@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.






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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 13:00     ` Lars Ingebrigtsen
  2022-06-09 13:34       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:12     ` Eli Zaretskii
  2022-06-09 14:11     ` Dmitry Gutov
  2 siblings, 1 reply; 23+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-09 13:00 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, Eli Zaretskii

goncholden <goncholden@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





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:00     ` Lars Ingebrigtsen
@ 2022-06-09 13:12     ` Eli Zaretskii
  2022-06-09 14:05       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 14:11     ` Dmitry Gutov
  2 siblings, 1 reply; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09 13:12 UTC (permalink / raw)
  To: goncholden; +Cc: 55862

> Date: Thu, 09 Jun 2022 12:40:35 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 13:00     ` Lars Ingebrigtsen
@ 2022-06-09 13:34       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:38         ` Lars Ingebrigtsen
  2022-06-09 15:53         ` Eli Zaretskii
  0 siblings, 2 replies; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 13:34 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 55862, Eli Zaretskii


------- Original Message -------
On Friday, June 10th, 2022 at 1:00 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:


> goncholden goncholden@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





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 13:34       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 13:38         ` Lars Ingebrigtsen
  2022-06-09 15:53         ` Eli Zaretskii
  1 sibling, 0 replies; 23+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-09 13:38 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, Eli Zaretskii

goncholden <goncholden@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





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 13:12     ` Eli Zaretskii
@ 2022-06-09 14:05       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 16:03         ` Eli Zaretskii
  2022-06-09 16:06         ` Drew Adams
  0 siblings, 2 replies; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 14:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 55862

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@gnu.org> wrote:


> > Date: Thu, 09 Jun 2022 12:40:35 +0000
> > From: goncholden goncholden@protonmail.com
> > Cc: 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09  5:38 ` Eli Zaretskii
  2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 14:10   ` Dmitry Gutov
  2022-06-09 14:21     ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 17:41     ` Drew Adams
  1 sibling, 2 replies; 23+ messages in thread
From: Dmitry Gutov @ 2022-06-09 14:10 UTC (permalink / raw)
  To: Eli Zaretskii, goncholden; +Cc: 55862

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





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:00     ` Lars Ingebrigtsen
  2022-06-09 13:12     ` Eli Zaretskii
@ 2022-06-09 14:11     ` Dmitry Gutov
  2022-06-09 14:18       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 1 reply; 23+ messages in thread
From: Dmitry Gutov @ 2022-06-09 14:11 UTC (permalink / raw)
  To: goncholden, Eli Zaretskii; +Cc: 55862

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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:11     ` Dmitry Gutov
@ 2022-06-09 14:18       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 14:30         ` Dmitry Gutov
  0 siblings, 1 reply; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 14:18 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: 55862, Eli Zaretskii



------- Original Message -------
On Friday, June 10th, 2022 at 2:11 AM, Dmitry Gutov <dgutov@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:10   ` Dmitry Gutov
@ 2022-06-09 14:21     ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 16:06       ` Eli Zaretskii
  2022-06-09 17:41     ` Drew Adams
  1 sibling, 1 reply; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 14:21 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: 55862, Eli Zaretskii


------- Original Message -------
On Friday, June 10th, 2022 at 2:10 AM, Dmitry Gutov <dgutov@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@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.






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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:18       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 14:30         ` Dmitry Gutov
  0 siblings, 0 replies; 23+ messages in thread
From: Dmitry Gutov @ 2022-06-09 14:30 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, Eli Zaretskii

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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 13:34       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 13:38         ` Lars Ingebrigtsen
@ 2022-06-09 15:53         ` Eli Zaretskii
  1 sibling, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09 15:53 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, larsi

> Date: Thu, 09 Jun 2022 13:34:52 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 55862@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.)





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:05       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 16:03         ` Eli Zaretskii
  2022-06-09 16:06         ` Drew Adams
  1 sibling, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09 16:03 UTC (permalink / raw)
  To: goncholden; +Cc: 55862

> Date: Thu, 09 Jun 2022 14:05:49 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: 55862@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".





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:21     ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 16:06       ` Eli Zaretskii
  2022-06-09 16:32         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 16:44         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09 16:06 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, dgutov

> Date: Thu, 09 Jun 2022 14:21:33 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:05       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 16:03         ` Eli Zaretskii
@ 2022-06-09 16:06         ` Drew Adams
  2022-06-09 16:35           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 23+ messages in thread
From: Drew Adams @ 2022-06-09 16:06 UTC (permalink / raw)
  To: goncholden, Eli Zaretskii; +Cc: 55862@debbugs.gnu.org

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

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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 16:06       ` Eli Zaretskii
@ 2022-06-09 16:32         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 16:52           ` Eli Zaretskii
  2022-06-09 16:44         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 16:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 55862, dgutov

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


> > Date: Thu, 09 Jun 2022 14:21:33 +0000
> > From: goncholden goncholden@protonmail.com
> > Cc: Eli Zaretskii eliz@gnu.org, 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 16:06         ` Drew Adams
@ 2022-06-09 16:35           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 16:35 UTC (permalink / raw)
  To: Drew Adams; +Cc: 55862@debbugs.gnu.org, Eli Zaretskii

Sent with Proton Mail secure email.
------- Original Message -------

On Friday, June 10th, 2022 at 4:06 AM, Drew Adams <drew.adams@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))





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 16:06       ` Eli Zaretskii
  2022-06-09 16:32         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 16:44         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-09 16:58           ` Eli Zaretskii
  1 sibling, 1 reply; 23+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 16:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 55862, dgutov


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


> > Date: Thu, 09 Jun 2022 14:21:33 +0000
> > From: goncholden goncholden@protonmail.com
> > Cc: Eli Zaretskii eliz@gnu.org, 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 16:32         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 16:52           ` Eli Zaretskii
  0 siblings, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09 16:52 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, dgutov

> Date: Thu, 09 Jun 2022 16:32:07 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: dgutov@yandex.ru, 55862@debbugs.gnu.org
> 
> ------- Original Message -------
> On Friday, June 10th, 2022 at 4:06 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
> 
> > > Date: Thu, 09 Jun 2022 14:21:33 +0000
> > > From: goncholden goncholden@protonmail.com
> > > Cc: Eli Zaretskii eliz@gnu.org, 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 16:44         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 16:58           ` Eli Zaretskii
  0 siblings, 0 replies; 23+ messages in thread
From: Eli Zaretskii @ 2022-06-09 16:58 UTC (permalink / raw)
  To: goncholden; +Cc: 55862, dgutov

> Date: Thu, 09 Jun 2022 16:44:27 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: dgutov@yandex.ru, 55862@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.





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

* bug#55862: Removing indent-tabs-mode set to t by default
  2022-06-09 14:10   ` Dmitry Gutov
  2022-06-09 14:21     ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-09 17:41     ` Drew Adams
  1 sibling, 0 replies; 23+ messages in thread
From: Drew Adams @ 2022-06-09 17:41 UTC (permalink / raw)
  To: Dmitry Gutov, Eli Zaretskii, goncholden; +Cc: 55862@debbugs.gnu.org

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


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

end of thread, other threads:[~2022-06-09 17:41 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  3:19 bug#55862: Removing indent-tabs-mode set to t by default goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09  5:38 ` Eli Zaretskii
2022-06-09 12:40   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 13:00     ` Lars Ingebrigtsen
2022-06-09 13:34       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 13:38         ` Lars Ingebrigtsen
2022-06-09 15:53         ` Eli Zaretskii
2022-06-09 13:12     ` Eli Zaretskii
2022-06-09 14:05       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 16:03         ` Eli Zaretskii
2022-06-09 16:06         ` Drew Adams
2022-06-09 16:35           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 14:11     ` Dmitry Gutov
2022-06-09 14:18       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 14:30         ` Dmitry Gutov
2022-06-09 14:10   ` Dmitry Gutov
2022-06-09 14:21     ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 16:06       ` Eli Zaretskii
2022-06-09 16:32         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 16:52           ` Eli Zaretskii
2022-06-09 16:44         ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-09 16:58           ` Eli Zaretskii
2022-06-09 17:41     ` Drew Adams

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