jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Problems & Questions


Dear John,

thank you for the fast and helpfull reply.

On  1.11.05, John E. Davis wrote:
> G. Milde <g.milde@xxxxxx> wrote:
>  
> >>   definekey ("select_menu_item", " ", "menu");
> >
> >Unfortunately, I did not find such a function on Jed Version: B0.99.17-111:
> 
> Did you try this?

I tried Help>Describe Function select_menu_item and got 

   select_menu_item: undefined  Undocumented

My suggestion is that these menu functions are internal and thus not
detected by the function is_defined(). However,
  is_internal("back_menu"); 
  is_internal("select_menu_item");
both return 0 :-(

OTOH, binding "back_menu" as proposed below works nice! And the ("wrong")
binding to "exit_menubar" worked since several versions.

How can I locate these "hidden" functions and fix the online-help error?
Are there more?


 
> >My problem with menus is a bit different: 
> >
> > If I select a pop up menu, I cannot go out of it with Left nor with the ESC
> > key. This might have to do with my rebinding of the ESC key to send "\e\e\e".
> > Is there a keybinding I can set?
> 
> Try:
> 
>     definekey ("back_menu", "\e\e\e", "menu");
> 
> By default, the ESC or SPACE key will cause the back_menu function to
> execute.

This is what I got wrong in cua.sl. Thanks for clarification. 
Now it works like expected.

Could you please apply the following patch to cua.sl:


--- /home/milde/.jed/lib/cua.sl~	2005-06-09 15:47:14.000000000 +0200
+++ /home/milde/.jed/lib/cua.sl	2005-11-02 08:53:08.000000000 +0100
@@ -81,7 +81,7 @@
 % ESC (unfortunately, some special keys return "\e\e<something>")
 % see USAGE at top for workaround
 setkey ("cua_escape_cmd", "\e\e\e");              % Triple-Esc -> abort
-definekey ("exit_menubar", "\e\e\e", "menu"); % close menus
+definekey("back_menu", "\e\e\e", "menu"); % close menus
 
 % Function keys
 setkey("menu_select_menu(\"Global.&Help\")",   Key_F1);


Many thanks 

Guenter

-- 
G.Milde web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]