* Bind C-. in emacs -nw
@ 2010-03-25 14:59 Thierry Volpiatto
2010-03-25 15:59 ` Davis Herring
[not found] ` <201003251755.o2PHt5O4000705@godzilla.ics.uci.edu>
0 siblings, 2 replies; 6+ messages in thread
From: Thierry Volpiatto @ 2010-03-25 14:59 UTC (permalink / raw)
To: emacs-devel
Hi,
i am unable to bind something to `C-.' in emacs -nw.
It seem the "C" of Control is not read, it print only "." like
self-insert-command.
If i bind `C-l' for example no problem.
So:
(global-set-key (kbd "C-.") 'foo) ==> fail
(global-set-key (kbd "C-;") 'foo) ==> fail
(global-set-key (kbd "C-l") 'foo) ==> OK
Is it a bug or i misunderstand something?
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bind C-. in emacs -nw
2010-03-25 14:59 Bind C-. in emacs -nw Thierry Volpiatto
@ 2010-03-25 15:59 ` Davis Herring
2010-03-25 16:10 ` Thierry Volpiatto
[not found] ` <201003251755.o2PHt5O4000705@godzilla.ics.uci.edu>
1 sibling, 1 reply; 6+ messages in thread
From: Davis Herring @ 2010-03-25 15:59 UTC (permalink / raw)
To: Thierry Volpiatto; +Cc: emacs-devel
> i am unable to bind something to `C-.' in emacs -nw.
> It seem the "C" of Control is not read, it print only "." like
> self-insert-command.
The binding works just fine, I'm sure, as you can check by typing C-x @ c
. (to emulate C-.). It's the key C-. itself that cannot be typed on a
terminal (and apparently results for you in just the . being sent).
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bind C-. in emacs -nw
2010-03-25 15:59 ` Davis Herring
@ 2010-03-25 16:10 ` Thierry Volpiatto
0 siblings, 0 replies; 6+ messages in thread
From: Thierry Volpiatto @ 2010-03-25 16:10 UTC (permalink / raw)
To: emacs-devel
"Davis Herring" <herring@lanl.gov> writes:
>> i am unable to bind something to `C-.' in emacs -nw.
>> It seem the "C" of Control is not read, it print only "." like
>> self-insert-command.
>
> The binding works just fine, I'm sure, as you can check by typing C-x @ c
> . (to emulate C-.). It's the key C-. itself that cannot be typed on a
> terminal (and apparently results for you in just the . being sent).
Yes, `C-x @ c .' work.
So yes i understand, thank's.
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bind C-. in emacs -nw
[not found] ` <201003251755.o2PHt5O4000705@godzilla.ics.uci.edu>
@ 2010-03-25 18:24 ` Thierry Volpiatto
[not found] ` <201003251917.o2PJHYWS003285@godzilla.ics.uci.edu>
0 siblings, 1 reply; 6+ messages in thread
From: Thierry Volpiatto @ 2010-03-25 18:24 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
Dan Nicolaescu <dann@ics.uci.edu> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
> > Hi,
> > i am unable to bind something to `C-.' in emacs -nw.
> > It seem the "C" of Control is not read, it print only "." like
> > self-insert-command.
>
> It should work if you use xterm. A version of that is not older than
> like 2 years will do. AFAIK no other terminal emulator can do this.
No xterm (version 250) is worst, instead of just printing "." it print:
27;6;46~
I use mostly rxvt-unicode.
I will find another key just for use in (x)terms, that is for anything.
Thanks.
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bind C-. in emacs -nw
[not found] ` <201003251917.o2PJHYWS003285@godzilla.ics.uci.edu>
@ 2010-03-26 6:56 ` Thierry Volpiatto
[not found] ` <201003260759.o2Q7xEhU027188@godzilla.ics.uci.edu>
0 siblings, 1 reply; 6+ messages in thread
From: Thierry Volpiatto @ 2010-03-26 6:56 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
Dan Nicolaescu <dann@ics.uci.edu> writes:
> That's strange, we have
> (define-key map "\e[27;5;46~" [?\C-.])
>
> in xterm.el, so that key should be recognized...
>
> Can you try removing all your local settings for xterm and see if that
> helps?
Without .xdefaults setting, it does the same.
It print 27;6;46~, but that is only in minibuffer.
(My anything command is run from minibuffer)
If i set the same key in global map from scratch buffer like:
(global-set-key (kbd "C-.") 'somesimplecommand)
when i hit `C-.' it print "~" (and don't call the command)" .
Same for `C-:' it print "~".
If i bind `C-,' or `C-;' i have C-, or C-; is not defined.
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bind C-. in emacs -nw
[not found] ` <201003260759.o2Q7xEhU027188@godzilla.ics.uci.edu>
@ 2010-03-26 10:33 ` Thierry Volpiatto
0 siblings, 0 replies; 6+ messages in thread
From: Thierry Volpiatto @ 2010-03-26 10:33 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
Dan Nicolaescu <dann@ics.uci.edu> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
> > Dan Nicolaescu <dann@ics.uci.edu> writes:
> >
> > > That's strange, we have
> > > (define-key map "\e[27;5;46~" [?\C-.])
> > >
> > > in xterm.el, so that key should be recognized...
> > >
> > > Can you try removing all your local settings for xterm and see if that
> > > helps?
> >
> > Without .xdefaults setting, it does the same.
> > It print 27;6;46~, but that is only in minibuffer.
> > (My anything command is run from minibuffer)
> >
> > If i set the same key in global map from scratch buffer like:
> >
> > (global-set-key (kbd "C-.") 'somesimplecommand)
>
>
> Can you reproduce this when doing
> emacs -Q -nw
>
> and no .Xdefaults settings for xterm?
> [It works just fine for me]
Yes, still not working.
> If yes, please open a bug with all the details.
Ok i will.
Thanks.
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-26 10:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 14:59 Bind C-. in emacs -nw Thierry Volpiatto
2010-03-25 15:59 ` Davis Herring
2010-03-25 16:10 ` Thierry Volpiatto
[not found] ` <201003251755.o2PHt5O4000705@godzilla.ics.uci.edu>
2010-03-25 18:24 ` Thierry Volpiatto
[not found] ` <201003251917.o2PJHYWS003285@godzilla.ics.uci.edu>
2010-03-26 6:56 ` Thierry Volpiatto
[not found] ` <201003260759.o2Q7xEhU027188@godzilla.ics.uci.edu>
2010-03-26 10:33 ` Thierry Volpiatto
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.