And please note I'm not a member of XEmacs mailing list (I cannot a
lot of English messages in a limited time, as I'm not a native
speaker/reader). If you have further comment, please send me
directly, too.
From: Martin Buchholz <martin(a)xemacs.org>
Subject: Re: gdbm support of database.c
Date: 03 Jan 1999 13:35:37 -0800
The right way to submit patches is to send them to
xemacs-patches(a)xemacs.org.
Yes, I will do.
First of all, there is no way we can change ndbm.h. That file is
provided as part of the operating system.
Diff for ndbm.h is only to avoid confliction between gdbm and dbm
support. If we choose we can only one of dbm or gdbm (the original
state of XEmacs 21.2b8), that's not necessary.
However, I think it's better for users to choose apply patch to a
part of an operation system. I can open both of dbm and gdbm file
with such diff. Or should I think to send patch to gdbm support
group?
configure is a generated file. You need to patch configure.in and
run autoconf (get autoconf 2.12 from
ftp://ftp.xemacs.org/pub/aux)
Yes, I did. Only smart diff command picked up a change made
automatically, too. However, you didn't have to get a automatically
changes. I will never send such a change automatically made.
I'm not sure we really want 3 different database types in the
code (up
from two today), since this will make maintenance more difficult.
....
Much of the functionality you implement is good, but should probably
be extended to other database types, Berkeley db in particular.
Do people who implement new code want it works on an opetation
system he/she uses? I use Linux box (Slackware 3.5) which has glibc
1 (not includes dbm related function) and GDBM, and DOESN'T HAVE a
berkeley db. That's a normal PC UNIX user (I don't say not all PC
UNIX users are same condition).
One day, he/she found that XEmacs could open dbm file directly and
was glad to open a gdbm file made by another program of which
extention is neither .dir nor .pag... He/She wondered, why he/she
could not open the gdbm file even if he/she built XEmacs with the
--with-database=gnudbm...
It's right that a problem of maintenance you said exists. But I
cannot find out why berkeley db should have priority than gdbm...
All the database functions will have to be changed someday to work
better
with different text encodings.
I'm not sure of text encoding. But I can put Japanese text
(euc-japan encoding) to gdbm file, and get it properly to other
encoding such as iso-2022-jp or sjis. But I can get nothing (but
sometimes get XEmacs core) when gdbm file made by perl. I'm not sure
that is a problem of XEmacs, perl (Japanized version) or my patch...
I suggest setopt-database be renamed set-database-property.
Yes, I will.
You probably also want to implement database-properties.
Does it return properties which a database opened has?
Some of your changes go against XEmacs coding conventions, like the
following:
You say I should use `||EQ' instead of `|| EQ'? If so I will do.
Thank you.
Mikio Nakajima <minakaji(a)osaka.email.ne.jp>
http://www.asahi-net.or.jp/~gy2m-nkjm/