Subject: bug#55878: Complications of tabs and spaces

From: Jean Louis <[email-masked]>
Date: Sat, 25 Jun 2022 15:39:25 +0300

* goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors <[email-masked]> [2022-06-10 21:19]:
> 
> ------- Original Message -------
> On Friday, June 10th, 2022 at 9:44 PM, Lars Ingebrigtsen <[email-masked]> wrote:
> 
> 
> > goncholden [email-masked] writes:
> >
> > > Meaning that although indentation is done with spaces, pressing the TAB key still
> > > introduces a real tab?
> >
> >
> > If you want the TAB key to insert a TAB character, then rebind that key
> > to do that.
> 
> I would need information how to do that.

Solution
========

You may invoke TAB by doing:

{C-q TAB}

Next solution
=============

You could locally and temporarily bind key to TAB:

{M-x local-set-key RET TAB self-insert-command RET}

Then your TAB would give TAB character: 		OK?

Next solution
=============

Globally:

(global-set-key (kbd "TAB") #'self-insert-command)

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/