On Sat, 25 May 2002 10:09:07 PDT, Albert Ting <alt(a)artisan.com> said:
I sometimes have two window managers running (unix:0 and unix:1 via
vnc) but
would like to access the same xemacs process. With older versions of xemacs
(I believe the xemacs-21.1 branch), I could do something like:
xemacs-gnuclient -display unix:1 -batch -eval '(make-frame)'
The basic problem is that the gnuserve code gets run in the context
of the "default" server (basically, DISPLAY is always :0), and although
it *LOOKS* like you can use the gnuserv-special-frame-function to specify
"create a new frame", your only *real* choices are "create new frame each
time" and "Use selected frame" - in gnuserv-edit-files we find this:
(let* ((old-device-num (length (device-list)))
(new-frame nil)
(dest-frame (if (functionp gnuserv-frame)
(funcall gnuserv-frame (car type))
gnuserv-frame))
For gnuserv under X, "type" is (X DISPLAY-of-gnuclient), but we pass (car type)
to
gnuserv-frame so it can't make decisions based on the value of DISPLAY.
--
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech