* . is undefined (when pressing C-.): is ssh behaving odd?
@ 2021-12-03 11:34 Luca Ferrari
2021-12-03 14:33 ` Robert Pluim
0 siblings, 1 reply; 7+ messages in thread
From: Luca Ferrari @ 2021-12-03 11:34 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I'm trying to get embark to work with a very simple setup, that is:
(use-package embark
:ensure t
:bind
(("C-." . embark-act) ;; pick some comfortable binding
("M-." . embark-dwim) ;; good alternative: M-.
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
:init
(setq prefix-help-command #'embark-prefix-help-command) )
So far, so good, if I do M-x embark I can see that is bound to C-. as expected.
But when I press C-. I got ". is undefined".
I'm using emacs thru ssh, if that matters, which I suspect is
something that6 is going to handle C, even if C-x C-f (as an example)
works as expected.
Remapping C-. to M-. makes emabrk-act to work, so is something related
to C, but why is not showing up with other C-based commands?
Thanks,
Luca
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: . is undefined (when pressing C-.): is ssh behaving odd?
2021-12-03 11:34 . is undefined (when pressing C-.): is ssh behaving odd? Luca Ferrari
@ 2021-12-03 14:33 ` Robert Pluim
2021-12-06 17:21 ` Luca Ferrari
0 siblings, 1 reply; 7+ messages in thread
From: Robert Pluim @ 2021-12-03 14:33 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs
>>>>> On Fri, 3 Dec 2021 12:34:10 +0100, Luca Ferrari <fluca1978@gmail.com> said:
Luca> So far, so good, if I do M-x embark I can see that is bound to C-. as expected.
Luca> But when I press C-. I got ". is undefined".
Luca> I'm using emacs thru ssh, if that matters, which I suspect is
Luca> something that6 is going to handle C, even if C-x C-f (as an example)
tty's canʼt produce 'C-.'
Robert
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: . is undefined (when pressing C-.): is ssh behaving odd?
2021-12-03 14:33 ` Robert Pluim
@ 2021-12-06 17:21 ` Luca Ferrari
2021-12-06 17:25 ` Robert Pluim
0 siblings, 1 reply; 7+ messages in thread
From: Luca Ferrari @ 2021-12-06 17:21 UTC (permalink / raw)
To: rpluim; +Cc: help-gnu-emacs
On Fri, Dec 3, 2021 at 3:33 PM Robert Pluim <rpluim@gmail.com> wrote:
>
> >>>>> On Fri, 3 Dec 2021 12:34:10 +0100, Luca Ferrari <fluca1978@gmail.com> said:
>
> Luca> So far, so good, if I do M-x embark I can see that is bound to C-. as expected.
> Luca> But when I press C-. I got ". is undefined".
> Luca> I'm using emacs thru ssh, if that matters, which I suspect is
> Luca> something that6 is going to handle C, even if C-x C-f (as an example)
>
> tty's canʼt produce 'C-.'
Could you elaborate a little more about that? Rationale and/or
possible fix if any?
Thanks,
Luca
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: . is undefined (when pressing C-.): is ssh behaving odd?
2021-12-06 17:21 ` Luca Ferrari
@ 2021-12-06 17:25 ` Robert Pluim
2021-12-06 18:02 ` Yuri Khan
2021-12-06 18:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 2 replies; 7+ messages in thread
From: Robert Pluim @ 2021-12-06 17:25 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs
>>>>> On Mon, 6 Dec 2021 18:21:16 +0100, Luca Ferrari <fluca1978@gmail.com> said:
Luca> On Fri, Dec 3, 2021 at 3:33 PM Robert Pluim <rpluim@gmail.com> wrote:
>>
>> >>>>> On Fri, 3 Dec 2021 12:34:10 +0100, Luca Ferrari <fluca1978@gmail.com> said:
>>
Luca> So far, so good, if I do M-x embark I can see that is bound to C-. as expected.
Luca> But when I press C-. I got ". is undefined".
Luca> I'm using emacs thru ssh, if that matters, which I suspect is
Luca> something that6 is going to handle C, even if C-x C-f (as an example)
>>
>> tty's canʼt produce 'C-.'
Luca> Could you elaborate a little more about that? Rationale and/or
Luca> possible fix if any?
There are limitations to the keys that can be produced when using a
tty (such as when youʼre logged in over ssh, or running 'emacs
-nw'). One of those is that certain Ctrl combinations simply won't
work: C-. is one of them. There is no fix: itʼs an inherent
limitation of the tty technology.
Robert
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: . is undefined (when pressing C-.): is ssh behaving odd?
2021-12-06 17:25 ` Robert Pluim
@ 2021-12-06 18:02 ` Yuri Khan
2021-12-06 18:32 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-06 18:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 7+ messages in thread
From: Yuri Khan @ 2021-12-06 18:02 UTC (permalink / raw)
To: Robert Pluim; +Cc: Luca Ferrari, help-gnu-emacs
On Tue, 7 Dec 2021 at 00:25, Robert Pluim <rpluim@gmail.com> wrote:
>>> tty's canʼt produce 'C-.'
This is technically correct if one limits oneself to a hardware
terminal made half a century ago, or even to a Linux TTY.
> There are limitations to the keys that can be produced when using a
> tty (such as when youʼre logged in over ssh, or running 'emacs
> -nw'). One of those is that certain Ctrl combinations simply won't
> work: C-. is one of them. There is no fix: itʼs an inherent
> limitation of the tty technology.
The fix is to use a terminal emulator that implements extended key
codes, to opt in to such a protocol extension, and to teach Emacs to
decode that.
Here’s one such extension.
https://sw.kovidgoyal.net/kitty/keyboard-protocol/
(No, I don’t have a functional term/xterm-kitty.el right now. Maybe
one day, when/if I get fed up with X11 forwarding over a
less-than-lightspeed ssh connection.)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: . is undefined (when pressing C-.): is ssh behaving odd?
2021-12-06 18:02 ` Yuri Khan
@ 2021-12-06 18:32 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 7+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-12-06 18:32 UTC (permalink / raw)
To: help-gnu-emacs
Yuri Khan wrote:
>> tty's can't produce 'C-.'
>
> This is technically correct if one limits oneself to
> a hardware terminal made half a century ago, or even to
> a Linux TTY.
I agree it is an underdeveloped field, unsure if it is any
better in other Unixes but still, however with tmux on top it
can still be pretty good for purposes like Emacs and shell
tools ...
Maybe it "can't produce 'C-.'" but you can still use it in
Emacs, with this method:
https://dataswamp.org/~incal/tty-emacs-keys.txt
Examples:
http://user.it.uu.se/~embe8573/conf/vt/remap.inc
https://dataswamp.org/~incal/emacs-init/console-keys.el
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: . is undefined (when pressing C-.): is ssh behaving odd?
2021-12-06 17:25 ` Robert Pluim
2021-12-06 18:02 ` Yuri Khan
@ 2021-12-06 18:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 0 replies; 7+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-12-06 18:43 UTC (permalink / raw)
To: help-gnu-emacs
Robert Pluim wrote:
> tty (such as when youʼre logged in over ssh, or running
> 'emacs -nw'). One of those is that certain Ctrl combinations
> simply won't work [...]
They work, see
https://dataswamp.org/~incal/tty-emacs-keys.txt
https://dataswamp.org/~incal/emacs-init/console-keys.el
https://dataswamp.org/~incal/conf/vt/remap.inc
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-12-06 18:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 11:34 . is undefined (when pressing C-.): is ssh behaving odd? Luca Ferrari
2021-12-03 14:33 ` Robert Pluim
2021-12-06 17:21 ` Luca Ferrari
2021-12-06 17:25 ` Robert Pluim
2021-12-06 18:02 ` Yuri Khan
2021-12-06 18:32 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-06 18:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.