unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Dmitry Gutov <dgutov@yandex.ru>
Cc: "philipk@posteo.net" <philipk@posteo.net>,
	"danflscr@gmail.com" <danflscr@gmail.com>,
	"rms@gnu.org" <rms@gnu.org>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>,
	"monnier@iro.umontreal.ca" <monnier@iro.umontreal.ca>,
	"john@yates-sheets.org" <john@yates-sheets.org>
Subject: indent-tabs-mode default [was: Representation of the Emacs userbase on emacs-devel]
Date: Fri, 3 Sep 2021 17:49:43 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488954AAB0694701583B5D4F3CF9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)

I'll just mention this reason that `indent-tabs-mode'
should be OFF by default "nowadays".  It's a reason
that wasn't so strong in past years, I think.

With it OFF, code copied from Emacs (vanilla, 3rd-party,
or just code someone tossed off in *scratch*) and pasted
into online forums (StackExchange, Reddit,... whatever),
or emails (not necessarily plain-text), or applications
won't have its apparent indentation changed.  That's a
good thing.

I see this gotcha a lot on emacs.StackExchange, for
instance.  A user copies and pastes some code, and the
indentation is broken (but maybe not super noticeably),
because TAB chars are used here & there for indentation.

That means the user (or someone else) needs to then
notice that apparent change (gotcha), and then edit the
code to give it reasonable indentation.

Even a user (such as myself) who's aware of the gotcha
needs to, e.g., use `M-x untabify' before copying, when
using `emacs -Q'.  Some users don't know `untabify',
and they end up doing the TAB-at-a-time editing outside
Emacs, in the paste destination.  That's a shame.

This is a small reason, perhaps.  But it is one more.
It's an unnecessary bother, IMO.

It's easy enough for some local use (e.g. following the
standards of some organization) to customize the option
to ON.  But that should no longer be the default, IMO.



             reply	other threads:[~2021-09-03 17:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-03 17:49 Drew Adams [this message]
2021-09-03 18:35 ` indent-tabs-mode default [was: Representation of the Emacs userbase on emacs-devel] Kaushal Modi
2021-09-04  2:21 ` Po Lu
2021-09-04  4:16   ` Stefan Kangas
2021-09-04 11:32     ` Po Lu
2021-09-04 14:44       ` [External] : " Drew Adams
2021-09-05  0:37         ` Po Lu
2021-09-05  0:40           ` Dmitry Gutov
2021-09-05  3:20             ` Po Lu
2021-09-05  3:37               ` Stefan Kangas
2021-09-05  5:39                 ` Po Lu
2021-09-05  7:09                   ` Stefan Kangas
2021-09-05 19:31                     ` Dmitry Gutov
2021-09-06  1:19                       ` Po Lu
2021-09-06  2:22                         ` Tim Cross
2021-09-06  3:35                           ` Po Lu
2021-09-06  4:11                             ` Tim Cross
2021-09-06  5:40                               ` Po Lu
2021-09-06  6:40                                 ` Tim Cross
2021-09-06  7:57                                   ` Po Lu
2021-09-06  8:13                                     ` Tim Cross
2021-09-06 11:13                                       ` Po Lu
2021-09-07 21:47                                       ` chad
2021-09-06 23:32                             ` Drew Adams
2021-09-04  2:39 ` Tim Cross
  -- strict thread matches above, loose matches on Subject: below --
2021-08-26 16:20 Gitlab Migration Daniel Fleischer
2021-08-26 17:24 ` Philip Kaludercic
2021-08-27  7:00   ` Daniel Fleischer
2021-08-27 11:30     ` Eli Zaretskii
2021-08-27 14:33       ` Stefan Monnier
2021-08-27 21:09         ` Dmitry Gutov
2021-08-28  6:00           ` Eli Zaretskii
2021-08-29  2:27             ` Dmitry Gutov
2021-08-30  2:58               ` Richard Stallman
2021-08-30 12:20                 ` Dmitry Gutov
2021-08-31  3:09                   ` Richard Stallman
2021-08-31 11:43                     ` Dmitry Gutov
2021-08-31 16:21                       ` John Yates
2021-08-31 16:37                         ` Eli Zaretskii
2021-08-31 19:17                           ` Dmitry Gutov
2021-08-31 19:37                             ` Eli Zaretskii
2021-09-01 11:35                               ` John Yates
2021-09-02  3:38                                 ` Richard Stallman
2021-09-02 19:02                                   ` Dmitry Gutov
2021-09-03  6:06                                     ` Eli Zaretskii
2021-09-03  6:12                                       ` Lars Ingebrigtsen
2021-09-03 10:59                                         ` Dmitry Gutov
2021-09-06  3:06                                           ` indent-tabs-mode default [was: Representation of the Emacs userbase on emacs-devel] Richard Stallman
2021-09-06 12:23                                             ` Dmitry Gutov

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=SJ0PR10MB5488954AAB0694701583B5D4F3CF9@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=danflscr@gmail.com \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=john@yates-sheets.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=philipk@posteo.net \
    --cc=rms@gnu.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).