* Andreas Breitbach (2009-06-26) writes: > Oops, I missed that one when tiding up .emacs. Now it's there: > (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/reftex")(and > also showing up at the first position in "C-h v load-path <RET>" and the > "M-x locate-library <RET> reftex-base <RET>" also gives "Library is > file /usr/local/share/emacs/site-lisp/reftex/reftex.el"
Asking for `reftex-base' gives a reference to `reftex'? Are you sure? > ), but I get "RefTeX version 4.31" on "C-h v reftex-version <RET>". That would mean the reftex.el file from the version coming with Emacs is preferred to the one from the CVS version. This is a bit strange because the load path shadows you sent below suggest the opposite. If you do `M-x find-library <RET> reftex <RET>' and search for "reftex-version" in the file, which version do you find? Perhaps you could do the same after starting Emacs with emacs -Q -l auctex --eval "(progn (add-to-list 'load-path \"/usr/local/share/emacs/site-lisp/reftex\") (require 'reftex) (add-hook 'LaTeX-mode-hook 'turn-on-reftex))" file.tex > And I also have the same output on "M-x list-load-path-shadows <RET>" as > I sent along somewhat before: > /usr/local/share/emacs/site-lisp/reftex/reftex-index > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-index > /usr/local/share/emacs/site-lisp/reftex/reftex-sel > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-sel > /usr/local/share/emacs/site-lisp/reftex/reftex-toc > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-toc > /usr/local/share/emacs/site-lisp/reftex/reftex-dcr > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-dcr > /usr/local/share/emacs/site-lisp/reftex/reftex-global > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-global > /usr/local/share/emacs/site-lisp/reftex/reftex-cite > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-cite > /usr/local/share/emacs/site-lisp/reftex/reftex-auc > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-auc > /usr/local/share/emacs/site-lisp/reftex/reftex > hides /usr/share/emacs/22.2/lisp/textmodes/reftex > /usr/local/share/emacs/site-lisp/reftex/reftex-ref > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-ref > /usr/local/share/emacs/site-lisp/reftex/reftex-parse > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-parse > /usr/local/share/emacs/site-lisp/reftex/reftex-vars > hides /usr/share/emacs/22.2/lisp/textmodes/reftex-vars This looks good. > Before producing the aforementioned outputs, I reinstalled RefTeX and > Emacs as mentioned before. > C-c [ doesn't work, of course, but giving me a Backtrace with M-x > toggle-debug-on-error(it seems to be the same output as I sent on > Tuesday, I attached the new one, being called Backtrace2). > Debugger entered--Lisp error: (void-variable reftex-ref-style-alist) This also looks like a mix-up of versions. The code in reftex-base.el references that variable but it is not found in reftex-vars.el (assuming that reftex-vars.el(c) is loaded) which would suggest that the old reftex-vars.el(c) is loaded. I'm not sure how this can happen, especially if /usr/local/share/emacs/site-lisp/reftex is at the front of `load-path'. Did you insert the form for altering `load-path' before or after `(require 'reftex)' into your init file? -- Ralf _______________________________________________ bug-auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-auctex
