Lisp HUG Maillist Archive

Re-evaluating last form on MacOS

Hi Lispworks HUG,

I’m just getting started, and running through some of the tutorials [1], on MacOS Mojave and Lispworks 7.1.1.

In the listener window I’m having an issue using Meta+P to fill in the previous form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi character, and with shift an uppercase pi.  I’m not sure if this happening because of keyboard input at the OS level or something in Lispworks.  Is there a way for me to remap this action to Meta-Up?  Or any other ideas?

Cheers,
Steve


[1] http://www.lispworks.com/documentation/lw71/IDE-M/html/ide-m-8.htm#pgfId-893295

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Re-evaluating last form on MacOS

Unable to parse email body. Email id is 14904

Re: Re-evaluating last form on MacOS

What is your meta key?  Are you using a Mac keyboard?

I’m using an old keyboard.  I get a Pi if I hit ALT-P.

I’ve told my mixintosh to bind CAPS-LOCK to "^ CONTROL”.  When I hit CAPS-LOCK-P, I get the previous line. (Mac Apple>>System Preferences>>Keyboard>>Modifier Keys).

I *think* that LWM (LispWorks Macintosh) comes with two sets of bindings (Emacs and Apple).  YMMV.

I’m really a linux user - if anybody has better suggestions for how to bind the keyboard (IBM Model M) on a Mac better, do let me know.

pt


> On 19 Jan 2019, at 00:28, Steven Githens <steve@githens.org> wrote:
> 
> Hi Lispworks HUG,
> 
> I’m just getting started, and running through some of the tutorials [1], on MacOS Mojave and Lispworks 7.1.1.
> 
> In the listener window I’m having an issue using Meta+P to fill in the previous form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi character, and with shift an uppercase pi.  I’m not sure if this happening because of keyboard input at the OS level or something in Lispworks.  Is there a way for me to remap this action to Meta-Up?  Or any other ideas?
> 
> Cheers,
> Steve
> 
> 
> [1] http://www.lispworks.com/documentation/lw71/IDE-M/html/ide-m-8.htm#pgfId-893295
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html


> On 19 Jan 2019, at 00:28, Steven Githens <steve@githens.org> wrote:
> 
> Hi Lispworks HUG,
> 
> I’m just getting started, and running through some of the tutorials [1], on MacOS Mojave and Lispworks 7.1.1.
> 
> In the listener window I’m having an issue using Meta+P to fill in the previous form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi character, and with shift an uppercase pi.  I’m not sure if this happening because of keyboard input at the OS level or something in Lispworks.  Is there a way for me to remap this action to Meta-Up?  Or any other ideas?
> 
> Cheers,
> Steve
> 
> 
> [1] http://www.lispworks.com/documentation/lw71/IDE-M/html/ide-m-8.htm#pgfId-893295
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Re-evaluating last form on MacOS

Select Preferences in the LispWorks menu. Choose "Environment", the click on the Emulation tab. Select

- Editor keys are like Mac OS X editors

- The Alt key acts as the Emacs Meta key

John DeSoi, Ph.D.


> On Jan 18, 2019, at 11:28 PM, Steven Githens <steve@githens.org> wrote:
> 
> Hi Lispworks HUG,
> 
> I’m just getting started, and running through some of the tutorials [1], on MacOS Mojave and Lispworks 7.1.1.
> 
> In the listener window I’m having an issue using Meta+P to fill in the previous form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi character, and with shift an uppercase pi.  I’m not sure if this happening because of keyboard input at the OS level or something in Lispworks.  Is there a way for me to remap this action to Meta-Up?  Or any other ideas?
> 


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Re-evaluating last form on MacOS

Thanks Paul, that was helpful and pointed me in the right direction.  In the Environment->Emulation preferences, I kept the default setting of Emacs keys, but changes the Meta key option from “There is no Emacs Meta Key” to “The Alt Key acts as the Emacs Meta Key” and Meta (the Option key on newer Mac keyboards) is working as expected to scroll back through previously entered forms.

Much thanks!

Steve

> On Jan 19, 2019, at 7:08 AM, paul tarvydas <paultarvydas@gmail.com> wrote:
> 
> What is your meta key?  Are you using a Mac keyboard?
> 
> I’m using an old keyboard.  I get a Pi if I hit ALT-P.
> 
> I’ve told my mixintosh to bind CAPS-LOCK to "^ CONTROL”.  When I hit CAPS-LOCK-P, I get the previous line. (Mac Apple>>System Preferences>>Keyboard>>Modifier Keys).
> 
> I *think* that LWM (LispWorks Macintosh) comes with two sets of bindings (Emacs and Apple).  YMMV.
> 
> I’m really a linux user - if anybody has better suggestions for how to bind the keyboard (IBM Model M) on a Mac better, do let me know.
> 
> pt
> 
> 
>> On 19 Jan 2019, at 00:28, Steven Githens <steve@githens.org> wrote:
>> 
>> Hi Lispworks HUG,
>> 
>> I’m just getting started, and running through some of the tutorials [1], on MacOS Mojave and Lispworks 7.1.1.
>> 
>> In the listener window I’m having an issue using Meta+P to fill in the previous form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi character, and with shift an uppercase pi.  I’m not sure if this happening because of keyboard input at the OS level or something in Lispworks.  Is there a way for me to remap this action to Meta-Up?  Or any other ideas?
>> 
>> Cheers,
>> Steve
>> 
>> 
>> [1] http://www.lispworks.com/documentation/lw71/IDE-M/html/ide-m-8.htm#pgfId-893295
>> 
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
> 
> 
>> On 19 Jan 2019, at 00:28, Steven Githens <steve@githens.org> wrote:
>> 
>> Hi Lispworks HUG,
>> 
>> I’m just getting started, and running through some of the tutorials [1], on MacOS Mojave and Lispworks 7.1.1.
>> 
>> In the listener window I’m having an issue using Meta+P to fill in the previous form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi character, and with shift an uppercase pi.  I’m not sure if this happening because of keyboard input at the OS level or something in Lispworks.  Is there a way for me to remap this action to Meta-Up?  Or any other ideas?
>> 
>> Cheers,
>> Steve
>> 
>> 
>> [1] http://www.lispworks.com/documentation/lw71/IDE-M/html/ide-m-8.htm#pgfId-893295
>> 
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
> 


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Re-evaluating last form on MacOS

Hi,

To rebind these commands add you your config file something like

;; Bind Ctrl-Up/Down to previous/next commands in Listener
(editor:bind-key "History Next" "Control-Down" :mode "Execute")
(editor:bind-key "History Previous" "Control-Up" :mode "Execute")
;; Same for Cmd-UP/Down 
(editor:bind-key "History Next" "Hyper-Down" :mode "Execute")
(editor:bind-key "History Previous" "Hyper-Up" :mode "Execute")



Steven Githens <steve@githens.org> writes:

> Hi Lispworks HUG,
>
> I’m just getting started, and running through some of the tutorials [1], on
> MacOS Mojave and Lispworks 7.1.1.
>
> In the listener window I’m having an issue using Meta+P to fill in the previous
> form(s).  When I use Meta-P (Option-P), it’s simply printing a greek pi
> character, and with shift an uppercase pi.  I’m not sure if this happening
> because of keyboard input at the OS level or something in Lispworks.  Is there a
> way for me to remap this action to Meta-Up?  Or any other ideas?
>
> Cheers,
> Steve
>
>
> [1]
> http://www.lispworks.com/documentation/lw71/IDE-M/html/ide-m-8.htm#pgfId-893295
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

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