]> git.eshelyaron.com Git - emacs.git/commit
Say which regexp ranges should be avoided
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Mar 2019 21:43:30 +0000 (14:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Mar 2019 21:44:14 +0000 (14:44 -0700)
commit0924b27bca40d219e34529144ea04a581428f1f7
tree8cacf247cd9a1e3fa6f4f6d98ea2f1b9270b85e2
parent297a141ca33f7fb25c17ba0b6ed7834dfe111c48
Say which regexp ranges should be avoided

* doc/lispref/searching.texi (Regexp Special): Say that
regular expressions like "[a-m-z]" and "[[:alpha:]-~]" should
be avoided, for the same reason that regular expressions like
"+" and "*" should be avoided: POSIX says their behavior is
undefined, and they are confusing anyway.  Also, explain
better what happens when the bound of a range is a raw 8-bit
byte; the old explanation appears to have been obsolete
anyway.  Finally, say that ranges like "[\u00FF-\xFF]" that
mix non-ASCII characters and raw 8-bit bytes should be
avoided, since it’s not clear what they should mean.
doc/lispref/searching.texi