[ESS] ess-toggle-underscore not working in init.el
    Vitalie Spinu 
    spinuvit at gmail.com
       
    Mon Sep 15 20:39:36 CEST 2014
    
    
  
Sorry, I didn't notice Stephen's code. This function is defined in
`ess-s-l.el`. Try "ess" or "ess-s-l".  I don't see why eval-after-load
shouldn't work.
  Vitalie
 >>> Vitalie Spinu on Mon, 15 Sep 2014 11:35:17 -0700 wrote:
 > How do you write you eval-after-load? It should work.
 >  Vitalie
 >>> Gregory Warnes on Mon, 15 Sep 2014 12:32:54 -0400 wrote:
 >> Hi Stephen,
 >> Sadly, eval-after-load produces the same error message, :-(
 >> -Greg
 >> On Mon, Sep 15, 2014 at 12:04 PM, Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>
 >> wrote:
 >>> 
 >>> 
 >>> > Hi All,
 >>> >
 >>> > I'm using Vincent Goulet's fine Emacs for OSX with ess bundled.
 >>> >
 >>> > For some reason, "(ess-toggle-underscore nil)" is generating an error
 >>> > message when I include it in my .emacs.d/init.el file:
 >>> >
 >>> > Warning (initialization): An error occurred while loading
 >>> > `/Users/warnes/.emacs.d/init.el':
 >>> >
 >>> > Symbol's function definition is void: ess-toggle-underscore
 >>> >
 >>> >
 >>> > I recall this working in the past, and executing "(ess-toggle-underscore
 >>> > nil)" after emacs starts up successfully works properly.
 >>> >
 >>> > I suppose that emacs introduced 'lazy-loading' of the ess code, so that
 >>> > ess-toggle-underscore simply isn't defined until after startup is
 >>> > complete.
 >>> 
 >>> Yes, I think this is because of the way ESS is loaded in Vincent's fine
 >>> package.  Does something like the following (untested) work?
 >>> 
 >>> (eval-after-load  "ess-mode" '(ess-toggle-underscore))
 >>>
    
    
More information about the ESS-help
mailing list