Re: gnuclient does not work when called from tkcvs

Glynn Clements <[email protected]> Wed, 10 May 2006 23:09:57 +0100
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
[email protected] wrote:

> Since I have no idea if this is a tkcvs or xemacs problem, I send this to 
> both parties...
> 
> tkcvs 8.0.3 can edit files with an external editor, configurable in .tkcvs 
> like this:
> set cvscfg(editor) "/home/gru/bin/xemacs"
> 
> ~/bin/xemacs is a wrapper that opens a gnuclient session if xemacs is 
> already running, or starts a new xemacs if not:
> 
> --------------------------------------------------------
> #!/bin/bash
> gnuclient $@ 2> /dev/null
> error=$?
> 
> [ $error -eq 0 ] && exit
> 
> xmessage "ErrorCode: $error" &
> 
> [ -x /usr/bin/xemacs ] && /usr/bin/xemacs $@
> --------------------------------------------------------
> 
> This works perfectly everywhere, except when called from tkcvs. From 
> there, gnuclient always returns with an error, even when xemacs is 
> running...
> 
> It would be great if anyone could help me there...

One possibility: for the communication socket, gnuserv and gnuclient
use TMPDIR if it is set, and /tmp otherwise. If tkcvs sets, unsets or
modifies TMPDIR, gnuclient won't be able to connect to gnuserv.

-- 
Glynn Clements <[email protected]>