From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Ubuntu 10.0: TERM=Linux: facemenu steals arrow keys Date: Sun, 08 Jan 2012 22:30:32 -0500 Message-ID: References: <20232.39090.943202.772602@gargle.gargle.HOWL> <20234.20416.484712.470008@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326079846 2169 80.91.229.12 (9 Jan 2012 03:30:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 03:30:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: tv.raman.tv@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 09 04:30:40 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rk5wV-0008NK-7X for ged-emacs-devel@m.gmane.org; Mon, 09 Jan 2012 04:30:39 +0100 Original-Received: from localhost ([::1]:33453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk5wU-0006Tl-Lh for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2012 22:30:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk5wR-0006Te-DA for emacs-devel@gnu.org; Sun, 08 Jan 2012 22:30:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk5wP-0007u0-H4 for emacs-devel@gnu.org; Sun, 08 Jan 2012 22:30:35 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk5wP-0007tq-FS for emacs-devel@gnu.org; Sun, 08 Jan 2012 22:30:33 -0500 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rk5wP-00034d-2M; Sun, 08 Jan 2012 22:30:33 -0500 In-Reply-To: <20234.20416.484712.470008@gargle.gargle.HOWL> (T. V. Raman's message of "Sun, 8 Jan 2012 18:24:00 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147497 Archived-At: "T. V. Raman" 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 writes: > Dan> "T.V. Raman" 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 wrote: > >>> "T.V. Raman" 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 wrote: > >>>>> "T. V. Raman" 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 , >>>>>> down-mouse-2> d , > >>>>>> 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 (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