Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs incorrectly looking for .el instead of .elc
    primarykey
    data
    text
    <p>I recently started using django-html-mumamo-mode which is part of nXhtml in emacs and everything seems to work except that when I start writing javascript code in an html page, I get the warning/error</p> <pre><code>Can't find library /usr/share/emacs/23.2/lisp/progmodes/js.el </code></pre> <p>I checked in that folder and all of the files have the <code>.elc</code> extension including <code>js.elc</code>, which is probably why emacs can't find it. Can I change something to make emacs just load the <code>.elc</code> file?</p> <p><strong>Edit:</strong> This continues to occur if I run <code>M-x load-library js</code> or <code>M-x load-library js.elc</code></p> <p><strong>Edit2:</strong> I have confirmed that <code>load-suffixes</code> is set to <code>("el" "elc")</code>, and that js.elc is in the <code>progmodes</code> folder, which is in <code>load-path</code> and that all users have read permissions for that file. I am using emacs version 23.2.1, and when I set <code>debug-on-error</code> to <code>t</code> I got a traceback, and it looks like the following part contains the error:</p> <pre><code>error("Can't find library %s" "/usr/share/emacs/23.2/lisp/progmodes/js.el") find-library-name("/usr/share/emacs/23.2/lisp/progmodes/js.el") find-function-search-for-symbol(js-indent-line nil "/usr/share/emacs/23.2/lisp/progmodes/js.elc") (let* ((lib ...) (where ...) (buf ...) (pos ...)) (with-current-buffer buf (let ... ... ... ...)) (put fun (quote mumamo-evaled) t)) (if (get fun (quote mumamo-evaled)) nil (let* (... ... ... ...) (with-current-buffer buf ...) (put fun ... t))) (unless (get fun (quote mumamo-evaled)) (let* (... ... ... ...) (with-current-buffer buf ...) (put fun ... t))) (progn (unless (get fun ...) (let* ... ... ...))) (if mumamo-stop-widen (progn (unless ... ...))) (when mumamo-stop-widen (unless (get fun ...) (let* ... ... ...))) </code></pre> <p>Notably, the third line contains a reference to the correct file, but it ends up trying to load the wrong one. Has anyone seen this kind of thing before or have any idea how to fix it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload