Hi Arash,
> ba568ead992a3abcfe941a5d4f137fe3e77f4063
> Author: Arash Esbati <[email protected]>
> AuthorDate: Fri May 13 19:50:59 2022 +0200
> Commit: Arash Esbati <[email protected]>
> CommitDate: Fri May 13 19:50:59 2022 +0200
[...]
> ; Silence the compiler for the change in 37e5a450
[...]
> -(declare-function comint-exec
[...]
> +(declare-function comint-exec "ext:comint"
> (buffer name command startfile switches))
> -(declare-function comint-mode
> - nil)
> +(declare-function comint-mode "ext:comint" nil)
Shame on me, thanks for catching my bogus code.
> +(declare-function LaTeX-counter-list "latex" nil)
> +(declare-function LaTeX-length-list "latex" nil)
I think that byte-compiler warns these because it doesn't like usage of
#' in fboundp like
(fboundp #'LaTeX-length-list)
. Isn't it more appropriate to do like the attached patch?
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
diff --git a/tex.el b/tex.el
index 2deabb3d..1a3338c7 100644
--- a/tex.el
+++ b/tex.el
@@ -53,8 +53,6 @@
(bus service path interface signal handler &rest args))
(declare-function LaTeX-environment-list "latex" nil)
(declare-function LaTeX-bibliography-list "latex" nil)
-(declare-function LaTeX-counter-list "latex" nil)
-(declare-function LaTeX-length-list "latex" nil)
(declare-function comint-exec "ext:comint"
(buffer name command startfile switches))
(declare-function comint-mode "ext:comint" nil)
@@ -3757,9 +3755,9 @@ The algorithm is as follows:
1
(lambda ()
(append (TeX-symbol-list-filtered)
- (when (fboundp #'LaTeX-length-list)
+ (when (fboundp 'LaTeX-length-list)
(LaTeX-length-list))
- (when (fboundp #'LaTeX-counter-list)
+ (when (fboundp 'LaTeX-counter-list)
(mapcar (lambda (x)
`(,(concat "the" (car x))))
(LaTeX-counter-list)))))