Hi Arash and all,

>>>>> Arash Esbati <[email protected]> writes:

> sure, you're welcome.  I stumbled over it as I was looking at the
> compiler warnings after rebuilding AUCTeX.  From the ones issued by the
> style files, I think 90% can be avoided by adding these lines to the
> relevant styles:

>     (declare-function font-latex-add-keywords
>                       "font-latex"
>                       (keywords class))

> Another 5% by these lines:

>     (defvar font-latex-syntactic-keywords-extra)
>     (declare-function font-latex-update-font-lock
>                       "font-latex"
>                       (&optional syntactic-kws))

> WDYT, is it worth the effort?  (No, I'm not asking you to do it ;-)

It will significantly improve S/N ratio in the make log.  I think it's
worth doing.

One note: if we care only the warnings at "make", similar result will be
obtained by adding these lines in lpath.el:
(autoload 'font-latex-add-keywords "font-latex")
(autoload 'font-latex-update-font-lock "font-latex")

(It seems that `declare-function' and `defvar' in lpath.el are not
effective in this way, unfortunately.)
Of course this is just a makeshift and not a proper solution.

Bye,
Ikumi Keita

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to