[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ubuntu 10.0: TERM=Linux: facemenu steals arrow keys
From: |
Dan Nicolaescu |
Subject: |
Re: Ubuntu 10.0: TERM=Linux: facemenu steals arrow keys |
Date: |
Sun, 08 Jan 2012 22:30:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
"T. V. Raman" <address@hidden> writes:
[Your original CC to emacs-devel had an incorrect address, so I got a
bounce, this is a resend]
> Ithought Ihad said in my original note that the problem only
> showed up if TERM=linux -- which the default on the Linux
> console.
But that only happens on your machine when you use
loadkeys emacs2
right?
On my Fedora machine "loadkeys emacs2" does not change the what the
arrow keys emit.
> I've already fixed it for myself locally by defining
> \M-OA and friends in my function-key-map --- but Istill think
> facemenu.el should be fixed for the general user.
The problem is that on your machine what the arrow keys emit does not
correspond to the "linux" terminfo entry (terminfo expect \e[[A whereas
the terminal emits \eOA). So emacs is confused.
Once that confusion is resolved, facemenu.el would just work.
>
>
>>>>>> "Dan" == Dan Nicolaescu <address@hidden> writes:
> Dan> "T.V. Raman" <address@hidden> writes:
> >> Correct: Arrows emit \eO[A-D] using keymap emacs2.kmap.gz
> Dan>
> Dan> Then you need to set TERM to something else, not to
> Dan> linux. I think using "xterm" would get rid of this
> Dan> particular error.
> Dan>
> Dan> BTW, please keep emacs-devel in the CC.
> Dan>
> >> --
> >> Best Regards, --raman
> >>
> >> --
> >> Best Regards, --raman
> >>
> >>
> >> On 1/8/12, Dan Nicolaescu <address@hidden> wrote:
> >>> "T.V. Raman" <address@hidden> writes:
> >>>
> >>>> On linnnux console term=linux\eOA
> >>>
> >>> Are you saying that on your linux console \eOA is emitted
> >>> for an arrow key?
> >>>
> >>> That's not what I get on Fedora... And that's not what
> >>> the terminfo database specifies. This is the cause of the
> >>> problem: the terminal emits one sequence and the terminfo
> >>> database expects another one.
> >>>
> >>>
> >>>
> >>>
> >>>> --
> >>>> Best Regards, --raman
> >>>>
> >>>> --
> >>>> Best Regards, --raman
> >>>>
> >>>>
> >>>> On 1/7/12, Dan Nicolaescu <address@hidden> wrote:
> >>>>> "T. V. Raman" <address@hidden> writes:
> >>>>>
> >>>>>> Hi, This problem started after a git update from
> >>>>>> savannah yesterday.
> >>>>>>
> >>>>>> Environment: Ubuntu 10.0 Linux Console (i.e. outside
> >>>>>> X) TERM=linux (terminal type)
> >>>>>>
> >>>>>> I suddenly found the arrow keys invoking
> >>>>>> facemenu-set-default.
> >>>>>>
> >>>>>> Describe Function (attached output below) on
> >>>>>> facemenu-set-default shows that it is indeed bound to
> >>>>>> \eOD, which coincidentally is what the left arrow key
> >>>>>> generates on the linux console.
> >>>>>>
> >>>>>> I verified that this is still true with emacs -q --
> >>>>>> but with a minimal emacspeak environment loaded; I
> >>>>>> dont believe the binding is coming from Emacspeak as
> >>>>>> far as I can tell.
> >>>>>>
> >>>>>>
> >>>>>> facemenu-set-default is an interactive Lisp function.
> >>>>>>
> >>>>>> It is bound to meta o d , META cap G d , <control
> >>>>>> down-mouse-2> <fc> d , <menu-bar> <edit> <props> <fc>
> >>>>>> d .
> >>>>>>
> >>>>>> (facemenu-set-default)
> >>>>>>
> >>>>>> Select face `default' for subsequent insertion. If the
> >>>>>> mark is active and there is no prefix argument, apply
> >>>>>> face `default' to the region instead. This command was
> >>>>>> defined by `facemenu-add-new-face'.
> >>>>>
> >>>>> What do you get if you press: C-q <left> (i.e. C-q
> >>>>> followed by left arrow key)
> >>>>>
> >>>>> Do you get the same sequence as running in a shell :
> >>>>>
> >>>>> infocmp linux | grep kcub1
> >>>>>
> >>>>> ?
> >>>>>
> >>>
>
> --
> Best Regards,
> --raman
Re: Ubuntu 10.0: TERM=Linux: facemenu steals arrow keys, Stefan Monnier, 2012/01/08