1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
Commit graph

23713 commits

Author SHA1 Message Date
Michael Albinus
abe136eecd * dbusbind.c (Fdbus_method_return): New function.
(xd_read_message): Add the serial number to the event.
(Fdbus_register_method): Activate the function.
2008-01-04 21:39:47 +00:00
Stefan Monnier
87df3c322b (read_key_sequence): Fix typo. 2008-01-03 21:56:05 +00:00
Michael Albinus
5125905efd * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
(xd_signature, xd_append_arg): Handle element type detection for
empty arrays.
(Fdbus_call_method, Fdbus_send_signal): Undo type casting for
SDATA () calls; this must be solved more general.
(Fdbus_register_signal): Use SBYTES instead of strlen.
2008-01-03 21:27:25 +00:00
Magnus Henoch
2c3a8b2787 * dbusbind.c (Fdbus_call_method): Handle the case of no returned
arguments.
2008-01-03 16:35:44 +00:00
Magnus Henoch
8bba1b5cbb * dbusbind.c (xd_append_arg): Use unsigned char instead of
unsigned int for byte values (necessary for big-endian platform).
2008-01-03 16:34:07 +00:00
Michael Albinus
15f16c1ba7 * dbusbind.c (xd_read_message): Use non-static input_event struct. 2007-12-31 10:22:52 +00:00
Magnus Henoch
a271e124f4 * dbusbind.c (xd_signature): Signature of variant is just "v". 2007-12-31 00:57:51 +00:00
Michael Albinus
80f9d13bff *** empty log message *** 2007-12-30 15:55:29 +00:00
Michael Albinus
17bc8f9494 * dbusbind.c: Fix several errors and compiler warnings. Reported
by Tom Tromey <tromey@redhat.com>
(XD_ERROR, XD_DEBUG_MESSAGE)
(XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
(xd_append_arg): Part for basic D-Bus types rewitten.
(xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
appropriate.
(xd_read_message): Return Qnil.  Don't signal an error; it is not
useful during event reading.
(Fdbus_register_signal): Signal an error if the check for
FUNCTIONP fails.
(Fdbus_register_method): New function.  The implementation is not
complete, the call of the function signals an error therefore.
(Fdbus_unregister_object): New function, renamed from
Fdbus_unregister_signal.  The initial check signals an error, if
it the objct is not well formed.
2007-12-30 15:41:47 +00:00
Richard M. Stallman
dd6f28023d (get_char_property_and_overlay):
Signal error if POSITION is out of range in a buffer.
2007-12-30 13:42:10 +00:00
Martin Rudalics
1da8a03154 Make copy of frame parameters because the original parameters
are in pure storage now.
2007-12-29 19:20:36 +00:00
Miles Bader
fd41ad9836 Revert incorrect merge
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-969
2007-12-29 02:44:34 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
YAMAMOTO Mitsuharu
9d826ef208 (make_process): Initialize pty_flag to Qnil instead of 0
as it is not a bit field on Emacs 22 yet.
2007-12-24 05:26:06 +00:00
YAMAMOTO Mitsuharu
5742be860f (phys_cursor_in_rect_p): Check if cursor is in fringe area. 2007-12-24 03:01:28 +00:00
YAMAMOTO Mitsuharu
585a8772d5 (fill_menubar) [MAC_OSX]: Add workaround for Mac OS X 10.5
about not changing Help menu title.
2007-12-23 06:01:51 +00:00
Eli Zaretskii
b014713ca6 (syms_of_callint) <command-history>: Add reference to history-length in
the doc string.
2007-12-22 17:20:55 +00:00
Michael Albinus
b17f4b438f *** empty log message *** 2007-12-22 14:55:43 +00:00
Michael Albinus
9af5078b39 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
as number.
(Fdbus_call_method): Fix docstring.
2007-12-22 14:54:23 +00:00
Michael Albinus
87cf1a39ef * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
New macros.
(XD_SYMBOL_TO_DBUS_TYPE): Renamed from
XD_LISP_SYMBOL_TO_DBUS_TYPE.
(XD_OBJECT_TO_DBUS_TYPE): Renamed from
XD_LISP_OBJECT_TO_DBUS_TYPE. Simplify.
(xd_signature): New function.
(xd_append_arg): Compute also signatures.  Major rewrite.
(xd_retrieve_arg): Make debug messages friendly.
(Fdbus_call_method, Fdbus_send_signal): Extend docstring.  Check
for signatures of arguments.
2007-12-21 22:01:43 +00:00
Michael Albinus
54371585f7 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
(QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
(QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
(QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
(QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
(QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type
symbols.
(XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
(XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
(xd_retrieve_value): Removed. Functionality included in ...
(xd_append_arg): New function.
(Fdbus_call_method, Fdbus_send_signal): Apply it.
2007-12-19 22:50:22 +00:00
Martin Rudalics
d57d5a78ba *** empty log message *** 2007-12-19 19:43:47 +00:00
Jason Rumney
a313b2911a (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned before passing as wParam. 2007-12-17 01:50:42 +00:00
Michael Albinus
f5306ca30f * dbusbind.c (top): Include <stdio.h>.
(Fdbus_call_method, Fdbus_send_signal): Apply type cast in
dbus_message_new_method_call and dbus_message_new_signal.
(Fdbus_register_signal): Rename unique_name to uname.  Check
handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
non-existing unique name.  Fix typos in matching rule.  Return an
object which is useful in Fdbus_unregister_signal.
(Fdbus_unregister_signal): Reimplementation, in order to remove
only the corresponding entry.
(Vdbus_registered_functions_table): Change the order of entries.
Apply these changes in xd_read_message and Fdbus_register_signal.
2007-12-16 22:36:47 +00:00
Andreas Schwab
f5bf196677 Undo spurious change. 2007-12-16 10:54:19 +00:00
Andreas Schwab
77a28bbf17 (Finsert_file_contents): Fix overflow check to not
depend on undefined integer overflow.
2007-12-16 10:51:12 +00:00
Miles Bader
47854a5568 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-956
2007-12-16 04:31:49 +00:00
Eli Zaretskii
34fb0fc985 *** empty log message *** 2007-12-15 10:09:17 +00:00
Michael Albinus
eb7c7bf54e * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
(Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
`unsigned int' instead of `uint'.
(xd_read_message, Fdbus_register_signal): Split expressions into
multiple lines before operators "&&" and "||", according to the
GNU Coding Standards.
2007-12-14 21:49:52 +00:00
Jason Rumney
2e3566d8b7 (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT for characters above 127. 2007-12-14 12:26:31 +00:00
Eli Zaretskii
8a8ce986d7 (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT. 2007-12-14 11:56:30 +00:00
Jason Rumney
bf25403702 (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
before dereferencing array.
(lookup_vk_code): Remove zero comparison.
2007-12-13 15:53:26 +00:00
Juri Linkov
c7d97628b0 (Frename_buffer): In interactive spec replace
`read-buffer' with `read-string' that uses `buffer-name-history'
as history, and the current buffer's name as default.
2007-12-12 00:10:37 +00:00
Stefan Monnier
6d0867e5f5 (Fcommand_execute): Call Qcall_interactively instead of
manipulating the backtrace manually.
(make_lispy_event): Merge the ASCII and MULTIBYTE cases.
(struct backtrace, backtrace_list): Remove.
(command_loop_1): Remove dead var `no_direct'.
2007-12-10 03:48:05 +00:00
Stefan Monnier
3709505e05 (reset_buffer_local_variables): If permanent_too is 0, also
preserve non-built-in buffer-local variables.
(Fkill_all_local_variables): Don't re-create&re-set permanent
buffer-local variables.
2007-12-10 03:47:46 +00:00
Juri Linkov
e2bec88627 (Frename_buffer): Change interactive spec from "s" to
Lisp code that uses `read-buffer' with current buffer as default.
2007-12-09 23:49:15 +00:00
Michael Albinus
a31d47c7dd * dbusbind.c (xd_read_message): Generate an event for every
registered handler.  There might be several handlers registered
for the same signal.
(Fdbus_register_signal): Don't overwrite a registration for the
same signal.  Add a new registration if handlers are different.
(Vdbus_registered_functions_table): Rework doc string.
2007-12-08 12:53:37 +00:00
Michael Albinus
52da95fa96 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
(Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
(Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
Unify argument lists.
(xd_read_message, Fdbus_register_signal) Reorder and extend event
arguments and hash table keys.  Use unique name for service.
(Fdbus_unregister_signal): Remove checks.
(Vdbus_registered_functions_table): Fix doc string.
2007-12-07 04:40:28 +00:00
Miles Bader
e5e76c0431 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-943
2007-12-06 00:46:18 +00:00
Michael Albinus
96faeb40c2 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
Move check for Vdbus_registered_functions_table to
xd_read_queued_messages.
(xd_read_queued_messages): Protect xd_read_message calls by
internal_condition_case_1.
2007-12-05 21:53:40 +00:00
Miles Bader
79f10da0c3 Add arch tagline 2007-12-04 22:41:47 +00:00
Michael Albinus
39abdd4a8a * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Renamed from
Qdbus_system_bus and Qdbus_session_bus, respectively.
(Vdbus_intern_symbols): Removed.
(Vdbus_registered_functions_table): New hash table.
(XD_SYMBOL_INTERN_SYMBOL): Removed.
(xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
Rewritten in order to manage registered functions by hash table
Vdbus_registered_functions_table.
2007-12-04 21:29:40 +00:00
Glenn Morris
07562bde72 Regenerate. 2007-12-04 07:18:27 +00:00
Jan Djärv
7ba3065747 Update URL to Window Manager Specification in comment. 2007-12-03 09:35:19 +00:00
Richard M. Stallman
0277bfa1a4 (make_process): Initialize pty_flag to 0. 2007-12-03 00:41:15 +00:00
Michael Albinus
033b73e2e0 * config.in (HAVE_DBUS): Add.
* Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
(ALL_CFLAGS): Add ${DBUS_CFLAGS}.
(obj): Add $(DBUS_OBJ).
(LIBES): Add $(DBUS_LIBS).
(dbusbind.o): New target.

* dbusbind.c: New file.

* emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.

* keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
(Qdbus_event) New Lisp symbol.
(kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
(gobble_input): Call xd_read_queued_messages, reading D-Bus
messages.
(keys_of_keyboard ): Define dbus-event.

* termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
2007-12-02 16:23:40 +00:00
Jason Rumney
44b1dc2e97 (xbm_load) [WINDOWSNT]: Shuffle the bits of directly specified XBMs. 2007-12-02 16:18:47 +00:00
Richard M. Stallman
d0f44b7145 (syms_of_xdisp) <scroll-conservatively>: Doc fix. 2007-12-01 22:44:08 +00:00
Jason Rumney
30b7f3e6d0 (w32_face_attributes): Comment previous change. 2007-12-01 15:57:41 +00:00
Jason Rumney
f1e8dcf11a *** empty log message *** 2007-12-01 15:15:47 +00:00