[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 235f93c 46/67: ; Silence the comp
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 235f93c 46/67: ; Silence the compiler in styles for pstricks |
Date: |
Fri, 8 Feb 2019 11:40:38 -0500 (EST) |
branch: externals/auctex
commit 235f93c452453aae42566fb92ec5ea0feba187d2
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
; Silence the compiler in styles for pstricks
* style/pst-grad.el:
* style/pst-slpe.el: Silence the compiler for the free variables
`LaTeX-pst-fillstyle-list',
`LaTeX-pst-parameters-completion-regexp' and
`LaTeX-pst-parameters-name-list'.
* style/pst-node.el: Silence the compiler for the functions
`LaTeX-package-parameter-value',
`LaTeX-package-parameters-pref-and-chosen',
`LaTeX-package-parameters', `LaTeX-pst-angle', `LaTeX-pst-point'
and `LaTeX-pst-arrows'.
* style/pst-plot.el: Silence the compiler for the free variable
`LaTeX-pstplot-datasets' by rearranging code.
Silence the compiler for the functions free variables
`LaTeX-pst-arrows', `LaTeX-pst-point', `TeX-arg-compl-list' and
free variables `LaTeX-pst-parameters-completion-regexp' and
`LaTeX-pst-parameters-name-list'.
---
style/pst-grad.el | 5 +++++
style/pst-node.el | 11 +++++++++++
style/pst-plot.el | 57 ++++++++++++++++++++++++++++++++-----------------------
style/pst-slpe.el | 5 +++++
4 files changed, 54 insertions(+), 24 deletions(-)
diff --git a/style/pst-grad.el b/style/pst-grad.el
index 1e74d8a..829e190 100644
--- a/style/pst-grad.el
+++ b/style/pst-grad.el
@@ -33,6 +33,11 @@
;;; Code:
+;; Silence the compiler:
+(defvar LaTeX-pst-fillstyle-list)
+(defvar LaTeX-pst-parameters-completion-regexp)
+(defvar LaTeX-pst-parameters-name-list)
+
;;; Parameters
(defvar LaTeX-pstgrad-parameters-name-list
'("gradangle" "gradbegin" "gradend" "gradlines" "gradmidpoint"
diff --git a/style/pst-node.el b/style/pst-node.el
index cc6b151..7b174cd 100644
--- a/style/pst-node.el
+++ b/style/pst-node.el
@@ -35,6 +35,17 @@
;;; Code:
+;; Silence the compiler:
+(declare-function LaTeX-package-parameter-value
+ "pstricks" (param pname))
+(declare-function LaTeX-package-parameters-pref-and-chosen
+ "pstricks" (param pname noskip))
+(declare-function LaTeX-package-parameters
+ "pstricks" (optional pname preparam param))
+(declare-function LaTeX-pst-angle "pstricks" ())
+(declare-function LaTeX-pst-point "pstricks" ())
+(declare-function LaTeX-pst-arrows "pstricks" ())
+
(defalias 'LaTeX-pst-node 'LaTeX-pst-point)
(defvar LaTeX-pstnode-parameters-completion-regexp
diff --git a/style/pst-plot.el b/style/pst-plot.el
index 2d61d88..8240a14 100644
--- a/style/pst-plot.el
+++ b/style/pst-plot.el
@@ -35,31 +35,14 @@
;;; Code:
-;; Self Parsing -- see (info "(auctex)Hacking the Parser")
-(defvar LaTeX-auto-pstplot-regexp-list
- '(("\\\(save\|read\)data{?\(\\[a-zA-Z]+\)}?"
- 2 LaTeX-auto-pstplot))
- "List of regular expressions to extract arguments of \*data
- macros.")
+;; Silence the compiler:
+(declare-function LaTeX-pst-arrows "pstricks" ())
+(declare-function LaTeX-pst-point "pstricks" ())
+(declare-function TeX-arg-compl-list
+ "pstricks" (list &optional prompt hist))
-(defvar LaTeX-auto-pstplot nil
- "Temporary for parsing \*data definitions.")
-
-(defun LaTeX-pstplot-cleanup ()
- "Move symbols from `LaTeX-auto-pstplot to `TeX-auto-symbol'."
- (mapcar (lambda (symbol)
- ;; (setq TeX-symbol-list (cons (list symbol 0) TeX-symbol-list))
- ;; (setq TeX-auto-symbol (cons (list symbol 0) TeX-auto-symbol)))
- (add-to-list 'LaTeX-pstplot-datasets symbol))
- LaTeX-auto-pstplot))
-
-(defun LaTeX-pstplot-prepare ()
- "Clear `LaTeX-auto-pstplot' before use."
- (setq LaTeX-auto-pstplot nil))
-
-(add-hook 'TeX-auto-prepare-hook #'LaTeX-pstplot-prepare t)
-(add-hook 'TeX-auto-cleanup-hook #'LaTeX-pstplot-cleanup t)
-(add-hook 'TeX-update-style-hook #'TeX-auto-parse t)
+(defvar LaTeX-pst-parameters-completion-regexp)
+(defvar LaTeX-pst-parameters-name-list)
;;; Parameters
(defvar LaTeX-pstplot-datasets nil
@@ -85,6 +68,32 @@
(defvar LaTeX-pst-axesstyle-list '(t "axes" "frame" "none")
"A list of values for axesstyles in pst-plot.")
+;; Self Parsing -- see (info "(auctex)Hacking the Parser")
+(defvar LaTeX-auto-pstplot-regexp-list
+ '(("\\\(save\|read\)data{?\(\\[a-zA-Z]+\)}?"
+ 2 LaTeX-auto-pstplot))
+ "List of regular expressions to extract arguments of \*data
+ macros.")
+
+(defvar LaTeX-auto-pstplot nil
+ "Temporary for parsing \*data definitions.")
+
+(defun LaTeX-pstplot-cleanup ()
+ "Move symbols from `LaTeX-auto-pstplot to `TeX-auto-symbol'."
+ (mapcar (lambda (symbol)
+ ;; (setq TeX-symbol-list (cons (list symbol 0) TeX-symbol-list))
+ ;; (setq TeX-auto-symbol (cons (list symbol 0) TeX-auto-symbol)))
+ (add-to-list 'LaTeX-pstplot-datasets symbol))
+ LaTeX-auto-pstplot))
+
+(defun LaTeX-pstplot-prepare ()
+ "Clear `LaTeX-auto-pstplot' before use."
+ (setq LaTeX-auto-pstplot nil))
+
+(add-hook 'TeX-auto-prepare-hook #'LaTeX-pstplot-prepare t)
+(add-hook 'TeX-auto-cleanup-hook #'LaTeX-pstplot-cleanup t)
+(add-hook 'TeX-update-style-hook #'TeX-auto-parse t)
+
;;; Macros
(defun LaTeX-pst-macro-psaxes (_optional &optional _arg)
"Return \psaxes arguments after querying."
diff --git a/style/pst-slpe.el b/style/pst-slpe.el
index a3f456f..6efed09 100644
--- a/style/pst-slpe.el
+++ b/style/pst-slpe.el
@@ -33,6 +33,11 @@
;;; Code:
+;; Silence the compiler:
+(defvar LaTeX-pst-fillstyle-list)
+(defvar LaTeX-pst-parameters-completion-regexp)
+(defvar LaTeX-pst-parameters-name-list)
+
;;; Parameters
(defvar LaTeX-pstslpe-parameters-name-list
'("slopeangle" "slopecenter" "slopecolors" "slopebegin" "slopeend"
- [AUCTeX-diffs] [elpa] externals/auctex 253e900 25/67: Adjust autoload cookie, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 253e900 25/67: Adjust autoload cookie, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 38f9d72 63/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 34eab00 66/67: Improve indenting and filling in "Form" environments, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex f319b9f 60/67: Override some bindings in `TeX-mode-map' in Texinfo mode, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex ca16d88 59/67: Update style/enumitem.el to package version 3.6, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 9d8369a 39/67: ; Silence the compiler in styles for `font-latex-update-font-lock', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 5147a27 48/67: Revise description about CJK support, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 40ba5b6 37/67: Improve handling of `TeX-insert-macro-default-style' in styles, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 761ffc3 27/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex b13bebb 28/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 235f93c 46/67: ; Silence the compiler in styles for pstricks,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 3aef308 58/67: Skip macros and environments from pythontex, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 3b5cea2 56/67: Improve completion for \url between url.el and hyperref.el, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 906ac31 55/67: Add new style/pythontex.el, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 33329c3 57/67: ; * doc/auctex.texi (Completion): Fix typo., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 6e8aa67 41/67: ; Silence the compiler in styles for `font-latex-add-quotes', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 4fed4a7 64/67: Remove combatibility code for older emasen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex a4576a1 49/67: ; * tex.el (TeX-math-toggle-off-input-method): Fix doc string., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex c893152 50/67: Redefine support for \url in hyperref, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 5827aeb 34/67: Remove TeX-mark-active, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 2c73857 51/67: ; * style/pst-plot.el (LaTeX-pstplot-cleanup): Fix typo., Tassilo Horn, 2019/02/08