Lisp HUG Maillist Archive

Editor key binding questions

I've read the manuals but I'm still unable to find the answers to
these questions:

1) How do I rebind the isearch "search again" keys? The default isearch
   keys are bound to C-r and C-s, right? And to search for the next
   occurence, press C-r or C-s again, right? Binding the "Incremental
   Search" and "Reverse Incremental Search" commands are done using
   editor:bind. Now, how do I rebind the "search again" keys? I've
   looked at searchcomms.lisp but I still seem to be lost.

2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
   exclusively in Motif to be the "menu" key? How about Control-Tab?
   (I'm using LWF)



-- 
Rommel M. Martinez
ebzzry@gmail.com
http://www.bespin.org/~ebzzry


Re: Editor key binding questions

Hi Rommel,
 
I can't help you with your specific problems. Do you see this file -- LispWorks/lib/5-1-0-0/lwdoc ?
 
I believe that the label %EDITOR-CDOC signals a command that can be bound.
 
Maybe you can find what you're looking for.
 
Good luck,
R596


 
On Thu, Aug 21, 2008 at 3:39 PM, Rommel Martinez <ebzzry@gmail.com> wrote:

I've read the manuals but I'm still unable to find the answers to
these questions:

1) How do I rebind the isearch "search again" keys? The default isearch
  keys are bound to C-r and C-s, right? And to search for the next
  occurence, press C-r or C-s again, right? Binding the "Incremental
  Search" and "Reverse Incremental Search" commands are done using
  editor:bind. Now, how do I rebind the "search again" keys? I've
  looked at searchcomms.lisp but I still seem to be lost.

2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
  exclusively in Motif to be the "menu" key? How about Control-Tab?
  (I'm using LWF)



--
Rommel M. Martinez
ebzzry@gmail.com
http://www.bespin.org/~ebzzry


Re: Editor key binding questions

On Thu, Aug 21, 2008 at 5:31 PM, recent596 recent596
<recent596@gmail.com> wrote:
> Hi Rommel,
>
> I can't help you with your specific problems. Do you see this file --
> LispWorks/lib/5-1-0-0/lwdoc ?
>

Yes. I do have that file.

> I believe that the label %EDITOR-CDOC signals a command that can be bound.
>
> Maybe you can find what you're looking for.
>
> Good luck,
> R596
>
>
> On Thu, Aug 21, 2008 at 3:39 PM, Rommel Martinez <ebzzry@gmail.com> wrote:
>>
>> I've read the manuals but I'm still unable to find the answers to
>> these questions:
>>
>> 1) How do I rebind the isearch "search again" keys? The default isearch
>>   keys are bound to C-r and C-s, right? And to search for the next
>>   occurence, press C-r or C-s again, right? Binding the "Incremental
>>   Search" and "Reverse Incremental Search" commands are done using
>>   editor:bind. Now, how do I rebind the "search again" keys? I've
>>   looked at searchcomms.lisp but I still seem to be lost.
>>
>> 2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
>>   exclusively in Motif to be the "menu" key? How about Control-Tab?
>>   (I'm using LWF)
>>
>>
>>
>> --
>> Rommel M. Martinez
>> ebzzry@gmail.com
>> http://www.bespin.org/~ebzzry
>>
>
>



-- 
Rommel M. Martinez
ebzzry@gmail.com
http://www.bespin.org/~ebzzry


Re: Editor key binding questions

Unable to parse email body. Email id is 8561

Re: Editor key binding questions

On Thu, Aug 21, 2008 at 5:44 PM, Nick Levine <ndl@ravenbrook.com> wrote:
>   2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
>      exclusively in Motif to be the "menu" key? How about
>      Control-Tab?  (I'm using LWF)
>
> I use forms like this (LWW):
>
>  (editor:bind-key "Toggle Breakpoint" #\F12)
>
> - n
>

OK. Is there no way to override the F10 key? If the answer is no, then
it's OK. Maybe I'll just have to live with that, but I still want to (re)bind
Control-Tab.


-- 
Rommel M. Martinez
ebzzry@gmail.com
http://www.bespin.org/~ebzzry


Re: Editor key binding questions

"Rommel Martinez" <ebzzry@gmail.com> writes:

> On Thu, Aug 21, 2008 at 5:44 PM, Nick Levine <ndl@ravenbrook.com> wrote:
>>   2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
>>      exclusively in Motif to be the "menu" key? How about
>>      Control-Tab?  (I'm using LWF)
>>
>> I use forms like this (LWW):
>>
>>  (editor:bind-key "Toggle Breakpoint" #\F12)
>>
>> - n
>>
>
> OK. Is there no way to override the F10 key? If the answer is no, then
> it's OK. Maybe I'll just have to live with that, but I still want to (re)bind
> Control-Tab.

Isn't Control-Tab captured by your window manager? The window manager
will grab the keys before LispWorks gets a change. E.g. I had to rebound
a couple of KDE's default bindings to not clash with my LispWorks key bindings.

Nico


Re: Editor key binding questions

Unable to parse email body. Email id is 8566

Re: Editor key binding questions

On Thu, Aug 21, 2008 at 6:14 PM, Nico de Jager <ndj@hivsa.com> wrote:
> "Rommel Martinez" <ebzzry@gmail.com> writes:
>
>> On Thu, Aug 21, 2008 at 5:44 PM, Nick Levine <ndl@ravenbrook.com> wrote:
>>>   2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
>>>      exclusively in Motif to be the "menu" key? How about
>>>      Control-Tab?  (I'm using LWF)
>>>
>>> I use forms like this (LWW):
>>>
>>>  (editor:bind-key "Toggle Breakpoint" #\F12)
>>>
>>> - n
>>>
>>
>> OK. Is there no way to override the F10 key? If the answer is no, then
>> it's OK. Maybe I'll just have to live with that, but I still want to (re)bind
>> Control-Tab.
>
> Isn't Control-Tab captured by your window manager? The window manager
> will grab the keys before LispWorks gets a change. E.g. I had to rebound
> a couple of KDE's default bindings to not clash with my LispWorks key bindings.
>
> Nico
>

No. It isn't grabbed by my window manager. Pressing Control-Tab moves the
focus to the bar between the "main" area and the echo area. When the bar is
active, pressing the Up or Down arrow keys, resizes the echo area.

-- 
Rommel M. Martinez
ebzzry@gmail.com
http://www.bespin.org/~ebzzry


Re: Editor key binding questions

* Martin Simmons <200808211228.m7LCS7Jx022901@higson.cam.lispworks.com> :
Wrote on Thu, 21 Aug 2008 13:28:07 +0100:
|>>>>> On Thu, 21 Aug 2008 15:39:19 +0800, Rommel Martinez said:
|
|> 2) How do I bind the keys F10 and Control-Tab? Is F10 is bound
|>    exclusively in Motif to be the "menu" key? How about Control-Tab?
|>    (I'm using LWF)
|
| These are both captured by Motif before they reach the editor.
|
| F10 is bound via Motif's virtual binding table and it should be possible to
| change that.  See man VirtualBindings.

openmotif doesn't seem to ship with that man VirtualBindings page.
However it does ship with man(1) xmbind.  This didn't work for me, but
it is from openmotif 2.3 while lw links against openmotif 2.2 libs.

I never tried to remove the keyboard-menu functionality, [and now that I
tried, I'm unsuccessful], but I move the functionality from
F10/Shitf-F10, to F12/Shift-F12 using an Xdefaults setting.

Interactively:

$ cat .osf12
*defaultVirtualBindings: \
	osfMenuBar	:		<Key>F12\n\
	osfMenu		:	Shift	<Key>F12

$ xrdb .osf12

$ lispworks

should free up the  F10 key for your application.

--
Madhu












Re: Editor key binding questions

Unable to parse email body. Email id is 8576

Updated at: 2020-12-10 08:42 UTC