EDITOR env var for inferior-ess-process

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Tue Jan 8 22:49:07 CET 2002


Yes, its easy enough for *me* to do that.  In fact, I *already do*.  

The request was inspired by a recent post on the R-help list by someone who
wasn't familiar with (x)emacs.  He was wondering why the R edit() command
didn't work properly with ESS mode.  

The basic question was:  can/should ESS do this 'automatically' to spare the
new user having to figure it out / figure out who to ask?

Perhaps the best thing is to add this to the FAQ. (Is there one?)

-Greg

 >  -----Original Message-----
 >  From: Rodney Sparapani [mailto:rsparapa at post.its.mcw.edu]
 >  Sent: Tuesday, January 08, 2002 3:58 PM
 >  To: gregory_r_warnes at groton.pfizer.com
 >  Subject: Re: EDITOR env var for inferior-ess-process
 >  
 >  
 >  Greg:
 >  
 >  I see now.  But, why do you want ESS to start gnuserv?  Do 
 >  that yourself in 
 >  ~/.xemacs/init.el with (gnuserv-start).  Then, you need to 
 >  change the command 
 >  that starts R to something like...
 >  
 >  sh/ksh
 >  
 >  EDITOR='gnuclient -q'; r
 >  
 >  csh
 >  
 >  setenv EDITOR 'gnuclient -q'; r 
 >  
 >  Rodney
 >   
 >  >From: "Warnes, Gregory R" <gregory_r_warnes at groton.pfizer.com>
 >  >To: "'Rodney Sparapani'" <rsparapa at post.its.mcw.edu>
 >  >Subject: EDITOR env var for inferior-ess-process
 >  >Date: Tue, 8 Jan 2002 15:30:31 -0500 
 >  >MIME-Version: 1.0
 >  >
 >  >
 >  >R provides a command 'edit' which is intended to call an 
 >  editor on an object
 >  >(like <C>-c <C>-d does in ESS).  R uses the environment 
 >  variable 'EDITOR' to
 >  >discover what editor to use.
 >  >
 >  >If ESS started up gnuserv, and then set EDITOR=gnuclient 
 >  when it started R
 >  >(and perhaps S-plus), then when the user enters
 >  >
 >  >	> edit(myfun)
 >  >
 >  >a nice (x)emacs window containing myfun would pop up.
 >  >
 >  >-Greg
 >  >
 >  >
 >  > >  -----Original Message-----
 >  > >  From: Rodney Sparapani [mailto:rsparapa at post.its.mcw.edu]
 >  > >  Sent: Tuesday, January 08, 2002 3:20 PM
 >  > >  To: Warnes, Gregory R
 >  > >  Cc: ess-help at stat.math.ethz.ch
 >  > >  Subject: Re: FW: [R] ESS with Xemacs? [vs. Emacs, slightly 
 >  > >  off topic]
 >  > >  
 >  > >  
 >  > >  Gregory:
 >  > >  
 >  > >  I'm not following your request.  The only purpose that I 
 >  > >  know of for EDITOR is 
 >  > >  to define the command-line editor for ksh.  But, I don't 
 >  > >  think ESS should be 
 >  > >  mucking around with environment variables or gnuserv 
 >  > >  anyways.  Usually, gnuserv 
 >  > >  is handled in your ~/.xemacs/init.el via (gnuserv-start) 
 >  > >  and, for CDE, gnuclient 
 >  > >  in your desktop type file.  I guess I'm missing something.  
 >  > >  Please expand. 
 >  > >  
 >  > >  Thanks, Rodney
 >  > >  
 >  > >  >To: "Warnes, Gregory R" <gregory_r_warnes at groton.pfizer.com>
 >  > >  >Cc: ESS HelpRUS <ess-help at stat.math.ethz.ch>
 >  > >  >Subject: Re: FW: [R] ESS with Xemacs? [vs. Emacs, slightly 
 >  > >  off topic]
 >  > >  >From: rossini at blindglobe.net (A.J. Rossini)
 >  > >  >User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 
 >  (Common Lisp)
 >  > >  >Date: 08 Jan 2002 12:11:24 -0800
 >  > >  >MIME-Version: 1.0
 >  > >  >
 >  > >  >>>>>> "GRW" == Gregory R Warnes <Warnes> writes:
 >  > >  >
 >  > >  >    GRW> Is it possible to (optionally?) have ESS startup 
 >  > >  gnuserv and
 >  > >  >    GRW> set the environement variable 'EDITOR' to 
 >  > >  'gnuclient' so that
 >  > >  >    GRW> edit works properly?
 >  > >  >
 >  > >  >Yes, it's possible.  Best approach for this would be 
 >  to send this
 >  > >  >message to ess-help, and see what people know...  In 
 >  fact, I'll cc'
 >  > >  >the list, apologies.
 >  > >  >
 >  > >  >To everyone else -- thoughts on how to do this?  (it's 
 >  > >  about a 1 hour
 >  > >  >project, but the catch is defining things at the 
 >  right place, and
 >  > >  >possibly add to any gnuserv hooks that are present....).
 >  > >  >
 >  > >  >best,
 >  > >  >-tony
 >  > >  >
 >  > >  >-- 
 >  > >  >A.J. Rossini				Rsrch. Asst. 
 >  > >  Prof. of Biostatistics
 >  > >  >U. of Washington Biostatistics		
 >  > >  rossini at u.washington.edu	
 >  > >  >FHCRC/SCHARP/HIV Vaccine Trials Net	rossini at scharp.org
 >  > >  >-------------- http://software.biostat.washington.edu/ 
 >  > >  --------------
 >  > >  >FHCRC: M-W: 206-667-7025 (fax=4812)|Voicemail is pretty 
 >  > >  sketchy/use Email
 >  > >  >UW:   T-Th: 206-543-1044 (fax=3286)|Change last 4 digits 
 >  > >  of phone to FAX
 >  > >  >Rosen: (Mullins' Lab) Fridays, and I'm unreachable 
 >  except by email.
 >  > >  >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
 >  > >  .-.-.-.-.-.-.-.-.-.-
 >  > >  >ess-help mailing list -- To (un)subscribe, send
 >  > >  >subscribe	or	unsubscribe
 >  > >  >(in the "body", not the subject !)  To: 
 >  > >  ess-help-request at stat.math.ethz.ch
 >  > >  >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
 >  > >  ._._._._._._._._._._
 >  > >  
 >  > >  Rodney Sparapani              Medical College of Wisconsin
 >  > >  Sr. Biostatistician           Patient Care & Outcomes 
 >  > >  Research (PCOR)
 >  > >  rsparapa at mcw.edu              http://www.mcw.edu/pcor
 >  > >  Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
 >  > >  
 >  >
 >  >
 >  >LEGAL NOTICE
 >  >Unless expressly stated otherwise, this message is 
 >  confidential and may be 
 >  privileged. It is intended for the addressee(s) only. 
 >  Access to this E-mail by 
 >  anyone else is unauthorized. If you are not an addressee, 
 >  any disclosure or 
 >  copying of the contents of this E-mail or any action taken 
 >  (or not taken) in 
 >  reliance on it is unauthorized and may be unlawful. If you 
 >  are not an addressee, 
 >  please inform the sender immediately.
 >  
 >  Rodney Sparapani              Medical College of Wisconsin
 >  Sr. Biostatistician           Patient Care & Outcomes 
 >  Research (PCOR)
 >  rsparapa at mcw.edu              http://www.mcw.edu/pcor
 >  Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
 >  


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list