all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: regexp linting run in Emacs tree
Date: Sun, 4 Aug 2019 19:49:48 +0200	[thread overview]
Message-ID: <3B0BC169-9F40-456F-B249-0ABB43558EEA@acm.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

Yet another scan of regexp mistakes in elisp files in the Emacs source tree, using relint 1.9.
Minor improvements to the regexp detection in relint has expanded the scope. There may be a few false positives.


[-- Attachment #2: relint.log --]
[-- Type: application/octet-stream, Size: 2463 bytes --]

;; -*- compilation -*-
lisp/calendar/diary-lib.el:112:42: In diary-glob-file-regexp-prefix: Escaped non-special character `#' (pos 1)
  "^\\#"
   .^
lisp/cedet/inversion.el:118:25: In call to string-match: Repetition of expression matching an empty string (pos 36)
  "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]*\\)?\\s-*\\.?alpha\\([0-9]+\\)?$"
   ............................................^
lisp/org/ob-haskell.el:180:33: In call to re-search-forward: Repetition of expression matching an empty string (pos 40)
  "^\\([ \t]*\\)#\\+begin_src[ \t]haskell*\\(.*\\)?[\r\n]\\([^\000]*?\\)[\r\n][ \t]*#\\+end_src.*"
   ...............................................^
lisp/org/org-capture.el:1688:37: In call to re-search-forward: Duplicated `a-z' inside character alternative (pos 9)
  "%\\(:[-a-za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlntTuUx]\\)"
   ..........^
lisp/progmodes/cc-mode.el:1400:26: In call to re-search-forward: Branch matches subset of a previous branch (pos 12)
  "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r]\\)*"
   ...................^
lisp/progmodes/cc-mode.el:1508:33: In call to re-search-forward: Branch matches subset of a previous branch (pos 12)
  "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r]\\)*"
   ...................^
lisp/progmodes/fortran.el:1823:36: In call to skip-chars-backward: Duplicated character ` ' (pos 2)
  " \t "
   ...^
lisp/progmodes/fortran.el:1824:65: In call to skip-chars-forward: Duplicated character ` ' (pos 2)
  " \t "
   ...^
lisp/progmodes/gdb-mi.el:2718:33: In call to re-search-forward: Literal `-' not first or last in character alternative (pos 12)
  "\\([[:alnum:]-_]+\\)="
   .............^
lisp/isearch.el:2191:23: In call to string-match-p: Error: Unknown syntax code ‘@’: "\\`\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+\\'"
lisp/isearch.el:2193:30: In call to string-match-p: Error: Unknown syntax code ‘@’: "\\`\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+"
lisp/isearch.el:2195:56: In call to split-string: Error: Unknown syntax code ‘@’: "\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+"
lisp/isearch.el:2196:30: In call to string-match-p: Error: Unknown syntax code ‘@’: "\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+\\'"

             reply	other threads:[~2019-08-04 17:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-04 17:49 Mattias Engdegård [this message]
2019-08-04 18:46 ` regexp linting run in Emacs tree Paul Eggert
2019-08-04 19:07   ` Mattias Engdegård
2019-08-04 22:57     ` Paul Eggert
2019-08-05 11:33       ` Mattias Engdegård
2019-08-05 17:17         ` Paul Eggert
2019-08-05 21:18           ` Mattias Engdegård
2019-08-08 11:01       ` Mattias Engdegård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B0BC169-9F40-456F-B249-0ABB43558EEA@acm.org \
    --to=mattiase@acm.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.