emacs-devel
[Top][All Lists]
Advanced

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

Re: Discrepancy in definition/use of match-data?


From: Stephen J. Turnbull
Subject: Re: Discrepancy in definition/use of match-data?
Date: Fri, 11 Jun 2004 17:34:46 +0900
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, linux)

>>>>> "David" == David Kastrup <address@hidden> writes:

    David> Now the obvious solution to that would be to make
    David> unsuccessful matches void the match-data, too.  I myself
    David> have no recollection of any discussions about this, but
    David> Stephen Turnbull was pretty vocal about having proposed
    David> something like this,

To be precise, I tried it in a workspace and was immediately slapped
down by a regression test failure.

    David> What I'll do right now is just changing the condition that
    David> it will not flag an error for greater-than-encountered
    David> match-data indices, except for the case of completely void
    David> match-data where I'll still flag an error.

I would suggest improving the error message if at all possible, and
documenting this prominently, as it is likely to happen very rarely,
and then only in asynchronous calls.


-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.




reply via email to

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