all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [ncalexan@math.uci.edu: Issue with rx: (rx (and anything anything)) seems incorrect]
@ 2007-06-30 15:10 Richard Stallman
  2007-06-30 18:52 ` Fwd: Issue with rx: (rx (and anything anything)) seems incorrect Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2007-06-30 15:10 UTC (permalink / raw)
  To: emacs-devel

Would someone please DTRT, then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
	autolearn=failed version=3.1.0
To: emacs-pretest-bug@gnu.org
From: Nick Alexander <ncalexan@math.uci.edu>
Date: Fri, 29 Jun 2007 11:48:41 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Issue with rx: (rx (and anything anything)) seems incorrect

In GNU Emacs 22.0.95.1 (powerpc-apple-darwin8.9.0, Carbon Version 1.6.0)
 of 2007-03-15 on g5.tokyo.stp.isas.jaxa.jp
Windowing system distributor `Apple Inc.', version 10.4.9
configured using `configure  '--prefix=/Applications/Emacs.app/Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI -DUSE_MAC_TSM''

Hi all,

The following is expected:
(rx (and ?a ?b)) => "\\(?:ab\\)"

The following is not:
(rx (and anything anything)) => "\\(?:.\\|
.\\|
\\)"

I have no idea why the newlines are inserted, nor why there are choice
bars (|).  Why not just "\\(?:..\\)" as before?

Nick Alexander


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: Issue with rx: (rx (and anything anything)) seems incorrect
  2007-06-30 15:10 [ncalexan@math.uci.edu: Issue with rx: (rx (and anything anything)) seems incorrect] Richard Stallman
@ 2007-06-30 18:52 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2007-06-30 18:52 UTC (permalink / raw)
  To: Nick Alexander, rms; +Cc: emacs-devel

> Would someone please DTRT, then ack?

Fixed,

> The following is not:
> (rx (and anything anything)) => "\\(?:.\\|
> .\\|
> \\)"

> I have no idea why the newlines are inserted, nor why there are choice
> bars (|).  Why not just "\\(?:..\\)" as before?

anything matches any char, whereas . does not match newlines.  But the
result you see is indeed wrong.  It should be
"\\(?:.\\|\n\\)\\(?:.\\|\n\\)".  Thanks for the report,


        Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-30 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-30 15:10 [ncalexan@math.uci.edu: Issue with rx: (rx (and anything anything)) seems incorrect] Richard Stallman
2007-06-30 18:52 ` Fwd: Issue with rx: (rx (and anything anything)) seems incorrect Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.