unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55878: Complications of tabs and spaces
@ 2022-06-09 20:24 goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-10  9:44 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-09 20:24 UTC (permalink / raw)
  To: 55878

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

Have set (setq-default indent-tabs-mode nil). This works well when using the RETURN key. But I have also noticed that the TAB key stops inputting tabs.

Perhaps the TAB key is bound to some indentation command.

Could use of tabs and spaces be made simpler so that one can use both spaces and tabs.

Meaning that although indentation is done with spaces, pressing the TAB key still introduces a real tab?

Regards
Cholden

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

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

* bug#55878: Complications of tabs and spaces
  2022-06-09 20:24 bug#55878: Complications of tabs and spaces goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-10  9:44 ` Lars Ingebrigtsen
  2022-06-10 18:17   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-10  9:44 UTC (permalink / raw)
  To: goncholden; +Cc: 55878

goncholden <goncholden@protonmail.com> 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.

There doesn't seem to be anything to be done on the Emacs side here, so
I'm closing this bug report.

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





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

* bug#55878: Complications of tabs and spaces
  2022-06-10  9:44 ` Lars Ingebrigtsen
@ 2022-06-10 18:17   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-25 12:39     ` Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-10 18:17 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 55878


------- Original Message -------
On Friday, June 10th, 2022 at 9:44 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:


> goncholden goncholden@protonmail.com 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.

> There doesn't seem to be anything to be done on the Emacs side here, so
> I'm closing this bug report.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>





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

* bug#55878: Complications of tabs and spaces
  2022-06-10 18:17   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-25 12:39     ` Jean Louis
  0 siblings, 0 replies; 4+ messages in thread
From: Jean Louis @ 2022-06-25 12:39 UTC (permalink / raw)
  To: goncholden; +Cc: 55878, Lars Ingebrigtsen

* goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org> [2022-06-10 21:19]:
> 
> ------- Original Message -------
> On Friday, June 10th, 2022 at 9:44 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> 
> > goncholden goncholden@protonmail.com 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/





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

end of thread, other threads:[~2022-06-25 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 20:24 bug#55878: Complications of tabs and spaces goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-10  9:44 ` Lars Ingebrigtsen
2022-06-10 18:17   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-25 12:39     ` Jean Louis

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