comparison man/lispref/range-tables.texi @ 444:576fb035e263 r21-2-37

Import from CVS: tag r21-2-37
author cvs
date Mon, 13 Aug 2007 11:36:19 +0200
parents 376386a54a3c
children ab71ad6ff3dd
comparison
equal deleted inserted replaced
443:a8296e22da4e 444:576fb035e263
34 34
35 @defun make-range-table 35 @defun make-range-table
36 Make a new, empty range table. 36 Make a new, empty range table.
37 @end defun 37 @end defun
38 38
39 @defun copy-range-table old-table 39 @defun copy-range-table range-table
40 Make a new range table which contains the same values for the same 40 This function returns a new range table which contains the same values
41 ranges as the given table. The values will not themselves be copied. 41 for the same ranges as @var{range-table}. The values will not
42 themselves be copied.
42 @end defun 43 @end defun
43 44
44 @node Working With Range Tables 45 @node Working With Range Tables
45 @section Working With Range Tables 46 @section Working With Range Tables
46 47
47 @defun get-range-table pos table &optional default 48 @defun get-range-table pos range-table &optional default
48 This function finds value for position @var{pos} in @var{table}. If 49 This function finds value for position @var{pos} in @var{range-table}.
49 there is no corresponding value, return @var{default} (defaults to 50 If there is no corresponding value, return @var{default} (defaults to
50 @code{nil}). 51 @code{nil}).
51 @end defun 52 @end defun
52 53
53 @defun put-range-table start end val table 54 @defun put-range-table start end value range-table
54 This function sets the value for range (@var{start}, @var{end}) to be 55 This function sets the value for range (@var{start}, @var{end}) to be
55 @var{val} in @var{table}. 56 @var{value} in @var{range-table}.
56 @end defun 57 @end defun
57 58
58 @defun remove-range-table start end table 59 @defun remove-range-table start end range-table
59 This function removes the value for range (@var{start}, @var{end}) in 60 This function removes the value for range (@var{start}, @var{end}) in
60 @var{table}. 61 @var{range-table}.
61 @end defun 62 @end defun
62 63
63 @defun clear-range-table table 64 @defun clear-range-table range-table
64 This function flushes @var{table}. 65 This function flushes @var{range-table}.
65 @end defun 66 @end defun
66 67
67 @defun map-range-table function table 68 @defun map-range-table function range-table
68 This function maps @var{function} over entries in @var{table}, calling 69 This function maps @var{function} over entries in @var{range-table},
69 it with three args, the beginning and end of the range and the 70 calling it with three args, the beginning and end of the range and the
70 corresponding value. 71 corresponding value.
71 @end defun 72 @end defun
72 73