theclapp

Search theclapp.blog-city.com

 

lwclient: bug fix: X error when Editor window iconified

posted Wednesday, 20-Jun-2007
The lwclient program as listed here has a problem, at least for me. If the editor window is iconified, under some conditions I get an error box from Lispworks complaining about an X protocol error. And sometimes I get an error message in the terminal I started Lispworks in and I have to just kill it.

I spelunked the fvwm man page a bit and figured out how to uniconify a window from a shell script: FvwmCommand -r 'Next ("Lispworks", "Editor *") Iconify off'. Here's a new lwclient:

#!/usr/bin/zsh

FvwmCommand -r 'Next ("Lispworks", "Editor *") Iconify off'

(
echo "lwclient$RANDOM"
echo "(progn "
for f in "$@" ; do
if [[ $f = /* ]] ; then
echo "(editor:find-file-command nil #p\"$f\")"
else
echo "(editor:find-file-command nil #p\"$PWD/$f\")"
fi
done
echo ")"
) \
| nc -q 1 localhost 65000 \
> /dev/null

tags:        

links: digg this    del.icio.us    technorati    reddit