branch: externals/auctex commit 92de01746b2841477d4fc01f98de5d2adcd1f095 Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
; Fix byte-compile warnings in styles --- style/ulem.el | 2 + style/unicode-math.el | 3 + style/units.el | 2 + style/url.el | 3 + style/varioref.el | 3 + style/verbatim.el | 3 + style/virtex.el | 153 +++++++++++++++++++++++++------------------------- style/vwcol.el | 3 + style/wrapfig.el | 3 + style/xkcdcolors.el | 2 + style/xltabular.el | 5 ++ style/xparse.el | 3 + style/xspace.el | 2 + style/zlmtt.el | 2 + 14 files changed, 114 insertions(+), 75 deletions(-) diff --git a/style/ulem.el b/style/ulem.el index 438571e..d9e5e41 100644 --- a/style/ulem.el +++ b/style/ulem.el @@ -28,6 +28,8 @@ ;;; Code: +(require 'tex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/unicode-math.el b/style/unicode-math.el index a0b8a9f..b87363d 100644 --- a/style/unicode-math.el +++ b/style/unicode-math.el @@ -29,6 +29,9 @@ ;;; Code: +(require 'tex) +(require 'latex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/units.el b/style/units.el index 76be79d..b20132a 100644 --- a/style/units.el +++ b/style/units.el @@ -29,6 +29,8 @@ ;;; Code: +(require 'tex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/url.el b/style/url.el index 53708b8..418b772 100644 --- a/style/url.el +++ b/style/url.el @@ -30,6 +30,9 @@ ;;; Code: +(require 'tex) +(require 'latex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/varioref.el b/style/varioref.el index 300aac5..5ab7adb 100644 --- a/style/varioref.el +++ b/style/varioref.el @@ -30,6 +30,9 @@ ;;; Code: +(require 'tex) +(require 'tex-style) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/verbatim.el b/style/verbatim.el index 6ae6f60..cd6a0b8 100644 --- a/style/verbatim.el +++ b/style/verbatim.el @@ -29,6 +29,9 @@ ;;; Code +(require 'tex) +(require 'latex) + ;; Silence the compiler: (declare-function font-latex-set-syntactic-keywords "font-latex") diff --git a/style/virtex.el b/style/virtex.el index ae423c0..c4571ad 100644 --- a/style/virtex.el +++ b/style/virtex.el @@ -4,80 +4,83 @@ ;;; Code: -(TeX-add-style-hook "virtex" - (lambda () - (TeX-add-symbols "/" "above" "abovedisplayshortskip" - "abovedisplayskip" "abovewithdelims" "accent" - "adjdemerits" "advance" "afterassignment" - "aftergroup" "atop" "atopwithdelims" "badness" - "baselineskip" "batchmode" "begingroup" - "belowdisplayshortskip" "belowdisplayskip" - "binoppenalty" "botmark" "box" "boxmaxdepth" - "brokenpenalty" "catcode" "char" "chardef" - "cleaders" "closein" "closeout" "clubpenalty" - "copy" "count" "countdef" "cr" "crcr" "csname" - "day" "deadcycles" "def" "defaulthyphenchar" - "defaultskewchar" "delcode" "delimiter" - "delimiterfactor" "delimitershortfall" "dimen" - "dimendef" "discretionary" "displayindent" - "displaylimits" "displaystyle" - "displaywidowpenalty" "displaywidth" "divide" - "doublehyphendemerits" "dp" "dump" "edef" "else" - "emergencystretch" "end" "endcsname" "endgroup" - "endinput" "endlinechar" "eqno" "errhelp" - "errmessage" "errorcontextlines" "errorstopmode" - "escapechar" "everycr" "everydisplay" - "everyhbox" "everyjob" "everymath" "everypar" - "everyvbox" "exhyphenpenalty" "expandafter" - "fam" "fi" "finalhyphendemerits" "firstmark" - "floatingpenalty" "font" "fontdimen" "fontname" - "futurelet" "gdef" "global" "globaldefs" - "halign" "hangafter" "hangindent" "hbadness" - "hbox" "hfil" "hfill" "hfilneg" "hfuzz" - "hoffset" "holdinginserts" "hrule" "hsize" - "hskip" "hss" "ht" "hyphenpenation" "hyphenchar" - "hyphenpenalty" "if" "ifcase" "ifcat" "ifdim" - "ifeof" "iffalse" "ifhbox" "ifinner" "ifhmode" - "ifmmode" "ifnum" "ifodd" "iftrue" "ifvbox" - "ifvoid" "ifx" "ignorespaces" "immediate" - "indent" "input" "inputlineno" "insert" - "insertpenalties" "interlinepenalty" "jobname" - "kern" "language" "lastbox" "lastkern" - "lastpenalty" "lastskip" "lccode" "leaders" - "left" "lefthyphenmin" "leftskip" "leqno" "let" - "limits" "linepenalty" "lineskip" - "lineskiplimit" "long" "looseness" "lower" - "lowercase" "mag" "markaccent" "mathbin" - "mathchar" "mathchardef" "mathchoise" - "mathclose" "mathcode" "mathinner" "mathhop" - "mathopen" "mathord" "mathpunct" "mathrel" - "mathsurround" "maxdeadcycles" "maxdepth" - "meaning" "medmuskip" "message" "mkern" "month" - "moveleft" "moveright" "mskip" "multiply" - "muskip" "muskipdef" "newlinechar" "noalign" - "noboundary" "noexpand" "noindent" "nolimits" - "nonscript" "nonstopmode" "nulldelimiterspace" - "nullfont" "number" "omit" "openin" "openout" - "or" "outer" "output" "outputpenalty" - "overfullrule" "parfillskip" "parindent" - "parskip" "pausing" "postdisplaypenalty" - "predisplaypenalty" "predisplaysize" - "pretolerance" "relpenalty" "rightskip" - "scriptspace" "showboxbreadth" "showboxdepth" - "smallskipamount" "spaceskip" "splitmaxdepth" - "splittopskip" "tabskip" "thickmuskip" - "thinmuskip" "time" "tolerance" "topskip" - "tracingcommands" "tracinglostchars" - "tracingmacros" "tracingonline" "tracingoutput" - "tracingpages" "tracingparagraphs" - "tracingrestores" "tracingstats" "uccode" - "uchyph" "underline" "unhbox" "unhcopy" "unkern" - "unpenalty" "unskip" "unvbox" "unvcopy" - "uppercase" "vadjust" "valign" "vbadness" "vbox" - "vcenter" "vfil" "vfill" "vfilneg" "vfuzz" - "voffset" "vrule" "vsize" "vskip" "vss" "vtop" - "wd" "widowpenalty" "write" "xdef" "xleaders" - "xspaceskip" "year")) - TeX-dialect) +(require 'tex) + +(TeX-add-style-hook + "virtex" + (lambda () + (TeX-add-symbols "/" "above" "abovedisplayshortskip" + "abovedisplayskip" "abovewithdelims" "accent" + "adjdemerits" "advance" "afterassignment" + "aftergroup" "atop" "atopwithdelims" "badness" + "baselineskip" "batchmode" "begingroup" + "belowdisplayshortskip" "belowdisplayskip" + "binoppenalty" "botmark" "box" "boxmaxdepth" + "brokenpenalty" "catcode" "char" "chardef" + "cleaders" "closein" "closeout" "clubpenalty" + "copy" "count" "countdef" "cr" "crcr" "csname" + "day" "deadcycles" "def" "defaulthyphenchar" + "defaultskewchar" "delcode" "delimiter" + "delimiterfactor" "delimitershortfall" "dimen" + "dimendef" "discretionary" "displayindent" + "displaylimits" "displaystyle" + "displaywidowpenalty" "displaywidth" "divide" + "doublehyphendemerits" "dp" "dump" "edef" "else" + "emergencystretch" "end" "endcsname" "endgroup" + "endinput" "endlinechar" "eqno" "errhelp" + "errmessage" "errorcontextlines" "errorstopmode" + "escapechar" "everycr" "everydisplay" + "everyhbox" "everyjob" "everymath" "everypar" + "everyvbox" "exhyphenpenalty" "expandafter" + "fam" "fi" "finalhyphendemerits" "firstmark" + "floatingpenalty" "font" "fontdimen" "fontname" + "futurelet" "gdef" "global" "globaldefs" + "halign" "hangafter" "hangindent" "hbadness" + "hbox" "hfil" "hfill" "hfilneg" "hfuzz" + "hoffset" "holdinginserts" "hrule" "hsize" + "hskip" "hss" "ht" "hyphenpenation" "hyphenchar" + "hyphenpenalty" "if" "ifcase" "ifcat" "ifdim" + "ifeof" "iffalse" "ifhbox" "ifinner" "ifhmode" + "ifmmode" "ifnum" "ifodd" "iftrue" "ifvbox" + "ifvoid" "ifx" "ignorespaces" "immediate" + "indent" "input" "inputlineno" "insert" + "insertpenalties" "interlinepenalty" "jobname" + "kern" "language" "lastbox" "lastkern" + "lastpenalty" "lastskip" "lccode" "leaders" + "left" "lefthyphenmin" "leftskip" "leqno" "let" + "limits" "linepenalty" "lineskip" + "lineskiplimit" "long" "looseness" "lower" + "lowercase" "mag" "markaccent" "mathbin" + "mathchar" "mathchardef" "mathchoise" + "mathclose" "mathcode" "mathinner" "mathhop" + "mathopen" "mathord" "mathpunct" "mathrel" + "mathsurround" "maxdeadcycles" "maxdepth" + "meaning" "medmuskip" "message" "mkern" "month" + "moveleft" "moveright" "mskip" "multiply" + "muskip" "muskipdef" "newlinechar" "noalign" + "noboundary" "noexpand" "noindent" "nolimits" + "nonscript" "nonstopmode" "nulldelimiterspace" + "nullfont" "number" "omit" "openin" "openout" + "or" "outer" "output" "outputpenalty" + "overfullrule" "parfillskip" "parindent" + "parskip" "pausing" "postdisplaypenalty" + "predisplaypenalty" "predisplaysize" + "pretolerance" "relpenalty" "rightskip" + "scriptspace" "showboxbreadth" "showboxdepth" + "smallskipamount" "spaceskip" "splitmaxdepth" + "splittopskip" "tabskip" "thickmuskip" + "thinmuskip" "time" "tolerance" "topskip" + "tracingcommands" "tracinglostchars" + "tracingmacros" "tracingonline" "tracingoutput" + "tracingpages" "tracingparagraphs" + "tracingrestores" "tracingstats" "uccode" + "uchyph" "underline" "unhbox" "unhcopy" "unkern" + "unpenalty" "unskip" "unvbox" "unvcopy" + "uppercase" "vadjust" "valign" "vbadness" "vbox" + "vcenter" "vfil" "vfill" "vfilneg" "vfuzz" + "voffset" "vrule" "vsize" "vskip" "vss" "vtop" + "wd" "widowpenalty" "write" "xdef" "xleaders" + "xspaceskip" "year")) + TeX-dialect) ;;; virtex.el ends here diff --git a/style/vwcol.el b/style/vwcol.el index 057e8ba..0adb34e 100644 --- a/style/vwcol.el +++ b/style/vwcol.el @@ -31,6 +31,9 @@ ;;; Code: +(require 'tex) +(require 'latex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/wrapfig.el b/style/wrapfig.el index 9c2d840..414ebf6 100644 --- a/style/wrapfig.el +++ b/style/wrapfig.el @@ -31,6 +31,9 @@ ;;; Code: +(require 'tex) +(require 'latex) + (TeX-add-style-hook "wrapfig" (lambda () diff --git a/style/xkcdcolors.el b/style/xkcdcolors.el index dc20b70..f5f2444 100644 --- a/style/xkcdcolors.el +++ b/style/xkcdcolors.el @@ -31,6 +31,8 @@ ;;; Code: +(require 'tex) + ;; Silence the compiler: (declare-function LaTeX-add-xcolor-definecolors "xcolor" diff --git a/style/xltabular.el b/style/xltabular.el index 9a138c2..04ce22c 100644 --- a/style/xltabular.el +++ b/style/xltabular.el @@ -29,6 +29,11 @@ ;; This file adds support for `xltabular.sty' (v0.05) from 2017/10/26. ;; `xltabular.sty' is part of TeXLive. +;;; Code: + +(require 'tex) +(require 'latex) + (defvar LaTeX-xltabular-skipping-regexp (concat "[ \t]*" (regexp-opt '("[l]" "[r]" "[c]" "")) "[ \t]*{[^}]*}[ \t]*") "Regexp matching between \\begin{xltabular} and column specification. diff --git a/style/xparse.el b/style/xparse.el index 369e683..11e0b0f 100644 --- a/style/xparse.el +++ b/style/xparse.el @@ -35,6 +35,9 @@ ;;; Code: +(require 'tex) +(require 'latex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/xspace.el b/style/xspace.el index 60b764f..643060c 100644 --- a/style/xspace.el +++ b/style/xspace.el @@ -30,6 +30,8 @@ ;;; Code: +(require 'tex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" diff --git a/style/zlmtt.el b/style/zlmtt.el index 8756d89..2ee692c 100644 --- a/style/zlmtt.el +++ b/style/zlmtt.el @@ -31,6 +31,8 @@ ;;; Code: +(require 'tex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex"