[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Relint on AUCTeX
From: |
Arash Esbati |
Subject: |
Relint on AUCTeX |
Date: |
Tue, 07 Apr 2020 22:59:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 |
Hi all,
I was curious so I ran relint (Elisp regexp mistake finder) on AUCTeX.
I case you don't know it, check here[1]. This is the result on main
AUCTeX installation directory:
--8<---------------cut here---------------start------------->8---
Relint results for ~/.emacs.d/elpa/auctex-12.2.0/
font-latex.el:1479:47: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
font-latex.el:1496:47: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
font-latex.el:1519:39: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
latex.el:743:19: Value from ‘regexp-quote’ cannot be spliced into ‘[...]’
latex.el:744:40: Value from ‘regexp-quote’ cannot be spliced into ‘[...]’
latex.el:746:11: Value from ‘regexp-quote’ cannot be spliced into ‘[...]’
latex.el:3086:41: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
latex.el:4351:28: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
latex.el:4387:26: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
latex.el:6596:11: In call to search-forward-regexp: Escaped non-special
character ‘d’ (pos 0)
"\\documentstyle\\[\\([^]]*\\)\\]{\\([^}]*\\)}"
^
latex.el:6602:13: In call to search-forward-regexp: Escaped non-special
character ‘d’ (pos 0)
"\\documentstyle{\\([^}]*\\)}"
^
tex-buf.el:1596:35: In LaTeX-warnings-regexp: Unescaped literal ‘*’ (pos 27)
"\\(?:LaTeX\\|Class\\|Package\\|*\\) [-A-Za-z0-9]* ?[Ww]arning:"
...............................^
tex-buf.el:1604:24: In call to re-search-forward: Unescaped literal ‘*’ (pos 28)
"^\\(?:LaTeX\\|Class\\|Package\\|*\\) [-A-Za-z0-9]* ?[Ww]arning:"
................................^
tex-buf.el:1703:31: In call to re-search-forward: Unescaped literal ‘*’ (pos 1)
"^* xsim warning: \"rerun\""
.^
tex-buf.el:2606:31: In call to re-search-forward: Duplicated ‘)’ inside
character alternative (pos 36)
"^\\(!\\|\\(.*?\\):[0-9]+:\\) \\|(\n?\\([^\n())]+\\)\\|\\()\\)\\|
!\\(?:offset(\\([---0-9]+\\))\\|name(\\([^)]+\\))\\)\\|^\\(\\(?:Overfull\\|Underfull\\|Tight\\|Loose\\)
\\(?:\\\\hbox.* at lines? [0-9]+\\(?:--[0-9]+\\)?$\\|\\\\vbox ([ a-z0-9]+) has
occurred while \\\\output is active
\\[[^]]+\\]\\)\\)\\|^\\(\\(?:LaTeX\\|Class\\|Package\\|*\\) [-A-Za-z0-9]*
?[Ww]arning:.*\\)"
.............................................^
tex-buf.el:2606:31: In call to re-search-forward: Unescaped literal ‘*’ (pos
291)
"^\\(!\\|\\(.*?\\):[0-9]+:\\) \\|(\n?\\([^\n())]+\\)\\|\\()\\)\\|
!\\(?:offset(\\([---0-9]+\\))\\|name(\\([^)]+\\))\\)\\|^\\(\\(?:Overfull\\|Underfull\\|Tight\\|Loose\\)
\\(?:\\\\hbox.* at lines? [0-9]+\\(?:--[0-9]+\\)?$\\|\\\\vbox ([ a-z0-9]+) has
occurred while \\\\output is active
\\[[^]]+\\]\\)\\)\\|^\\(\\(?:LaTeX\\|Class\\|Package\\|*\\) [-A-Za-z0-9]*
?[Ww]arning:.*\\)"
...................................................................................................................................................................................................................................................................................................................................................^
tex-buf.el:2637:9: In call to re-search-forward: Repetition subsumed by
preceding repetition (pos 23)
"\r?\n\\(?:.\\{79\\}\r?\n\\)*.*\r?$"
................................^
tex-buf.el:2671:68: In call to string-match: Repetition of expression matching
an empty string (pos 22)
"\\( *\\(\\[[^]]+\\]\\)? *\\)*\\'"
............................^
tex.el:5568:43: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
tex.el:5728:32: ‘regexp-quote’ cannot be used for arguments to
‘skip-chars-backward’
Finished -- 20 errors.
--8<---------------cut here---------------end--------------->8---
In case the text above get mangled, the file is attached as well. I've
briefly checked the results, they seem real to me, so no false
positives. In case someone wants to fix these issue, please don't
hesitate :)
There also good news, no erros on style sub-directory.
Best, Arash
Footnotes:
[1] https://elpa.gnu.org/packages/relint.html
auctex-relint.log
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Relint on AUCTeX,
Arash Esbati <=