"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "man/lispref/range-tables.texi" between
xemacs-21.4.22.tar.gz and xemacs-21.4.24.tar.bz2

About: XEmacs (an alternative to GNU Emacs) is a highly customizable open source text editor and application development system (current version).

range-tables.texi  (xemacs-21.4.22):range-tables.texi  (xemacs-21.4.24.tar.bz2)
@c -*-texinfo-*- @c -*-texinfo-*-
@c This is part of the XEmacs Lisp Reference Manual. @c This is part of the XEmacs Lisp Reference Manual.
@c Copyright (C) 1996 Ben Wing. @c Copyright (C) 1996 Ben Wing.
@c See the file lispref.texi for copying conditions. @c See the file lispref.texi for copying conditions.
@setfilename ../../info/range-tables.info @setfilename ../../info/range-tables.info
@node Range Tables, Databases, Hash Tables, top @node Range Tables, Databases, Hash Tables, Top
@chapter Range Tables @chapter Range Tables
@cindex Range Tables @cindex Range Tables
A range table is a table that efficiently associated values with A range table is a table that efficiently associated values with
ranges of integers. ranges of integers.
Note that range tables have a read syntax, like this: Note that range tables have a read syntax, like this:
@example @example
#s(range-table data ((-3 2) foo (5 20) bar)) #s(range-table data ((-3 2) foo (5 20) bar))
skipping to change at line 32 skipping to change at line 32
@defun range-table-p object @defun range-table-p object
Return non-@code{nil} if @var{object} is a range table. Return non-@code{nil} if @var{object} is a range table.
@end defun @end defun
@menu @menu
* Introduction to Range Tables:: Range tables efficiently map ranges of * Introduction to Range Tables:: Range tables efficiently map ranges of
integers to values. integers to values.
* Working With Range Tables:: Range table functions. * Working With Range Tables:: Range table functions.
@end menu @end menu
@node Introduction to Range Tables @node Introduction to Range Tables, Working With Range Tables, Range Tables, Ran ge Tables
@section Introduction to Range Tables @section Introduction to Range Tables
@defun make-range-table @defun make-range-table
Make a new, empty range table. Make a new, empty range table.
@end defun @end defun
@defun copy-range-table range-table @defun copy-range-table range-table
This function returns a new range table which contains the same values This function returns a new range table which contains the same values
for the same ranges as @var{range-table}. The values will not for the same ranges as @var{range-table}. The values will not
themselves be copied. themselves be copied.
@end defun @end defun
@node Working With Range Tables @node Working With Range Tables, , Introduction to Range Tables, Range Tables
@section Working With Range Tables @section Working With Range Tables
@defun get-range-table pos range-table &optional default @defun get-range-table pos range-table &optional default
This function finds value for position @var{pos} in @var{range-table}. This function finds value for position @var{pos} in @var{range-table}.
If there is no corresponding value, return @var{default} (defaults to If there is no corresponding value, return @var{default} (defaults to
@code{nil}). @code{nil}).
@end defun @end defun
@defun put-range-table start end value range-table @defun put-range-table start end value range-table
This function sets the value for range (@var{start}, @var{end}) to be This function sets the value for range (@var{start}, @var{end}) to be
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)