[ESS] problems with emacclient

Rodney Sparapani rsparapa at mcw.edu
Thu Nov 3 23:03:04 CET 2005


Kasper Daniel Hansen wrote:

>
>
>Copy/pasting this thing I get "symbol's value as variable is void:  
>xemacs-p
>
>This is using GNU Emacs (for Mac) based on a "recent" cvs version of  
>v22.0.50 and ess 5.2.10.
>
>I guess xemacs-p is some locally defined variable?
>
>Kasper
>  
>
Hi Kasper:

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))))




More information about the ESS-help mailing list