emacs-devel
[Top][All Lists]
Advanced

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

Re: Unquoted special characters in regexps


From: Luc Teirlinck
Subject: Re: Unquoted special characters in regexps
Date: Sat, 4 Mar 2006 20:54:19 -0600 (CST)

Richard Stallman wrote:

   \[ and \] in Lisp strings are equivalent to just [ and just ].  So I
   think the current value is incorrect, and the [ needs to have \\ before it.

Since I sent my previous message I noticed from the comment and the
code following the regexp, that "\\(\\[[0-9]+] \\)* is the only
possible interpretation.  The comment and code are _really_ looking
for a sequence of the type "[123] [3] ":

      ;; A good marker is one that:
      ;; 1) does not have a "[n] " prefix (not part of a stack backtrace)
      ;; 2) does have an "[n] " prefix and n is the lowest prefix seen
      ;;    since the last prompt

So I believe that we just should go ahead and change "\\(\[[0-9]+\] \\)*"
to "\\(\\[[0-9]+] \\)*".  I can do this, if desired.

Sincerely,

Luc.




reply via email to

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