On 2024/05/15 13:16:03 +0200, Arash Esbati wrote: > "Dr. Werner Fink" <wer...@suse.de> writes: > > > That help a lot but at the end it stumbles over lwarp.sty with an other > > error: > > > > [ 109s] Error: scan-error ("Containing expression ends prematurely" 4 5) > > > > I'll attach the lisp backtrace > > I think this is an issue within lwarp.sty which has entries like this: > > \NewDocumentCommand{\LWR@htmlspanclass}{o D(){} m +m}{% > > which are parsed correctly and entries like this: > > \NewDocumentCommand{\LWR@HTML@InlineClass}{D{(}{)}{} o m +m}{% > > which break AUCTeX. Note the extra pair of braces around the > parenthesis. `LaTeX-xparse-macro-parse' expects the specifier like > this: > > D(){} > > which is how it is documented in usrguide.tex. So D{(}{)}{} might be > valid LaTeX code, but it is not the way it is expected. For me, this is > currently "won't fix" until I see more examples that AUCTeX really has > to cater for extra pair of braces around the delimiter tokens.
I now skip lwarp.sty by using: %if %{with tex4auto} pwd echo "Run the command TeX-auto-generate-global in mini buffer" ignore="$(sed -rn '/^\(defcustom TeX-ignore-file/,+1{ s@^\s+@@;s@(\\\\)(\)\$)@\1|lwarp\\.sty\\\\\2@p }' < ../tex.el)" emacs-gtk -batch -Q -L %{buildroot}%{_sitedir}/auctex \ --eval '(setq TeX-lisp-directory "%{buildroot}%{_aucdir}")' \ --eval "(setq TeX-install-font-lock #'ignore)" \ --eval "(setq TeX-ignore-file ${ignore})" \ --eval '(setq TeX-auto-global "%{buildroot}%{_aucdir}/auto")' \ -l %{buildroot}%{_sitedir}/tex-site.el -f TeX-auto-generate-global exit 1 %else and it finally works. Thanks a lot! Ciao Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
signature.asc
Description: PGP signature