Julian Gilbey <j...@debian.org> writes: [...]
> Something is very strange, indeed. The directory > /usr/share/emacs25/site-lisp/auctex/ has meaningful symlinks to > ../../../emacs/site-lisp/auctex/* files, but the subdirectory style > has no symlinks in it at all, but that is presumably because line 94 > of /usr/lib/emacsen-common/packages/install/auctex deletes them. The truth is I just recently did look at the AUCTeX package for two NMU, and I don't yet fully understand how things are done. The deletion of those link seem intentional, and is probably legit, I just didn't expect it. > On the other hand, as you say, in > /usr/share/emacs/site-lisp/auctex/style/subfigure.el, the setq > TeX-complete-list is at line 48. > > I tried a modified version of install/auctex which does not delete the > style/*.el files, and confirmed that indeed lines 44-51 are as you > say. Not sure, to say the truth, I didn't look very in detail how auctex package work, and just did superficial bug hunting on it. I will have to look on the how and why of the different part of the packaging. > > I think I have found the bug, though, and here's a patch which I > believe fixes it; the paretheses are wrong in the append command: > > --- style/subfigure.el 2016-11-25 11:00:39.000000000 +0000 > +++ style/subfigure2.el 2016-12-02 14:00:18.598610954 +0000 > @@ -47,8 +47,8 @@ > ;; Install completion for labels: > (setq TeX-complete-list > (append > - '(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}"))) > - TeX-complete-list) > + '(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")) > + TeX-complete-list)) > > ;; Fontification > (when (and (featurep 'font-latex) > Thanks for the patch. > I don't know why this doesn't cause a problem in emacs24, or why > no-one else has seen/had/noticed the problem. Yes, this is strange, I have both emacs25 and auctex with no problem. I did test my last NMU, and no error seem to happen. -- Rémi Vanicat