summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/rx.el
Commit message (Collapse)AuthorAgeFilesLines
...
* * lisp/emacs-lisp/rx.el: Make it a superset of sregex.Stefan Monnier2010-12-261-21/+38
| | | | | | | | | | | | | (rx-constituents): Add `any => "."', mark `repeat' as taking any number of args, add `regex' alias. (rx-info): Add arg to distinguish head and standalone forms. (rx-check, rx-form): Pass the corresponding arg. (rx-**): Simplify. (rx-repeat): Make it work for any number of args. (rx-syntax): Make it accept syntax chars as is. * lisp/obsolete/sregex.el: Move from emacs-lisp/. * lisp/emacs-lisp/re-builder.el: Remove sregex support. * lisp/emacs-lisp/edebug.el (sregexq, rx): Remove redundant defs.
* * emacs-lisp/rx.el (rx-any): Don't explode ranges that end in - or ].Stefan Monnier2010-09-051-2/+5
| | | | | | (rx-any-condense-range): Explode 2-char ranges. Fixes: debbugs:6984
* emacs-lisp/rx.el (rx): Doc fix. (Bug#6537)Leo Liu2010-06-291-3/+0
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (rx): Doc fix.Chong Yidong2008-12-281-1/+4
|
* (rx-submatch): Pass : to rx-form (bug#1518).Stefan Monnier2008-12-091-1/+7
|
* (rx-constituents): Change `anything' to callChong Yidong2008-10-071-106/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rx-anything. Change `not-wordchar' assignment to "\\W" from "[^[:word:]]". (rx-group-if): New function. (rx-parent): New variable. (rx-and, rx-or): Put shy groups only when necessary. (rx-bracket): Remove. (rx-anything): New function. (rx-any-delete-from-range, rx-any-condense-range) (rx-check-any-string): New functions. (rx-check-any): Return result as a list. Don't convert chars to strings. Don't prepend "\\" to "^". Don't search for close bracket. Check char category string. Call rx-form instead of rx-to-string. (rx-any): Rebuid to complete the function. (rx-check-not): Fix char category regexp pattern string. Call rx-form instead of rx-to-string. (rx-not): Call rx-form instead of rx-to-string. Convert "[^]" to "[^^]". Call regexp-quote for one char string when not called from rx-not. Add "\\w", and toggle to upcase. Add the case of "\\[SCBW]" to toggle. (rx-=, rx->=, rx -**, rx-repeat, rx-submatch): Call rx-form instead of rx-to-string. (rx-kleene): Call rx-form instead of rx-to-string. Call rx-group-if to adjust putting of shy groups. (rx-atomic-p): Make check more precisely. (rx-eval, rx-greedy): Call rx-form instead of rx-to-string. (rx-regexp): Call rx-group-if. (rx-form): New function. (rx-to-string): Call rx-form, rx-group-if. Refine definition of NO-GROUP.
* (rx): Docstring fix.Stefan Monnier2008-10-031-3/+0
|
* Trent W. Buck <trentbuck at gmail.com> (tiny change)Glenn Morris2008-06-041-6/+0
| | | | (rx): Doc fix.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | (rx): Fix typo in docstring.Michaƫl Cadilhac2007-09-051-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-08-131-1/+1
|\| | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
| * Replace `iff' in doc-strings and comments.Glenn Morris2007-08-081-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
| * Nikolaj Schumacher <n_schumacher at web.de> (tiny change)Glenn Morris2007-05-291-2/+7
| | | | | | | | (rx): Doc fix.
* | (rx-constituents): Fix up `anything'.Stefan Monnier2007-06-301-1/+1
| |
* | Nikolaj Schumacher <n_schumacher at web.de> (tiny change)Glenn Morris2007-05-291-2/+7
|/ | | | (rx): Doc fix.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (rx-check-any, rx-check-not): Quote "]"s in regexps when they have noEli Zaretskii2006-03-031-3/+3
| | | | special meaning.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+2
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (rx-constituents): Add symbol-start and symbol-end.Stefan Monnier2005-03-251-2/+4
|
* (rx-syntax): Move sregex style syntax to code.Stefan Monnier2004-04-231-25/+15
| | | | (rx-bracket, rx-check-any, rx-any): Clean up name space.
* Doc fixes.Stefan Monnier2004-04-231-132/+295
| | | | | | | | | | | | (rx-constituents): Add/extend many forms. (rx-check): Check form is a list. (bracket): Defvar. (rx-check-any, rx-any, rx-check-not): Modify. (rx-not): Simplify. (rx-trans-forms, rx-=, rx->=, rx-**, rx-not-char, rx-not-syntax): New. (rx-kleene): Use rx-trans-forms. (rx-quote-for-set): Delete. (rx): Allow multiple args.
* (rx): Work at compile time, not run time.Eli Zaretskii2004-03-271-2/+4
|
* Fix copyright.Stefan Monnier2004-03-221-1/+1
|
* (rx): Work at compile time, not run time.Juanma Barranquero2004-03-211-5/+8
|
* (rx-check, rx-check-any, rx-check-not)Eli Zaretskii2004-02-161-19/+36
| | | | | | | | | | | (rx-repeat, rx-check-backref, rx-syntax, rx-to-string): Use lower-case "rx" in all error message. (rx-or): Put group around result. (rx-constituents): Add backref. (rx-syntax): Add string-delimiter, comment-delimiter. (rx-categories): Add combining-diacritic. (rx-check-not, rx-greedy, rx): Doc fix. (rx-backref, rx-check-backref): New.
* (rx-not): Bind case-fold-search to nil.Eli Zaretskii2004-02-161-1/+2
|
* (rx-or): Fix the case of "(rx (and ?a (or ?b ?c) ?d))".Eli Zaretskii2003-11-011-3/+5
|
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* Trailing whitepace deleted.Juanma Barranquero2003-02-041-10/+10
|
* (rx-and): Generate a shy group.Richard M. Stallman2002-12-231-10/+51
| | | | | | | Specify `no-group' when calling rx-to-string. (rx-submatch): Specify `no-group' when calling rx-to-string. (rx-kleene): Use rx-atomic-p to decide whether to make a group. (rx-atomic-p): New function.
* (rx): Fix spacing.Juanma Barranquero2002-09-061-2/+2
|
* *** empty log message ***Gerd Moellmann2001-10-011-0/+753