[ESS] problems with emacclient

Brendan Halpin brendan.halpin at ul.ie
Fri Nov 4 11:10:04 CET 2005


> On Nov 3, 2005, at 2:03 PM, Rodney Sparapani wrote:
> > There is alot of code that depends on whether you are running GNU  
> > Emacs
> > or XEmacs.  So, most people have a site defined way of doing that  
> > like:
> > (setq xemacs-p nil) ; for GNU Emacs
> > (setq xemacs-p t)   ; for XEmacs
> >
> > So actually, the code is incomplete.  It needs to be something like:
> >
> >> (add-hook
> >>   'inferior-ess-mode-hook
> >>   '(lambda()
> >>     (if (xemacs-p) (gnuserv-start)
> >> 	(server-start nil))))

To make it stand-alone, the snippet could reduce to 

(if (fboundp 'gnuserv-start)
        (gnuserv-start)
      (server-start nil))

i.e. if the Xemacs version of the function is bound (exists) call
that, otherwise call the GNU Emacs version.

Brendan


-- 
Brendan Halpin,  Department of Sociology,  University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:brendan.halpin at ul.ie  http://www.ul.ie/sociology/brendan.halpin.html




More information about the ESS-help mailing list