Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have recently added the file ac-R.el to /usr/local/share/emacs/site-lisp, along with (require 'ac-R) to ~/.emacs

Now, when I open emacs with --debug-init, I get the error

    Debugger entered--Lisp error: (void-variable ac-modes)
  add-to-list(ac-modes ess-mode)
  eval-buffer(#<buffer  *load*<2>> nil "/usr/local/share/emacs/site-lisp/ac-R.el" nil t)  ; Reading at buffer position 7191
  load-with-code-conversion("/usr/local/share/emacs/site-lisp/ac-R.el" "/usr/local/share/emacs/site-lisp/ac-R.el" nil t)
  require(ac-R)
  eval-buffer(#<buffer  *load*> nil "/home/dlebauer/.emacs" nil t)  ; Reading at buffer position 3548
  load-with-code-conversion("/home/dlebauer/.emacs" "/home/dlebauer/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "\205\264

and when clicking on load-with-code-conversion, it says

Can't find library /usr/share/emacs/23.1.50/lisp/international/mule.el

even though I have installed mule via synaptic (I am using Ubuntu 10.04)

How can I get the mule library in the right place?

share|improve this question
    
your problem is not missing mule, but that ac-R.el is a HTML file and not a Lisp file. Make sure you have saved the correct file there. :-) –  mihi Feb 23 '11 at 21:14
    
@mihi thanks; I retrieved the file with wget http://www.emacswiki.org/emacs/ac-R.el but now I see that http://www.emacswiki.org/emacs/download/ac-R.el is the correct link –  David Feb 23 '11 at 21:57
    
@mihi I have changed the error message to the one that I get when using the Lisp file ... –  David Feb 23 '11 at 22:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.