summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/rx.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2004-03-21 15:34:56 +0000
committerJuanma Barranquero <lekktu@gmail.com>2004-03-21 15:34:56 +0000
commit942269e7b4e1d4c0685ae0a09d9794f1b5b3609d (patch)
tree2969a22d701f8ea1f4dc5cba82846360ee53cddd /lisp/emacs-lisp/rx.el
parentf7da2617c057bbfaa1e2c6b71fe8129008cb5c6a (diff)
(rx): Work at compile time, not run time.
Diffstat (limited to 'lisp/emacs-lisp/rx.el')
-rw-r--r--lisp/emacs-lisp/rx.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index 86673441fe7..55886e8b34f 100644
--- a/lisp/emacs-lisp/rx.el
+++ b/lisp/emacs-lisp/rx.el
@@ -1,6 +1,6 @@
;;; rx.el --- sexp notation for regular expressions
-;; Copyright (C) 2001 Free Software Foundation, Inc.
+;; Copyright (C) 2001, 2003 Free Software Foundation, Inc.
;; Author: Gerd Moellmann <gerd@gnu.org>
;; Maintainer: FSF
@@ -799,14 +799,17 @@ CHAR
`(repeat N M SEXP)'
matches N to M occurrences of what SEXP matches.
+`(backref N)'
+ matches what was matched previously by submatch N.
+
`(eval FORM)'
- evaluate FORM and insert result. If result is a string,
- `regexp-quote' it.
+ evaluate FORM and insert result. If result is a string,
+ `regexp-quote' it.
`(regexp REGEXP)'
- include REGEXP in string notation in the result."
+ include REGEXP in string notation in the result."
- `(rx-to-string ',regexp))
+ (rx-to-string regexp))
(provide 'rx)