comparison src/search.c @ 102978:ff07912acca7

(match-data): Refer to `set-match-data' rather than `store-match-data'.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 15 Apr 2009 17:06:34 +0000
parents 43952e9a02cd
children 4dbc3b20d83b
comparison
equal deleted inserted replaced
102977:16915a402aba 102978:ff07912acca7
2961 DEFUN ("match-data", Fmatch_data, Smatch_data, 0, 3, 0, 2961 DEFUN ("match-data", Fmatch_data, Smatch_data, 0, 3, 0,
2962 doc: /* Return a list containing all info on what the last search matched. 2962 doc: /* Return a list containing all info on what the last search matched.
2963 Element 2N is `(match-beginning N)'; element 2N + 1 is `(match-end N)'. 2963 Element 2N is `(match-beginning N)'; element 2N + 1 is `(match-end N)'.
2964 All the elements are markers or nil (nil if the Nth pair didn't match) 2964 All the elements are markers or nil (nil if the Nth pair didn't match)
2965 if the last match was on a buffer; integers or nil if a string was matched. 2965 if the last match was on a buffer; integers or nil if a string was matched.
2966 Use `store-match-data' to reinstate the data in this list. 2966 Use `set-match-data' to reinstate the data in this list.
2967 2967
2968 If INTEGERS (the optional first argument) is non-nil, always use 2968 If INTEGERS (the optional first argument) is non-nil, always use
2969 integers \(rather than markers) to represent buffer positions. In 2969 integers \(rather than markers) to represent buffer positions. In
2970 this case, and if the last match was in a buffer, the buffer will get 2970 this case, and if the last match was in a buffer, the buffer will get
2971 stored as one additional element at the end of the list. 2971 stored as one additional element at the end of the list.