unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: goncholden <goncholden@protonmail.com>, Eli Zaretskii <eliz@gnu.org>
Cc: "55862@debbugs.gnu.org" <55862@debbugs.gnu.org>
Subject: bug#55862: Removing indent-tabs-mode set to t by default
Date: Thu, 9 Jun 2022 16:06:20 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488AE8EF8A08C270405D045F3A79@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <O-BKPoVOGJZg2fVI-ioMVIM1SFraclkIkELbHolFsBLnO6h38EtRPOXwoTOb22tDhaj3cWLMYkXANdi19n-NRX3oyXdavUaZgmBGUTcSU_w=@protonmail.com>

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

  parent reply	other threads:[~2022-06-09 16:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=SJ0PR10MB5488AE8EF8A08C270405D045F3A79@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=55862@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=goncholden@protonmail.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).