auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] Let it byte compile even with GNU Emacs 29.3


From: Dr. Werner Fink
Subject: Re: [PATCH 1/3] Let it byte compile even with GNU Emacs 29.3
Date: Thu, 16 May 2024 11:18:19 +0200

On 2024/05/15 13:16:03 +0200, Arash Esbati wrote:
> "Dr. Werner Fink" <werner@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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]