Lisp HUG Maillist Archive

How do copy from LW to Mac clipboard ??

Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ...
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn

Re: How do copy from LW to Mac clipboard ??

Assuming that the text is in a pane, I use something like:

("Copy generated SPARQL to clipboard"
:callback
#'(lambda (&rest x) (declare (ignore x))
(let ((messages (capi:editor-pane-text text-pane2)))
(capi::set-clipboard text-pane2 (format nil "~%" messages) nil))))

-Mark

On Thu, May 21, 2020, at 12:47 PM, Glenn Iba wrote:
Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ....
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn


Mark Watson, consultant and author of 20+ books: https://markwatson.com

It is better to travel well than to arrive. - Buddha

Re: How do copy from LW to Mac clipboard ??

Hi Mark and all,

  Sorry if I wasn't clear.  I'm not trying to copy programmatically ...
Simply move (by copy paste) manually from LW to another app (emacs, Android Studio, etc)

It used to work to simply do Cmd-C to copy selected text in LispWorks, then do ctrl-y in Emacs,
or Cmd-V to paste in Android Studio.

This doesn't work for me using LWPE 7.1.2 on Mac Mojave.
Is it a bug, or am I missing something?

Thanks,
  --Glenn


On Thu, May 21, 2020 at 3:52 PM Mark Watson <markw@markwatson.com> wrote:
Assuming that the text is in a pane, I use something like:

("Copy generated SPARQL to clipboard"
:callback
#'(lambda (&rest x) (declare (ignore x))
(let ((messages (capi:editor-pane-text text-pane2)))
(capi::set-clipboard text-pane2 (format nil "~%" messages) nil))))

-Mark

On Thu, May 21, 2020, at 12:47 PM, Glenn Iba wrote:
Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ...
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn


Mark Watson, consultant and author of 20+ books: https://markwatson.com

It is better to travel well than to arrive. - Buddha

Re: How do copy from LW to Mac clipboard ??

Copying from where, how?  I still have Mojave and I could copy from a file and from Listener output with command-C.

Did you remember to set Preferences | Environment  | Emulation to “Editor keys are like Mac OS X editors” ?

On May 21, 2020, at 2:47 PM, Glenn Iba <giba@alum.mit.edu> wrote:

Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ...
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn


------------------
Christopher Riesbeck (he/him/his)
Associate Professor, Computer Science, 
McCormick School of Engineering, Northwestern

Director, MS in Computer Science
Co-director, The Center for Computer Science and Learning Sciences

Home page: https://users.cs.northwestern.edu/~riesbeck
Calendar: https://users.cs.northwestern.edu/~riesbeck/calendar-weekly.html


Re: How do copy from LW to Mac clipboard ??

Hi Christopher,

  I have my emulation set to "Editor Keys are like Emacs",
which is how I had it under LWPE 6.1.1.
I tried switching it back to behave like MacOS keys,
but still was not able to copy with Cmd-C.

Are you using the new LWPE 7.1.2, or something other than PE perhaps?

I have a kludgy workaround where I open a text file within LispWorks,
then paste to that, then open with Emacs or another app.
This becomes tedious & frustrating however.  Would like it to work as
advertised:
   The Edit Menu of LWPE gives Cmd-C as the copy command,
but it doesn't copy to my Mac Clipboard as far as I can tell.

Thanks,
  --Glenn

Thanks,
  --Glenn

On Thu, May 21, 2020 at 4:11 PM Christopher Riesbeck <c-riesbeck@northwestern.edu> wrote:
Copying from where, how?  I still have Mojave and I could copy from a file and from Listener output with command-C.

Did you remember to set Preferences | Environment  | Emulation to “Editor keys are like Mac OS X editors” ?

On May 21, 2020, at 2:47 PM, Glenn Iba <giba@alum.mit.edu> wrote:

Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ...
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn


------------------
Christopher Riesbeck (he/him/his)
Associate Professor, Computer Science, 
McCormick School of Engineering, Northwestern

Director, MS in Computer Science
Co-director, The Center for Computer Science and Learning Sciences

Home page: https://users.cs.northwestern.edu/~riesbeck
Calendar: https://users.cs.northwestern.edu/~riesbeck/calendar-weekly.html


Re: How do copy from LW to Mac clipboard ??

LW 7.1.2 Personal, MacOS Mojave. Behave like MacOS keys is turned on. I tested all that before I replied. I pasted into an empty email to make sure the clipboard had what I copied.

On May 21, 2020, at 3:37 PM, Glenn Iba <giba@alum.mit.edu> wrote:

Hi Christopher,

  I have my emulation set to "Editor Keys are like Emacs",
which is how I had it under LWPE 6.1.1.
I tried switching it back to behave like MacOS keys,
but still was not able to copy with Cmd-C.

Are you using the new LWPE 7.1.2, or something other than PE perhaps?

I have a kludgy workaround where I open a text file within LispWorks,
then paste to that, then open with Emacs or another app.
This becomes tedious & frustrating however.  Would like it to work as
advertised:
   The Edit Menu of LWPE gives Cmd-C as the copy command,
but it doesn't copy to my Mac Clipboard as far as I can tell.

Thanks,
  --Glenn

Thanks,
  --Glenn

On Thu, May 21, 2020 at 4:11 PM Christopher Riesbeck <c-riesbeck@northwestern.edu> wrote:
Copying from where, how?  I still have Mojave and I could copy from a file and from Listener output with command-C.

Did you remember to set Preferences | Environment  | Emulation to “Editor keys are like Mac OS X editors” ?

On May 21, 2020, at 2:47 PM, Glenn Iba <giba@alum.mit.edu> wrote:

Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ...
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn


------------------
Christopher Riesbeck (he/him/his)
Associate Professor, Computer Science, 
McCormick School of Engineering, Northwestern

Director, MS in Computer Science
Co-director, The Center for Computer Science and Learning Sciences

Home page: https://users.cs.northwestern.edu/~riesbeck
Calendar: https://users.cs.northwestern.edu/~riesbeck/calendar-weekly.html



------------------
Christopher Riesbeck (he/him/his)
Associate Professor, Computer Science, 
McCormick School of Engineering, Northwestern

Director, MS in Computer Science
Co-director, The Center for Computer Science and Learning Sciences

Home page: https://users.cs.northwestern.edu/~riesbeck
Calendar: https://users.cs.northwestern.edu/~riesbeck/calendar-weekly.html


Re: How do copy from LW to Mac clipboard ??

Hi Christopher,

  Thanks for testing and verifying.  Something must be screwed up about
my environment.  

... pause ....

  I tried restarting my computer, and now the clipboard seems to be working again.
Even with Emacs editor emulation in LW.
Strange thing was that mac clipboard copy/paste worked between other apps,
and even from emacs -> LWPE,  but NOT from LWPE -> Emacs or Gmail etc.

Now its working all ways ... using M-W to copy and Cmd-V to paste into Gmail.
Also works with Cmd-C to copy in LW. and can paste in Emacs with ctrl-y.
Hope it keeps working :)

Don't know what was failing -- hope I don't have to restart machine every time the problem
re-surfaces :) :)

Thanks again!
 --Glenn


On Thu, May 21, 2020 at 4:55 PM Christopher Riesbeck <c-riesbeck@northwestern.edu> wrote:
LW 7.1.2 Personal, MacOS Mojave. Behave like MacOS keys is turned on. I tested all that before I replied. I pasted into an empty email to make sure the clipboard had what I copied.

On May 21, 2020, at 3:37 PM, Glenn Iba <giba@alum.mit.edu> wrote:

Hi Christopher,

  I have my emulation set to "Editor Keys are like Emacs",
which is how I had it under LWPE 6.1.1.
I tried switching it back to behave like MacOS keys,
but still was not able to copy with Cmd-C.

Are you using the new LWPE 7.1.2, or something other than PE perhaps?

I have a kludgy workaround where I open a text file within LispWorks,
then paste to that, then open with Emacs or another app.
This becomes tedious & frustrating however.  Would like it to work as
advertised:
   The Edit Menu of LWPE gives Cmd-C as the copy command,
but it doesn't copy to my Mac Clipboard as far as I can tell.

Thanks,
  --Glenn

Thanks,
  --Glenn

On Thu, May 21, 2020 at 4:11 PM Christopher Riesbeck <c-riesbeck@northwestern.edu> wrote:
Copying from where, how?  I still have Mojave and I could copy from a file and from Listener output with command-C.

Did you remember to set Preferences | Environment  | Emulation to “Editor keys are like Mac OS X editors” ?

On May 21, 2020, at 2:47 PM, Glenn Iba <giba@alum.mit.edu> wrote:

Hi,

  I'm loving the new LWPE 7.1.2 -- thanks for releasing this update!!

So far everything works great ...
EXCEPT:
   I can't seem to copy to my Mac Clipboard
     (would like to be able to move data to other applications)

Does it matter that I'm still using Mac Mojave?
Will this work once I upgrade to Catalina on my Mac?

Any suggestions or enlightenment much appreciated !!

Thanks,
  --Glenn


------------------
Christopher Riesbeck (he/him/his)
Associate Professor, Computer Science, 
McCormick School of Engineering, Northwestern

Director, MS in Computer Science
Co-director, The Center for Computer Science and Learning Sciences

Home page: https://users.cs.northwestern.edu/~riesbeck
Calendar: https://users.cs.northwestern.edu/~riesbeck/calendar-weekly.html



------------------
Christopher Riesbeck (he/him/his)
Associate Professor, Computer Science, 
McCormick School of Engineering, Northwestern

Director, MS in Computer Science
Co-director, The Center for Computer Science and Learning Sciences

Home page: https://users.cs.northwestern.edu/~riesbeck
Calendar: https://users.cs.northwestern.edu/~riesbeck/calendar-weekly.html


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