From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?=) Newsgroups: gmane.emacs.devel Subject: Re: C-l while in menu? Date: Fri, 19 Apr 2002 20:58:23 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200204072343.g37NhIC20114@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-14 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1019243008 5400 127.0.0.1 (19 Apr 2002 19:03:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Apr 2002 19:03:28 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ydfM-0001Oz-00 for ; Fri, 19 Apr 2002 21:03:28 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16ydyq-0007U8-00 for ; Fri, 19 Apr 2002 21:23:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ydf8-0000s8-00; Fri, 19 Apr 2002 15:03:14 -0400 Original-Received: from p0153.as-l043.contactel.cz ([194.108.242.153] helo=SnowWhite.SuSE.cz) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16yddB-0000lm-00; Fri, 19 Apr 2002 15:01:14 -0400 Original-Received: by SnowWhite.SuSE.cz (PJ, from userid 500) id 03769183D1; Fri, 19 Apr 2002 21:03:34 +0200 (CEST) Original-To: Richard Stallman X-Face: $"d&^B_IKlTHX!y2d,3;grhwjOBqOli]LV`6d]58%5'x/kBd7.MO&n3bJ@Zkf&RfBu|^qL+ ?/Re{MpTqanXS2'~Qp'J2p^M7uM:zp[1Xq#{|C!*'&NvCC[9!|=>#qHqIhroq_S"MH8nSH+d^9*BF: iHiAs(t(~b#1.{w.d[=Z In-Reply-To: <200204072343.g37NhIC20114@aztec.santafe.edu> (Richard Stallman's message of "Sun, 7 Apr 2002 17:43:18 -0600 (MDT)") User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu) Original-Lines: 41 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2803 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2803 From: Richard Stallman Date: Sun, 7 Apr 2002 17:43:18 -0600 (MDT) > Other people have requested that characters typed while a menu is > visible should control menu selections rather than being interpreted > in the usual way by Emacs. Implementing that would be a good way to > fix this, and it might not even be terribly hard. The code > that implements the menus normally used is in lwlib/xlwmenu.c > which is only 2141 lines long. The first part of this is done (keyboard can control menu, no shortcuts yet). I will commit it in a moment. Changes are: 2002-04-19 Pavel Jan=EDk * xterm.c (note_mode_line_or_margin_highlight): Remove unused variables `row', `i' and `area'. (XTread_socket) : Pass KeyPress events when in menu to toolkit library. 2002-04-19 Pavel Jan=EDk These changes allow moving in menu via keyboard. =09 * xlwmenu.c (xlwMenuTranslations, xlwMenuActionsList): Add translations for cursor keys and RET. (find_next_selectable, find_prev_selectable): New functions used for finding menu-items. (Down, Up, Left, Right): New functions. I'd be glad to receive feedback from you (I already received some notes from Gerd). There are also two or three FIXMEs in the code. If you can tell me what do you think about them or (better ;-) fix that in the code, I am happy. --=20 Pavel Jan=EDk Never engage in a battle of wits with an idiot; they will bring you down to their level, then beat you with experience. -- Jeremy Jackson in linux-kernel