[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scan of regexps in Emacs (March 17)
From: |
Noam Postavsky |
Subject: |
Re: Scan of regexps in Emacs (March 17) |
Date: |
Tue, 2 Apr 2019 10:26:40 -0400 |
On Tue, 2 Apr 2019 at 10:15, Mattias Engdegård <address@hidden> wrote:
> > After looking into it I realized that I don't really know the semantics
> > here (the text I recently added there seems to be wrong, in some cases),
> > and I have my doubts that anyone else knows the semantics either. The
> > attached patch simply gets rid of that section, leaving the area
> > undocumented. User beware!
>
> Apparently I don't really know it either -- I just discovered that:
>
> (string-match "\xff" "\xff") => 0
> (string-match "[\xff]" "\xff") => 0
> (string-match "\xffé?" "\xff") => nil
> (string-match "[\xff]é?" "\xff") => 0
> (string-match "\xff" "\xffé") => 0
> (string-match "[\xff]" "\xffé") => nil
> (string-match "\xffé?" "\xffé") => 0
> (string-match "[\xff]é?" "\xffé") => nil
See also Bug#3687.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3687
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/04/02
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/04/02
- Re: Scan of regexps in Emacs (March 17),
Noam Postavsky <=
- Re: Scan of regexps in Emacs (March 17), Stefan Monnier, 2019/04/02
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/04/02
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/04/06
- Re: Scan of regexps in Emacs (March 17), Michael Albinus, 2019/04/07
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/04/07
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/04/07
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/04/07