all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Emacs Development <Emacs-devel@gnu.org>
Subject: Re: regexp linting run in Emacs tree
Date: Sun, 4 Aug 2019 21:07:05 +0200	[thread overview]
Message-ID: <C9C6482C-A003-4BFE-B8CA-E631B7F142DF@acm.org> (raw)
In-Reply-To: <e5908e79-fb1e-3c8d-4aa1-f268aefda0d6@cs.ucla.edu>

4 aug. 2019 kl. 20.46 skrev Paul Eggert <eggert@cs.ucla.edu>:
> 
> Thanks, I installed the attached to master.

Thank you, this looks fine.

> The following seem to be false alarms, though:
> 
> lisp/progmodes/fortran.el:1823:36: In call to skip-chars-backward: Duplicated character ` ' (pos 2)
>  " \t "
>   ...^
> [and similar matches] This seem to be assuming that the customized variable fortran-comment-indent-char has its default value.

Yes, it is a bit hard to guard against that sort of thing --- relint blindly assumes default values of global variables. What about adding a `delete-dups' to make it shut up?

> 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|\\)+\\'"
> [and similar matches] This seems to be assuming that \s@ is not valid, but that escape is documented as valid. Is there some problem with \s@ that I don't know about?

I assumed that @ isn't a valid syntax code in regexps, since it only means 'inherit from standard syntax table' which is fine for specifying the syntax of a character but makes no sense when we are trying to match something. Do you agree? (The regexp engine will accept it, but then again it will accept any character without complaining, which is probably a bug.)




  reply	other threads:[~2019-08-04 19:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-04 17:49 regexp linting run in Emacs tree Mattias Engdegård
2019-08-04 18:46 ` Paul Eggert
2019-08-04 19:07   ` Mattias Engdegård [this message]
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=C9C6482C-A003-4BFE-B8CA-E631B7F142DF@acm.org \
    --to=mattiase@acm.org \
    --cc=Emacs-devel@gnu.org \
    --cc=eggert@cs.ucla.edu \
    /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.