1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00
Commit graph

23703 commits

Author SHA1 Message Date
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
Richard M. Stallman
39d0bf7466 (syms_of_search) <inhibit-changing-match-data>: Doc fix. 2007-12-01 06:59:12 +00:00
Jason Rumney
f442d34883 (w32_face_attributes): Don't use color indexes that are out of range.
Only reverse the default colors.
2007-11-30 17:15:46 +00:00
Jason Rumney
f3157c6585 (vga_stdcolor_name): Remove. 2007-11-30 13:57:57 +00:00
Jason Rumney
09320d303e (w32con_ins_del_lines, scroll_line): Clip to window.
(w32con_reset_terminal_modes): Clear screen buffer.
(vga_stdcolor_name): Remove.
2007-11-30 13:57:21 +00:00
Jason Rumney
8d05ec5127 (map_tty_color, tty_color_name): Remove special case for WINDOWSNT. 2007-11-30 13:56:27 +00:00
YAMAMOTO Mitsuharu
959116ef2c (emacs_close) [MAC_OSX && HAVE_CARBON]:
Use mac_try_close_socket.
2007-11-30 08:20:08 +00:00
YAMAMOTO Mitsuharu
6bfb1e350d (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
New variable.
(mac_try_close_socket) [MAC_OSX]: New function.
[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
Update cfsockets_for_select.  Replace invalid CFRunLoop source.
2007-11-30 08:19:36 +00:00
Jason Rumney
b510360c6b Leave HAVE_WINDOW_SYSTEM defined.
(w32_face_attributes): Use Vtty_defined_color_alist to determine
if the terminal colors are initialized.
(unspecified_fg, unspecified_bg): Remove unused declarations.
2007-11-29 21:57:25 +00:00
Andreas Schwab
4b7ab1c4bc (apply_modifiers): Fix typo. 2007-11-29 11:49:23 +00:00
Richard M. Stallman
4bb6c266e4 (Fcurrent_local_map): Doc fix. 2007-11-29 01:08:57 +00:00