[ESS] minor glitch switching from Xemacs to Gnu Emacs

John Fox jfox at mcmaster.ca
Thu Jun 1 09:03:54 CEST 2006


Dear Rodney,

Which of these do you advise I use? 

When I have a chance, I'll revise the document on my web site to
include instructions for Windows Emacs users. As I understand it, the
only variation will be to the name and location of the init file.

Regards,
 John

On Wed, 31 May 2006 16:50:15 -0500
 "Rodney Sparapani" <rsparapa at hpi.mcw.edu> wrote:
> Hi John:
>  
> Your init.el file works for emacs as well, if we make the following
> changes.  If it is correct
> to assume that these are valid modes that are just not available on
> my emacs:
>  
> (defun pc-on ()
> "Turn on innocuous pc editing behaviours"
> (condition-case nil
>       (progn
>         (require 'pending-del)
>         (when (featurep 'pending-del)
>               (pending-delete-mode t)) ; can type over or delete
> selected text
>         (require 's-region)
>         (when (featurep 's-region)
>               (s-region-bind-cua))) ; some Windows editing keys
> (error nil)))
> 
> If not, then:
>  (defun pc-on ()
> "Turn on innocuous pc editing behaviours"
>   (if (featurep 'xemacs) (progn 
>      (require 'pending-del)  
>      (pending-delete-mode t) ; can type over or delete selected text
>      (require 's-region)
>      (s-region-bind-cua)))) ; some Windows editing keys
> 
> I tested both with the latest EmacsW32 binary from CVS which is
> currently at 22.0.50.1.
> Other things to note...  Emacs still uses the name ~/.emacs instead
> of ~/.xemacs/init.el.  Both 
> emacs and xemacs seem to need the HOME environment variable to be set
> to launch these
> files automatically.  For emacs, the directory to unpack ESS into is 
> C:\Program Files\Emacs\emacs\site-lisp
> Note that there is also a directory named C:\Program
> Files\Emacs\site-lisp
> that does NOT work.
>  
> Rodney
>  
> ________________________________
> 
> From: John Fox [mailto:jfox at mcmaster.ca]
> Sent: Wed 5/31/2006 2:44 PM
> To: Rodney Sparapani
> Cc: ess-help at stat.math.ethz.ch
> Subject: Re: [ESS] minor glitch switching from Xemacs to Gnu Emacs
> 
> 
> 
> Dear Rodney,
> 
> OK -- I've done this and the new init.el is now on my web site. (It
> would be helpful for someone to verify that the init file works
> properly with Emacs.)
> 
> For this to be really useful, there should be instructions for using
> the init file with Emacs paralleling the instructions already there
> for
> using the init with XEmacs.
> 
> Regards,
>  John
> 
> On Wed, 31 May 2006 13:02:44 -0500
>  Rodney Sparapani <rsparapa at mcw.edu> wrote:
> > Richard M. Heiberger wrote:
> > > good move!
> > >
> > > You probably don't have font-lock mode on in the myfile.R buffer.
> >  You can turn it
> > > on just this time with
> > >    M-x font-lock-mode
> > > I always want it on so I have the line
> > >
> > >   (global-font-lock-mode 1)
> > >
> > > in my .emacs file.
> > >
> >
> > Oh, that makes sense.  xemacs doesn't need that, but emacs does.
> >  Since
> > John's init.el was for xemacs, he wouldn't have included it.  Maybe
> > we
> > can get him to add that so it will work for both.  Something like:
> > ; xemacs has font-locking on by default, but not emacs
> > (if (not (featurep 'xemacs)) (global-font-lock-mode 1))
> >
> > ______________________________________________
> > ESS-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help
> 
> --------------------------------
> John Fox
> Department of Sociology
> McMaster University
> Hamilton, Ontario, Canada
> http://socserv.mcmaster.ca/jfox/
> 
> 

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/




More information about the ESS-help mailing list