Commit graph

16 commits

Author SHA1 Message Date
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Stefan Monnier
7e1d6bdb40 (regexp-opt-group): Sort the strings when extracting a suffix. 2000-11-05 19:07:07 +00:00
Stefan Monnier
908bb42fa1 (regexp-opt): Add \< and \> if PAREN=`words'. 2000-10-08 18:50:43 +00:00
Stefan Monnier
bba6564ccf (regexp-opt-group): Put more parenthesis. 2000-10-01 00:08:49 +00:00
Stefan Monnier
5cda4b07fa (make-bool-vector): Remove.
(regexp-opt-group): Use a list of chars for `letters'.
(regexp-opt-charset): `chars' is now a list of chars.
Use a char-table rather than a vector so it works for multibyte chars.
2000-08-09 15:49:33 +00:00
Stefan Monnier
ac5cb26d90 (regexp-opt-depth): Fix regexp. 2000-05-10 22:43:28 +00:00
Dave Love
370893a14a Add `extensions' to Keywords. 2000-03-30 11:00:35 +00:00
Stefan Monnier
c00562751d Update copyright and leading comment.
(regexp-opt): Update comment and adapt the code the new meaning of the
`paren' argument of regex-opt-group for shy-groups.
(regexp-opt-depth): Handle shy groups as well as backslashed backslashes.
(regexp-opt-group): Turn the leading comment into a docstring.
Allow `paren' to be a string (the string to use to open a group).
Remove open-presuf and close-presuf.
Instead of checking for `all one-char' and then later on check for
`several one-char', handle both cases close together.
Also apply a more generic algorithm for suffixes (the mirror image
of the algorithm used for prefixes).
Use shy-groups.
\Use nreverse rather than reverse.
(regexp-opt-try-suffix): Removed.
2000-03-09 00:45:15 +00:00
Dave Love
fcc31755c5 Change maintainer. 2000-02-02 16:00:17 +00:00
Gerd Moellmann
b02b54a8ba (regexp-opt-try-suffix): New function.
(regexp-opt-group): Use it to get common suffixes in STRINGS.
If STRINGS is nil, return "" rather than nil.
1999-10-08 23:06:15 +00:00
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00
Karl Heuer
e011fd6b5c (regexp-opt-group): Avoid infinite
recursion on bogus input.
1999-06-04 18:36:35 +00:00
Richard M. Stallman
582305b09b (regexp-opt): Doc fix. 1997-09-07 01:24:23 +00:00
Simon Marshall
9b51ba9e8a simplify. 1997-06-27 07:22:37 +00:00
Simon Marshall
25544ce1bd emit charsets after strings so that the final regexp finds the longest match. 1997-06-06 07:10:24 +00:00
Richard M. Stallman
56329bc5ed Initial revision 1997-05-29 03:01:51 +00:00