GNU bug report logs - #37183
26.2 Never for Tab-Always-Indent

Previous Next

Package: emacs;

Reported by: Charles Jackson <charles.b.jackson <at> protonmail.com>

Date: Sun, 25 Aug 2019 19:14:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 26.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37183 in the body.
You can then email your comments to 37183 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Sun, 25 Aug 2019 19:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Charles Jackson <charles.b.jackson <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 25 Aug 2019 19:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Charles Jackson <charles.b.jackson <at> protonmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 26.2 Never for Tab-Always-Indent
Date: Sun, 25 Aug 2019 19:13:09 +0000
[Message part 1 (text/plain, inline)]
The `tab-always-indent' variable should have a 'never' option that will make TAB just insert a tab character without indenting at all.
[Message part 2 (text/html, inline)]

Severity set to 'wishlist' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 29 Aug 2019 19:22:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Thu, 10 Oct 2019 00:26:01 GMT) Full text and rfc822 format available.

Message #10 received at 37183 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Charles Jackson <charles.b.jackson <at> protonmail.com>
Cc: 37183 <at> debbugs.gnu.org
Subject: Re: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Thu, 10 Oct 2019 02:24:57 +0200
Charles Jackson <charles.b.jackson <at> protonmail.com> writes:

> The `tab-always-indent' variable should have a 'never' option that
> will make TAB just insert a tab character without indenting at all.

I think that might make sense...  On the other hand, you can just
globally set the TAB key to insert a TAB character, so I'm not quite
sure whether it's very useful.

Does anybody have an opinion here?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Sat, 05 Sep 2020 01:03:02 GMT) Full text and rfc822 format available.

Message #13 received at 37183 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Charles Jackson <charles.b.jackson <at> protonmail.com>, 37183 <at> debbugs.gnu.org
Subject: Re: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Sat, 5 Sep 2020 01:02:38 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Charles Jackson <charles.b.jackson <at> protonmail.com> writes:
>
>> The `tab-always-indent' variable should have a 'never' option that
>> will make TAB just insert a tab character without indenting at all.
>
> I think that might make sense...  On the other hand, you can just
> globally set the TAB key to insert a TAB character, so I'm not quite
> sure whether it's very useful.
>
> Does anybody have an opinion here?

(How would you set it globally?  If you use `global-set-key' any local
bindings would shadow it, right?)

FWIW, I think the option makes sense, with or without the ability to set
it in another way.  It's a logical addition and could make things easier
for users.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Sat, 05 Sep 2020 12:49:02 GMT) Full text and rfc822 format available.

Message #16 received at 37183 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Charles Jackson <charles.b.jackson <at> protonmail.com>, 37183 <at> debbugs.gnu.org
Subject: Re: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Sat, 05 Sep 2020 14:48:32 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

>> I think that might make sense...  On the other hand, you can just
>> globally set the TAB key to insert a TAB character, so I'm not quite
>> sure whether it's very useful.
>>
>> Does anybody have an opinion here?
>
> (How would you set it globally?  If you use `global-set-key' any local
> bindings would shadow it, right?)

I was thinking about setting TAB in `overriding-terminal-local-map'...
(I've never used that map myself, though, so I may be misunderstanding
how that variable works.)

> FWIW, I think the option makes sense, with or without the ability to set
> it in another way.  It's a logical addition and could make things easier
> for users.

Yeah, it is pretty logical addition.  The main problem with doing
something like this is that there's a bunch of other similar variables,
like c-tab-always-indent/snmp-tab-always-indent/opascal-tab-always-indents
(and seemingly an infinite number for some reason), and for consistency,
we'd have to allow `never' for all of these (and change all the usage
sites).

I'm not sure that's worth it if there is a simple way of binding TAB.
We could just mention that in the doc string of `tab-always-indent'.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Sat, 05 Sep 2020 12:55:01 GMT) Full text and rfc822 format available.

Message #19 received at 37183 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Charles Jackson <charles.b.jackson <at> protonmail.com>, 37183 <at> debbugs.gnu.org
Subject: Re: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Sat, 05 Sep 2020 14:54:32 +0200
I just tried it, and it seems to work:

(setq overriding-terminal-local-map
      (let ((map (make-sparse-keymap)))
	(define-key map [?\t] 'self-insert-command)
	map))

By the way, that reminds me how annoying it is that we don't have a
"non-imperative" version to define keymaps.

(setq overriding-terminal-local-map
      (make-sparse-keymap
       '(([?\t] 'self-insert-command
         ("a" 'some-command)))))

(or a variation thereof) would seem more natural.

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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Sat, 05 Sep 2020 14:23:01 GMT) Full text and rfc822 format available.

Message #22 received at 37183 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Charles Jackson <charles.b.jackson <at> protonmail.com>, 37183 <at> debbugs.gnu.org
Subject: Re: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Sat, 5 Sep 2020 14:22:12 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I'm not sure that's worth it if there is a simple way of binding TAB.
> We could just mention that in the doc string of `tab-always-indent'.

True.  I think adding it to the doc string makes a great deal of sense.

We should also consider that this will likely only ever be used by a
small minority of users.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37183; Package emacs. (Sat, 05 Sep 2020 14:42:02 GMT) Full text and rfc822 format available.

Message #25 received at 37183 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Charles Jackson <charles.b.jackson <at> protonmail.com>, 37183 <at> debbugs.gnu.org
Subject: Re: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Sat, 05 Sep 2020 16:41:25 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> I'm not sure that's worth it if there is a simple way of binding TAB.
>> We could just mention that in the doc string of `tab-always-indent'.
>
> True.  I think adding it to the doc string makes a great deal of sense.
>
> We should also consider that this will likely only ever be used by a
> small minority of users.

Yup.  I've now amended the doc string and I'm closing this bug report.

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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 05 Sep 2020 14:42:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 37183 <at> debbugs.gnu.org and Charles Jackson <charles.b.jackson <at> protonmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 05 Sep 2020 14:42:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 04 Oct 2020 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.