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

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

Lack of clarity in description of set-match-data in elisp info page.


From: Alan Mackenzie
Subject: Lack of clarity in description of set-match-data in elisp info page.
Date: 6 Dec 2001 22:49:56 +0100
Date: Thu, 6 Dec 2001 20:26:33 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

The description of set-match-data on the elisp info page "Entire Match
Data" states:

     This function sets the match data from the elements of MATCH-LIST,
     which should be a list that was the value of a previous call to
     `match-data'.

This is unclear:  Better would be whichever of the following alternatives
is the case:

(a)  This function sets the match data from the elements of MATCH-LIST,
     which should have the same format as the value returned from
     `match-data'.

(b)  This function sets the match data from the elements of MATCH-LIST,
     which should be a list that was the value of a previous call to
     `match-data'.  Note that `match-data' changes the internal state of the
     lisp-machine, so using a value of MATCH-LIST which was not returned
     from `match-data' will not work, even if it has the correct format.

-- 
Alan Mackenzie (Munich, Germany)
Email: address@hidden; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").




reply via email to

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