foo;

wxMaxima must be called with --enableipc for IPC to work!

The lisp code generates ipc event markup for SELECTALL, SELECTALL, COPY, PASTE.
The events are delivered *queued*.
It used to crashe wxMaxima due to a logic bug in the Worksheet::PasteFromClipboard.

:lisp (format t "<ipc><qevent type=\"MENU\" id=\"SELECTALL\" /><qevent type=\"MENU\" id=\"SELECTALL\" /><qevent type=\"MENU\" id=\"COPY\" /><qevent type=\"MENU\" id=\"PASTE\" /></ipc>")