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: Sat, 20 Apr 2002 23:06:44 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200204072343.g37NhIC20114@aztec.santafe.edu> <200204201727.g3KHRD401381@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1019336794 7772 127.0.0.1 (20 Apr 2002 21:06:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2002 21:06:34 +0000 (UTC) Cc: Gerd Moellmann Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16z242-00021F-00 for ; Sat, 20 Apr 2002 23:06:34 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16z2O2-00007G-00 for ; Sat, 20 Apr 2002 23:27:14 +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 16z23m-00020Z-00; Sat, 20 Apr 2002 17:06:18 -0400 Original-Received: from p0173.as-l043.contactel.cz ([194.108.242.173] helo=SnowWhite.SuSE.cz) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16z23C-0001z9-00; Sat, 20 Apr 2002 17:05:43 -0400 Original-Received: by SnowWhite.SuSE.cz (PJ, from userid 500) id 5EA64183D2; Sat, 20 Apr 2002 23:07:50 +0200 (CEST) Original-To: Richard Stallman Original-Cc: emacs-devel@gnu.org 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: <200204201727.g3KHRD401381@aztec.santafe.edu> (Richard Stallman's message of "Sat, 20 Apr 2002 11:27:13 -0600 (MDT)") User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu) Original-Lines: 59 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:2883 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2883 From: Richard Stallman Date: Sat, 20 Apr 2002 11:27:13 -0600 (MDT) > Can you see what is required to make this feature work with LessTif to= o? > If you can't figure out from the docs what needs doing, > perhaps toshok@hungry.com could give you advice. Well, it almost works. Current CVS just process only the first key, because popup_activated_flag is 1 only at that moment. After the first key is processed, popup_deactivate_callback is called (many times) and that variable is zeroed. And from now on, key in menu are no longer processed. Good. After: --- /home/pavel/.Emacs/Work/emacs/src/xmenu.c Mon Jan 7 06:48:44 2002 +++ ./xmenu.c Sat Apr 20 21:54:41 2002 @@ -1154,7 +1154,7 @@ LWLIB_ID id; XtPointer client_data; { - popup_activated_flag =3D 1; + popup_activated_flag +=3D 1; } =20 /* This callback is invoked when a dialog or menu is finished being @@ -1166,7 +1166,7 @@ LWLIB_ID id; XtPointer client_data; { - popup_activated_flag =3D 0; + popup_activated_flag -=3D 1; } =20 /* Lwlib callback called when menu items are highlighted/unhighlighted Menu works, because popup_activated_flag is going to negative numbers very fast... But I can no longer enter any character in the buffer, because those keypress events are processed in menu... So I think it is not about Lesstif knowledge, it is about how Lesstif is used in Emacs. I do not use Lesstif so perhaps Gerd can help me. Or anyone else? > Another useful feature is to provide ways to activate the menus from > the keyboard, compatible with what people expect in other programs. > I am told that XEmacs has this feature too. Yes, this will be the second step. But I;d like to finish this one before doing additional things. > It might not be easy to find key bindings for it, though. I think it is very easy. We should use F10, and invent new variable f10-should-use-tmm (this is only idea to exactly describe its meaning...) defaulting to nil. --=20 Pavel Jan=EDk panic ("No CPUs found. System halted.\n"); -- 2.4.3 arch/parisc/kernel/setup.c