Hrvoje Niksic wrote:
Scott Blachowicz <scott.xemacs(a)mail.dsab.rresearch.com>
writes:
> 1) I ssh into a Linux box
> 2) run 'xemacs -q'
> 3) Within xeamcs, do `M-x gnuserv-start'
> 4) Within xemacs, do `M-x shell'
> 5) Within the *shell* buffer, type 'gnuclient foobar'
>
> At this point, if I have a usable $DISPLAY setting, I would get a new
> frame. If I do NOT have a usable $DISPLAY, it complains about:
Byt *why* are you trying to run terminal-based GNU client under an
Emacs shell? Are you aware that Emacs shell doesn't provide a
terminal emulation? If you wish to run XEmacs under itself, use `M-x
term' instead of `M-x shell', and it will probably work.
If you want to edit a file from the shell buffer, simply use `C-x C-f'!
> Anyways...it'd be nice if the xemacs could track the tty that was in
> use by its own shell buffers to be able to detect gnuclient runs
> from within those shells and handle them.
Hmm, so you'd like `gnuclient foo' in an inferior shell to tell the
running XEmacs to load foo without bothering to set up a separate TTY.
That might even be doable, but would require hacking the gnuclient
source code as well as that of gnuserv. Good luck. :-)
Scott: I think that you want this:
(setq gnuserv-frame t)
or this:
M-x customize-variable RET gnuserv-frame RET
C-h v gnuserv-frame:
`gnuserv-frame' is a variable declared in Lisp.
-- loaded from "gnuserv"
Value: t
Documentation:
*The frame to be used to display all edited files.
If nil, then a new frame is created for each file edited.
If t, then the currently selected frame will be used.
If a function, then this will be called with a symbol `x' or `tty' as the
only argument, and its return value will be interpreted as above.
--
Glynn Clements <glynn.clements(a)virgin.net>