[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-l while in menu?
Re: C-l while in menu?
Sat, 20 Apr 2002 23:06:44 +0200
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu)
From: Richard Stallman <address@hidden>
Date: Sat, 20 Apr 2002 11:27:13 -0600 (MDT)
> Can you see what is required to make this feature work with LessTif too?
> If you can't figure out from the docs what needs doing,
> perhaps address@hidden 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.
--- /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 @@
- popup_activated_flag = 1;
+ popup_activated_flag += 1;
/* This callback is invoked when a dialog or menu is finished being
@@ -1166,7 +1166,7 @@
- popup_activated_flag = 0;
+ popup_activated_flag -= 1;
/* 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.
panic ("No CPUs found. System halted.\n");
-- 2.4.3 arch/parisc/kernel/setup.c
- Re: C-l while in menu?, Pavel Janík, 2002/04/19
- Re: C-l while in menu?, Richard Stallman, 2002/04/20
- Re: C-l while in menu?,
Pavel Janík <=
- Re: C-l while in menu?, Richard Stallman, 2002/04/22
- Re: C-l while in menu?, Stefan Monnier, 2002/04/22
- Re: C-l while in menu?, Ben Wing, 2002/04/22
- Re: C-l while in menu?, Pavel Janík, 2002/04/22
- Re: C-l while in menu?, Ben Wing, 2002/04/23
- Re: C-l while in menu?, Miles Bader, 2002/04/23
- Re: C-l while in menu?, Eli Zaretskii, 2002/04/23