Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-12-10 Thread Nicolas Goaziou
Hello,

Ingo Lohmar  writes:

> In 9.5, org-key-map binds org-force-cycle-archived to (kbd "C-c C-TAB").
> At least on my machine, this specification is illegal: it generates an
> entry in org-key-map, but the key presses yield an "undefined" message.
>
> Binding the command to (kbd "C-c C-") instead works, but not on a
> tty.
>
> It's been my understanding that "TAB" is the ascii control character,
> identical to C-i, and hence "C-TAB" cannot work.  "" is the GUI
> system's key event (in my case, X), and does not work on a terminal.

Fixed.

Thank you.

Regards,
-- 
Nicolas Goaziou



Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-19 Thread Daniel Fleischer
Ingo Lohmar [2021-11-17 Wed 21:19] wrote:

> Can people actually enter "C-c C-TAB" into their emacs (how?), or has
> everybody has just bound another key in their config?

I've noticed it a couple of weeks ago; just rebound
org-force-cycle-archived to (kbd "C-c C-")

-- 

Daniel Fleischer



Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-18 Thread Max Nikulin

On 18/11/2021 04:19, Ingo Lohmar wrote:

On Fri, Oct 01 2021 23:16 (+0200), Ingo Lohmar wrote:


In 9.5, org-key-map binds org-force-cycle-archived to (kbd "C-c C-TAB").
At least on my machine, this specification is illegal: it generates an
entry in org-key-map, but the key presses yield an "undefined" message.

Binding the command to (kbd "C-c C-") instead works, but not on a
tty.

It's been my understanding that "TAB" is the ascii control character,
identical to C-i, and hence "C-TAB" cannot work.  "" is the GUI
system's key event (in my case, X), and does not work on a terminal.


it seems that the above bug report has gone unnoticed.

It seems the change was introduced in
565361eb698b0b39c1d823ad1565f5bd88fa2034 and persists.

Can people actually enter "C-c C-TAB" into their emacs (how?), or has
everybody has just bound another key in their config?


There were a discussion of GUI-only vs. terminal key events:
https://list.orgmode.org/00ca1c7b-1e1d-fc91-eef3-dfc29b51b...@daniel-mendler.de/T/#u




Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-18 Thread Ihor Radchenko
Timothy  writes:

> I think that the two actions we may want to take here are:
> 1. Replace "C-TAB" with "C-" in the keybinding
> 2. Change the keybinding to something else that doesn't use control+tab
>for instance, "C-c M-TAB" seems to be available.
>
> Which option seems preferable?

Note that 565361eb6 explicitly changed C- to C-TAB:

>> Fixes: `org-mode-map` binds `` which is unnecessary and harmful,
>> since it takes precendence over bindings of TAB even in keymaps with
>> higher precedence.
>> 
>> Reported-by: Daniel Mendler

M-TAB may be not good for Windows users.

Maybe C-c S-TAB? Though it feels not intuitive.
Another possibility may be overloading C-c TAB (org-ctrl-c-tab).

Best,
Ihor



Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-17 Thread Timothy


I think that the two actions we may want to take here are:
1. Replace "C-TAB" with "C-" in the keybinding
2. Change the keybinding to something else that doesn't use control+tab
   for instance, "C-c M-TAB" seems to be available.

Which option seems preferable?

--
Timothy



Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-17 Thread Kévin Le Gouguec
Ingo Lohmar  writes:

> It seems the change was introduced in
> 565361eb698b0b39c1d823ad1565f5bd88fa2034 and persists.
>
> Can people actually enter "C-c C-TAB" into their emacs (how?), or has
> everybody has just bound another key in their config?

Mmm, I can't seem to input C-c C-TAB either.  IIUC (but maybe I don't),
this makes sense because

- Emacs translates the function key  into the control character
  TAB=^I when no modifiers are added.  I.e. this can be triggered by
  hitting  or +i:

> (local-set-key (kbd "TAB") (lambda () (interactive) (message "TAB-ish!")))

- But Emacs can't translate + into "C-TAB", because C-TAB
  means "control+control+i", which I guess is not representable at the
  key code level or something?  Hopefully someone can explain this
  better.

(?\C-\t does return something though, and it's consistent with what (kbd
"C-TAB") returns, so I guess there's no reason why Emacs couldn't
translate C- to C-TAB like it does  to TAB? 路)

FWIW, however you decide to fix this, I'd be very grateful if org-cycle
remained bound to TAB, since I'm one of those weirdos who actually hits
+i for TAB instead of …



Re: [BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-11-17 Thread Ingo Lohmar
On Fri, Oct 01 2021 23:16 (+0200), Ingo Lohmar wrote:

> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
>
>  https://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org mailing list.
> 
>
> In 9.5, org-key-map binds org-force-cycle-archived to (kbd "C-c C-TAB").
> At least on my machine, this specification is illegal: it generates an
> entry in org-key-map, but the key presses yield an "undefined" message.
>
> Binding the command to (kbd "C-c C-") instead works, but not on a
> tty.
>
> It's been my understanding that "TAB" is the ascii control character,
> identical to C-i, and hence "C-TAB" cannot work.  "" is the GUI
> system's key event (in my case, X), and does not work on a terminal.
>
> Emacs  : GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 
> 3.24.24, cairo version 1.16.0)
>  of 2021-09-02
> Package: Org mode version 9.5 (9.5-g0a86ad @ 
> /home/il/.config/emacs/elpa/org-9.5/)

Hi all,

it seems that the above bug report has gone unnoticed.

It seems the change was introduced in
565361eb698b0b39c1d823ad1565f5bd88fa2034 and persists.

Can people actually enter "C-c C-TAB" into their emacs (how?), or has
everybody has just bound another key in their config?

Best,
Ingo



[BUG] org-mode binds C-c C-TAB, which seems illegal [9.5 (9.5-g0a86ad @ /home/il/.config/emacs/elpa/org-9.5/)]

2021-10-01 Thread Ingo Lohmar


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


In 9.5, org-key-map binds org-force-cycle-archived to (kbd "C-c C-TAB").
At least on my machine, this specification is illegal: it generates an
entry in org-key-map, but the key presses yield an "undefined" message.

Binding the command to (kbd "C-c C-") instead works, but not on a
tty.

It's been my understanding that "TAB" is the ascii control character,
identical to C-i, and hence "C-TAB" cannot work.  "" is the GUI
system's key event (in my case, X), and does not work on a terminal.

Emacs  : GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
 of 2021-09-02
Package: Org mode version 9.5 (9.5-g0a86ad @ 
/home/il/.config/emacs/elpa/org-9.5/)