Applied to 21.1. This will be in 21.1.13.
- vin
>>>> On Thu, 24 Aug 2000, Martin Buchholz
<martin(a)xemacs.org> said:
Martin> Vin: Recommended for 21.1.
>>>> "N" == Norbert Koch <nk(a)LF.net>
writes:
N> (describe-installation) shows me
N> Databases:
N> Compiling in support for Berkeley database.
N> Compiling in support for GNU DBM.
N> but I see
N> (setq db (open-database "/var/db/locate.database"
N> 'berkeley_db 'hash "r"))
N> => Unsupported database type: berkeley_db
Martin> Note that if you are opening a database in r/o mode, the database file
Martin> must already exist, and the SUBTYPE argument is ignored.
N> So, what das 'Compiling in support for Berkeley database.' really
N> mean. Am I missing something?
Martin> No. We are.
Martin> (setq db (open-database "/tmp/t3" 'berkeley-db 'btree))
Martin> ==> #<database "/tmp/t3" (berkeley-db/btree/readwrite)
0xa02b>
Martin> ./man/ChangeLog:
Martin> 2000-08-24 Martin Buchholz <martin(a)xemacs.org>
Martin> * lispref/databases.texi (Connecting to a Database):
Martin> s/berkeley_db/berkeley-db/. Too much C programming.
Martin> Index: ./man/lispref/databases.texi
Martin> ===================================================================
Martin> RCS file: /usr/CVSroot/XEmacs/xemacs/man/lispref/databases.texi,v
Martin> retrieving revision 1.2.2.1
Martin> diff -u -w -r1.2.2.1 databases.texi
Martin> --- databases.texi 2000/05/11 05:54:43 1.2.2.1
Martin> +++ databases.texi 2000/08/24 04:58:50
Martin> @@ -26,16 +26,16 @@
Martin> permissions @var{mode}. @var{access} can be any combination of @code{r}
Martin> @code{w} and @code{+}, for read, write, and creation flags.
Martin> -@var{type} can have the value @code{'dbm} or @code{'berkeley_db} to
Martin> +@var{type} can have the value @code{'dbm} or @code{'berkeley-db} to
Martin> select the type of database file to use. (Note: XEmacs may not
Martin> support both of these types.)
Martin> For a @var{type} of @code{'dbm}, there are no subtypes, so
Martin> @var{subtype} should be @code{nil}.
Martin> -For a @var{type} of @code{'berkeley_db}, the following subtypes are
Martin> +For a @var{type} of @code{'berkeley-db}, the following subtypes are
Martin> available: @code{'hash}, @code{'btree}, and @code{'recno}. See
the
Martin> -manpages for the Berkeley DB functions to more information about these
Martin> +manpages for the Berkeley DB functions for more information about these
Martin> types.
Martin> @end defun