[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Tassilo Horn
Stefan Monnier writes: >> And with the ELPA builds, I think it's the same thing. > > IIRC there are different cases. > > When installing an ELPA package, indeed all the .el files are compiled > within the running Emacs. There aren't many guarantees of ordering > tho, so it could potentially happ

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Tassilo Horn
Stefan Monnier writes: >> 1. Many TeX-* and LaTeX-* functions and variables are not generated >>before tex.el and latex.el are loaded. AUCTeX has an auto parser > [...] >>The byte-compiler doesn't seem to execute top-level funcalls, so all >>those functions/vars are unknown at compil

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread David Kastrup
Tassilo Horn writes: > Wrapping with (eval-when (compile load eval) ...) seems to work, but I'm > not sure if that's a good idea. > >> Or you could turn them into macros. > > Indeed, that looks like a typical use-case for macros, but I'm rather > sure that there's a good reason that the auto pars

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Tassilo Horn
David Kastrup writes: >>> Or you could turn them into macros. >> >> Indeed, that looks like a typical use-case for macros, but I'm rather >> sure that there's a good reason that the auto parser stuff is like it >> is. David? > > [...] > At any rate, the base of the style code has probably not be

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Stefan Monnier
> That's ok. But if the style files were compiled, adding the requires > into the style files would make the compilation take minutes, because > each style file compilation would need to load the core files first. Yup. I personally don't see much need to add the `require's in those style files.

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Stefan Monnier
>>> I guess I should wrap those TeX-auto-add-type calls with a >>> `eval-when-compile', right? >> You could. > No, I get a compile error in tex.el when compiling Of course, eval-when-compile and eval-and-compile come with their own set of problems. My "you could" wasn't really meant as an encoura

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Tassilo Horn
Stefan Monnier writes: >>> Or you could turn them into macros. >> Indeed, that looks like a typical use-case for macros, but I'm rather >> sure that there's a good reason that the auto parser stuff is like it >> is. David? > > Whatever the reason, looking at the code of TeX-auto-add-type, I thin

[Bug-AUCTeX] Diagnose and Report Bug

2014-01-31 Thread Gretchen Kopmanis
Title: Error occurred after last TeX file closed Description: We are having the same problem that many others are posting about on the forums.

[Bug-AUCTeX] bug#16573: 24.3; Auctex (11.87.2) in Elpa issues hundreds of warnings on compile

2014-01-31 Thread Tassilo Horn
Stefan Monnier writes: >> That's ok. But if the style files were compiled, adding the requires >> into the style files would make the compilation take minutes, because >> each style file compilation would need to load the core files first. > > Yup. I personally don't see much need to add the `r

Re: [Bug-AUCTeX] Diagnose and Report Bug

2014-01-31 Thread Tassilo Horn
Gretchen Kopmanis writes: Hi Gretchen, > Now, though, pressing Control-C-` (as instructed) gets me no > information about the error, but rather the message "Error occurred > after last TeX file closed." This means that AUCTeX couldn't find out in which tex file the error occured. I've recently