FW: [R] ESS with Xemacs? [vs. Emacs, slightly off topic]

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


Another way to add the mode line: use a wrapper script to do the work.
Something like

EDITOR=GnuEdit

GnuEdit contains:

	#!/bin/sh
	echo "Opening using gnuclient..."
	cp $1 $1.bak
	echo "# -*- mode: S -*-" > $1
	cat $1.bak >> $1
	rm $1.bak
	gnuclient $*

-Greg

 >  -----Original Message-----
 >  From: Jeff Mincy [mailto:jeff at delphioutpost.com]
 >  Sent: Tuesday, January 08, 2002 4:32 PM
 >  To: rossini at u.washington.edu
 >  Cc: Warnes, Gregory R; ESS HelpRUS
 >  Subject: Re: FW: [R] ESS with Xemacs? [vs. Emacs, slightly 
 >  off topic]
 >  
 >  
 >  On 08 Jan 2002, rossini at blindglobe.net wrote:
 >  
 >  >>>>>> "JM" == Jeff Mincy <jeff at delphioutpost.com> writes:
 >  
 >  >     JM> And splus pops up a xemacs window editing 'fix' in a
 >  >     JM> temporary file named fix$$.  Unfortunately, the 
 >  fix function
 >  >     JM> doesn't do anything to tell xemacs that S-mode should be
 >  >     JM> used for the function.
 >  > 
 >  > This is what needs to be solved -- it might be as simple as having
 >  > fix stick a mode-type header, i.e.
 >  > 
 >  > # -*- mode: S -*-
 >  > 
 >  > on the first line if needed...
 >  
 >  Yes, a mode line would work. Alternatively you can change 
 >  the default
 >  temporary file used by FIX to include a Splus type suffix.
 >  
 >  Eg:
 >  
 >  > options(editor="gnuclient")
 >  > fix(fix, file=paste(tempfile("fix"), ".s", sep=""))
 >  
 >  -jeff
 >  


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