emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rx.el changes


From: Dave Love
Subject: rx.el changes
Date: Thu, 18 Mar 2004 17:35:39 +0000
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

The changes to rx.el since 21.3 need to go in NEWS.

The following change isn't there, though I thought I sent it.  It
makes `rx' work the way it appears to have been intended in view of
the doc, the fact it's basically redundant with rx-to-string
otherwise, and being what you normally want.  It's unlikely to affect
much usage, and there have been incompatible changes made already.

I don't understand why error messages were changed to start `rx'
instead of `Rx', against the conventions for error messages and
package names.

2004-03-18  Dave Love  <address@hidden>

        * emacs-lisp/rx.el (rx): Work at compile time, not run time.

Index: rx.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/rx.el,v
retrieving revision 1.8
diff -u -p -u -r1.8 rx.el
--- rx.el       16 Feb 2004 16:50:18 -0000      1.8
+++ rx.el       18 Mar 2004 17:21:51 -0000
@@ -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 <address@hidden>
 ;; Maintainer: FSF
@@ -799,6 +799,9 @@ 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.
@@ -806,7 +809,7 @@ CHAR
 `(regexp REGEXP)'
       include REGEXP in string notation in the result."
 
-  `(rx-to-string ',regexp))
+  (rx-to-string regexp))
 
 
 (provide 'rx)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]