Initial commit of D-Bus support imported from Emacs trunk revno=106693

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
Add DESCEND clause for dbus module

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
Add D-Bus module as option for with-modules

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
Merge remote-tracking branch 'njsf/for-steve' into njsf-dbus
True to add files to dbus module makefile

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
Merge branch 'for-steve' into njsf-dbus
Fix dbus build.

This changeset does just enough to get the new dbus emodule built.  Please
note that this doesn't mean dbus in SXEmacs is now done.  There is more to
come.  This JUST puts a bandaid on the build chain so it will build.

	* modules/dbus/Makefile.am (module_LTLIBRARIES): Set to `dbusbind.la'

	* modules/dbus/Makefile.am (BUILT_SOURCES): Remove non-generated
	sources.

	* modules/dbus/Makefile.am (dbus_la_SOURCES): Renamed from
	`sxe_dbus_la_SOURCES'.

	* modules/dbus/Makefile.am (nodist_dbus_la_SOURCES): Renamed from
	`nodist_sxe_dbus_la_SOURCES'.

	* modules/dbus/Makefile.am (dbus_la_CFLAGS): Renamed from
	`sxe_dbus_la_CFLAGS'.

	* configure.ac: Set have_modules_dbus and have_static_modules_dbus
	accordingly.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Improve D-Bus detection.

	* m4/sxe-emodffi.m4 (SXE_CHECK_DBUS): New to check for D-Bus.

	* configure.ac: Use it.

	* modules/dbus/Makefile.am (AM_CFLAGS): Add DBUS_CFLAGS.

	* modules/dbus/Makefile.am (AM_LDFLAGS): Add DBUS_LIBS.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Port GNU/Emacs dbusbind.c to SXEmacs -- Style changes

This changeset begins the process of porting GNU/Emacs' dbusbind.c to
SXEmacs.  So far this is mostly just indentation changes and reformating
of DEFUN's.

Build is currently severely broken with this.

	* modules/dbus/dbusbind.c: Reformat to SXEmacs style, and begin
	porting.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Port GNU/Emacs dbusbind.c to SXEmacs -- Fix most errors.

This changeset continues the work in porting GNU/Emacs' dbusbind.c.  It is
still not finished.  The build is still badly broken.

	* src/elhash.c: Make Q_test not static.

	* modules/dbus/dbusbind.c (CHECK_DBUS_SERIAL_GET_SERIAL): We call
	`MOST_POSITIVE_FIXNUM' a `EMACS_INT_MAX'.

	* modules/dbus/dbusbind.c (xd_signature_cat): ptrdiff_t's -> int's

	* modules/dbus/dbusbind.c (Fdbus_call_method): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_call_method_asynchronously): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_method_return_internal): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_method_error_internal): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_send_signal): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_register_service): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_register_signal): Ditto.

	* modules/dbus/dbusbind.c (xd_read_queued_messages): Add missing
	arg to internal_catch().

	* modules/dbus/dbusbind.c (syms_of_dbusbind): Change GNU DEFSYM's
	and defsubr's to our defsymbol and DEFSUBR respectively.

	* modules/dbus/dbusbind.c (syms_of_dbusbind): SXEmacs-erise the
	Fprovide().

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Port GNU/Emacs dbusbind.c to SXEmacs -- Warning fixes

This changeset fixes a good deal of compiler warnings.  We're not there
yet, but at least it does build now.  Working?  Nah, but it builds. :-)

	* modules/dbus/dbusbind.c Moved all the stuff that belongs in a
	header to new dbusbind.h.
	Added a bunch of stuff from GNU/Emacs just to get it to build
	cleanly.
	(xd_read_message_1): #if 0'd out just to
	get this pig to compile.  Need to revisit this to actually make it
	work.

	* modules/dbus/dbusbind.h: New.  Aside from the obvious, I'm also
	putting some GNU/Emacs things in here that we don't have yet and
	are needed for dbus until we do it our own way.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Cosmetic changes to file header/licence

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Fix more warnings in dbusbind.c

	* modules/dbus/dbusbind.c (Fdbus_call_method_asynchronously): Use
	CHECK_FUNCTION instead of GNU's FUNCTIONP

	* modules/dbus/dbusbind.c (Fdbus_register_signal): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_register_method): Ditto.

	* modules/dbus/dbusbind.h (SBYTES): Use XSTRING_LENGTH

	* modules/dbus/dbusbind.c (syms_of_dbusbind): Use build_string
	instead of GNU's make_pure_c_string.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Merge branch 'master' into dbus

Conflicts:
	modules/dbus/Makefile.am  Trivial, resolved.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Whitespace cleanup in modules/dbus

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Warning fixes -- dbusbind.

This changeset fixes all but 4 or 5 compiler warnings in dbusbind.  The
warnings that are left are some "implicit declaration of function 'foo'"
for some GNU/Emacs functions that I don't yet know what to do with.

	* modules/dbus/dbusbind.c (xd_find_watch_fd): Don't use
	`dbus_watch_get_fd()', it's deprecated.

	* modules/dbus/dbusbind.c (Fdbus_init_bus): Initialise busp to
	NULL.

	* modules/dbus/dbusbind.c (Fdbus_method_return_internal):
	Initialise serial to 0.

	* modules/dbus/dbusbind.c (Fdbus_method_error_internal): Ditto.

	* modules/dbus/dbusbind.c (Fdbus_register_service): If all else
	fails, return Qnil.

	* modules/dbus/dbusbind.h (SBYTES): No need to call XSTRING as
	XSTRING_LENGTH does that for us.

	* modules/dbus/dbusbind.h (XD_ERROR): Correctly cast mess to work
	right for our make_string().

	* modules/dbus/dbusbind.h (syms_of_dbusbind): Add.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Various "just before release" updates and housekeeping

	* INSTALL: A few minor updates such as typos, URL updates etc.

	* PROBLEMS: Fix a couple of typos.

	* README: Update list of subdirectories.

	* autogen.sh (EXPECTED_TREE_VERSION): Bump.

	* autogen.sh (sxemacs_codename): "Goggomobil"

	* info/sppm.texi: Update "versioning" macros.

	* info/sxemacs/sxemacs.texi (Top): Update version.

	* lisp/startup.el (splash-frame-body): Update my copyright.

	* etc/NEWS: Add this version's release notes.

	* info/sppm.texi (Making Releases): Describe how to generate the
	"Developer Stats" section.

	* info/sppm.texi (Making Releases): Use git to create diff from
	previous versions.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Update DISTRIB to talk about git instead of tla

	* etc/DISTRIB: Rewrite.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Last minute update to NEWS.

	* etc/NEWS: Forgot to mention bug 140 was fixed too

Signed-off-by: Steve Youngs <steve@sxemacs.org>
Update closed bug list

Signed-off-by: Steve Youngs <steve@sxemacs.org>