[Top][All Lists]

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

[AUCTeX] Suppressing compiler warnings (was Re: Set automatically TeX-PD

From: Ikumi Keita
Subject: [AUCTeX] Suppressing compiler warnings (was Re: Set automatically TeX-PDF-from-DVI variable if documentclass receives option dvipdfmx or dvipdfm)
Date: Thu, 06 Dec 2018 15:32:17 +0900

Hi Arash and all,

>>>>> Arash Esbati <address@hidden> 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.

Ikumi Keita

reply via email to

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