aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't clear echo area prematurely when handling select window events ↵Martin Rudalics2012-04-242-1/+10
| | | | | | | | | | (Bug#11304). * keyboard.c (read_char): Don't wipe echo area for select window events: These might get delayed via `mouse-autoselect-window' (Bug#11304). * window.el (handle-select-window): Clear echo area since this is no more done by read_char (Bug#11304).
* src/gnutls.c: Fix previous change.Juanma Barranquero2012-04-242-2/+11
| | | | | (init_gnutls_functions): Protect against (unlikely) manipulation of :loaded-from data.
* src/gnutls.c (init_gnutls_functions): Fix bug#11311.Juanma Barranquero2012-04-242-2/+7
| | | | The value of :loaded-from is now a cons.
* Do not create empty overlays with the evaporate property (Bug#9642).Paul Eggert2012-04-232-18/+27
| | | | | | | | | * buffer.c (Fmove_overlay): Delete an evaporating overlay if it becomes empty after its bounds are adjusted to fit within its buffer. Without this fix, in a nonempty buffer (let ((o (make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1)) yields an empty overlay that has the evaporate property, which is not supposed to happen.
* Fix minor GTK3 problems found by static checking.Paul Eggert2012-04-234-34/+39
| | | | | | | | | | | | | | | | * emacsgtkfixed.c (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed) (EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed) (struct _EmacsFixedClass, emacs_fixed_get_type): Move decls here from emacsgtkfixed.h, since they needn't be public. (emacs_fixed_get_type): Now static. (emacs_fixed_class_init): Omit unused local. (emacs_fixed_child_type): Remove; unused. * emacsgtkfixed.h (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed) (EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed) (struct _EmacsFixedClass): Move to emacsgtkfixed.c. (EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS) (EMACS_FIXED_GET_CLASS): Remove; unused. * gtkutil.c (xg_create_frame_widgets) [!HAVE_GTK3]: Omit unused local.
* Spelling fixes.Paul Eggert2012-04-223-3/+3
|
* * keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.Paul Eggert2012-04-222-0/+7
| | | | Problem reported by Juanma Barranquero for Windows -Wunused-function.
* Modernize and clean up gmalloc.c to assume C89 (Bug#9119).Paul Eggert2012-04-222-375/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gmalloc.c: (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t) (__malloc_size_t, __malloc_ptrdiff_t): Remove. All uses removed, replaced by the definiens if needed, since we can assume C89 or better now. Include <stdint.h>, for PTRDIFF_MAX, uintptr_t. (protect_malloc_state, align, get_contiguous_space) (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) (malloc_atfork_handler_child, malloc_enable_thread) (malloc_initialize_1, __malloc_initialize, morecore_nolock) (_malloc_internal_nolock, _malloc_internal, malloc, _malloc) (_free, _realloc, _free_internal_nolock, _free_internal, free, cfree) (special_realloc, _realloc_internal_nolock, _realloc_internal) (realloc, calloc, __default_morecore, memalign, valloc, checkhdr) (freehook, mallochook, reallochook, mabort, mcheck, mprobe): Define using prototypes, not old style. (align, _malloc_internal_nolock, _free_internal_nolock, memalign): Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long. (align): Don't assume that signed integer overflow wraps around. Omit unused local var. (malloc_initialize_1, morecore_nolock, _malloc_internal_nolock) (_free_internal_nolock, memalign, mallochook, reallochook): Omit no-longer-needed casts. (valloc): Use getpagesize, not __getpagesize. (MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit. (struct hdr): The 'magic' member is now size_t, not unsigned long.
* * dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.Paul Eggert2012-04-222-1/+8
|
* Move functions from C to Lisp. Make non-blocking method callsMichael Albinus2012-04-222-1155/+622
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the default. Implement further D-Bus standard interfaces. * configure.in (dbus_validate_bus_name, dbus_validate_path) (dbus_validate_interface, dbus_validate_member): Check also for these library functions * dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare. (QCdbus_request_name_allow_replacement) (QCdbus_request_name_replace_existing) (QCdbus_request_name_do_not_queue) (QCdbus_request_name_reply_primary_owner) (QCdbus_request_name_reply_in_queue) (QCdbus_request_name_reply_exists) (QCdbus_request_name_reply_already_owner): Move to dbus.el. (QCdbus_registered_serial, QCdbus_registered_method) (QCdbus_registered_signal): New Lisp objects. (XD_DEBUG_MESSAGE): Use sizeof. (XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING) (XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT) (XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH) (XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros. (XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL. (xd_signature, xd_append_arg): Allow float for integer types. (xd_get_connection_references): New function. (xd_get_connection_address): Rename from xd_initialize. Return cached address. (xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS. (xd_close_bus): Rename from Fdbus_close_bus. Not needed on Lisp level. (Fdbus_init_bus): New optional arg PRIVATE. Cache address. Return number of recounts. (Fdbus_get_unique_name): Make stronger parameter check. (Fdbus_message_internal): New defun. (Fdbus_call_method, Fdbus_call_method_asynchronously) (Fdbus_method_return_internal, Fdbus_method_error_internal) (Fdbus_send_signal, Fdbus_register_service) (Fdbus_register_signal, Fdbus_register_method): Move to dbus.el. (xd_read_message_1): Obey new structure of Vdbus_registered_objects. (xd_read_queued_messages): Obey new structure of Vdbus_registered_buses. (Vdbus_compiled_version, Vdbus_runtime_version) (Vdbus_message_type_invalid, Vdbus_message_type_method_call) (Vdbus_message_type_method_return, Vdbus_message_type_error) (Vdbus_message_type_signal): New defvars. (Vdbus_registered_buses, Vdbus_registered_objects_table): Adapt docstring. * net/dbus.el (dbus-message-internal): Declare function. Remove unneeded function declarations. (defvar dbus-message-type-invalid, dbus-message-type-method-call) (dbus-message-type-method-return, dbus-message-type-error) (dbus-message-type-signal): Declare variables. Remove local definitions. (dbus-interface-dbus, dbus-interface-peer) (dbus-interface-introspectable, dbus-interface-properties) (dbus-path-emacs, dbus-interface-emacs, dbus-return-values-table): Adapt docstring. (dbus-interface-objectmanager): New defconst. (dbus-call-method, dbus-call-method-asynchronously) (dbus-send-signal, dbus-method-return-internal) (dbus-method-error-internal, dbus-register-service) (dbus-register-signal, dbus-register-method): New defuns, moved from dbusbind.c (dbus-call-method-handler, dbus-setenv) (dbus-get-all-managed-objects, dbus-managed-objects-handler): New defuns. (dbus-call-method-non-blocking): Make it an obsolete function. (dbus-unregister-object, dbus-unregister-service) (dbus-handle-event, dbus-register-property) (dbus-property-handler): Obey the new structure of `bus-registered-objects'. (dbus-introspect): Use `dbus-call-method'. Use a timeout. (dbus-get-property, dbus-set-property, dbus-get-all-properties): Use `dbus-call-method'. * dbus.texi (Version): New node. (Properties and Annotations): Mention the object manager interface. Describe dbus-get-all-managed-objects. (Type Conversion): Floating point numbers are allowed, if an anteger does not fit Emacs's integer range. (Synchronous Methods): Remove obsolete dbus-call-method-non-blocking. (Asynchronous Methods): Fix description of dbus-call-method-asynchronously. (Receiving Method Calls): Fix some minor errors. Add dbus-interface-emacs. (Signals): Describe unicast signals and the new match rules. (Alternative Buses): Add the PRIVATE optional argument to dbus-init-bus. Describe its new return value. Add dbus-setenv.
* Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.Paul Eggert2012-04-222-1/+5
| | | | | * alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Do not assume ptrdiff_t is the same width as 'int'.
* * alloc.c: Handle unusual debugging option combinations.Paul Eggert2012-04-222-10/+22
| | | | | | | | | | (GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK, since the two debugging options are incompatible. (GC_MALLOC_CHECK): Similarly, undef if GC_CHECK_MARKED_OBJECTS is defined. (mem_init, mem_insert, mem_insert_fixup): Define if GC_MARK_STACK || GC_MALLOC_CHECK. (NEED_MEM_INSERT): Remove; no longer needed.
* * src/sysdep.c (list_system_processes): Support Darwin.Leo Liu2012-04-222-2/+20
| | | | Fixes: debbugs:5725
* * sysdep.c [__FreeBSD__]: Minor cleanups.Paul Eggert2012-04-212-46/+56
| | | | | | (list_system_processes, system_process_attributes) [__FreeBSD__]: Use Emacs indenting style more consistently. Avoid some casts. Use 'double' consistently rather than mixing 'float' and 'double'.
* Add system processes support for FreeBSD.Eduard Wiebe2012-04-212-0/+216
| | | | | | | * src/sysdep.c (list_system_processes, system_process_attributes): Add implementation for FreeBSD. Fixes: debbugs:5243
* * lisp.mk (lisp): Update.Andreas Schwab2012-04-212-0/+5
|
* * keyboard.c (process_pending_signals): Define only if SYNC_INPUT.Paul Eggert2012-04-202-0/+7
| | | | It is never used otherwise.
* * src/print.c (print_preprocess): Only check print_depth if print-circleStefan Monnier2012-04-202-50/+56
| | | | | | is nil. (print_object): Check for cycles even when print-circle is nil and print-gensym is t, but only check print_depth if print-circle is nil.
* Merge from emacs-24 branchChong Yidong2012-04-203-21/+70
|\
| * Fixes for pty handling in gdb-mi.el and process.c.Chong Yidong2012-04-202-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change. (gdb-inferior-io--init-proc): New function. (gdb-init-1): Use it. (gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty, responsible for allocating a new pty and hooking it to gdb when the old pty gets an EIO due to process exit. (gdb-delchar-or-quit): New command. Bind it in gdb-mi buffers. (gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area. (gdb-inferior-io--maybe-delete-pty): Move into gdb-reset. * src/process.c (wait_reading_process_output): If EIO occurs on a pty, set the status to "failed" and ensure that sentinel is run. * doc/lispref/processes.texi (Asynchronous Processes): Mention nil argument to start-process.
| * More small doc and lispref edits related to processesGlenn Morris2012-04-182-5/+4
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec) (Bindat Functions): Copyedits. * src/process.c (Fset_process_inherit_coding_system_flag) (Fset_process_query_on_exit_flag): Doc fix (mention return value). (Fmake_network_process, Fmake_serial_process): Doc fix. * admin/FOR-RELEASE: Related markup.
| * More process-related doc and manual small editsGlenn Morris2012-04-172-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Output from Processes, Filter Functions): Mention waiting-for-user-input-p. (Sentinels, Query Before Exit, System Processes, Transaction Queues): (Network Servers, Datagrams, Network Processes, Network Options) (Network Feature Testing, Serial Ports): Copyedits. (Network): Add encrypted network overview paragraph. Cross-reference the Emacs-GnuTLS manual. Use @acronym. * lisp/net/network-stream.el (open-network-stream): Doc fix. * src/process.c (Fset_process_inherit_coding_system_flag) (Fset_process_query_on_exit_flag): Doc fix (mention return value). (Fmake_network_process): Doc fix.
| * Fix bug #11261 with cursor movement in a continued line when header line is ↵Eli Zaretskii2012-04-172-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | present. src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV. (set_cursor_from_row): If called for a mode-line or header-line row, return zero immediately. (try_cursor_movement): If inside continuation line, don't back up farther than the first row after the header line, if any. Don't consider the header-line row as "partially visible", even if MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.
* | Merge from trunk.Paul Eggert2012-04-181-1/+1
|\ \
* \ \ Merge from trunk.Paul Eggert2012-04-172-3/+6
|\ \ \ | |/ /
| * | * dired.c (Fsystem_groups): Remove unused local.Paul Eggert2012-04-172-3/+6
| | |
* | | Merge from trunk.Paul Eggert2012-04-172-13/+64
|\ \ \ | |/ /
| * | * src/dired.c (Fsystem_users): Doc fix.Glenn Morris2012-04-162-1/+6
| | | | | | | | | | | | * etc/NEWS: Mention system-users, system-groups.
| * | Add functions to get system user names, group namesDmitry Antipov2012-04-162-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note from committer: I removed the part that adds grp.h to AC_CHECK_HEADERS and +#ifdef HAVE_GRP_H #include <grp.h> +#endif to src/dired.c, because the latter has unconditionally included grp.h since 2003, and uses it eg in stat_gname. * configure.in (AC_CHECK_FUNCS): Add getpwent, endpwent, getgrent, endgrent. * src/dired.c (Fsystem_users, Fsystem_groups): New functions. (syms_of_dired): Add them. Fixes: debbugs:7900
* | | Merge from trunk.Paul Eggert2012-04-152-4/+2
|\ \ \ | |/ /
| * | * alloc.c: Remove one incorrect comment and fix another.Paul Eggert2012-04-152-4/+2
| | |
* | | Merge from trunk.Paul Eggert2012-04-152-1/+24
|\ \ \ | |/ /
| * | Fix minor alloc.c problems found by static checking.Paul Eggert2012-04-152-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]: New extern decls, to avoid calling undeclared functions. (dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT) && GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used. (NEED_MEM_INSERT): New macro. (mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.
* | | Merge from trunk.Paul Eggert2012-04-152-59/+7
|\ \ \ | |/ /
| * | Fix minor ralloc.c problems found by static checking.Paul Eggert2012-04-152-59/+7
| | | | | | | | | | | | | | | | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html * ralloc.c (ALIGNED, ROUND_TO_PAGE, HEAP_PTR_SIZE) (r_alloc_size_in_use, r_alloc_freeze, r_alloc_thaw): Remove; unused. (r_alloc_sbrk): Now static.
* | | Merge from trunk.Paul Eggert2012-04-154-21/+17
|\ \ \ | |/ /
| * | Improve ralloc.c interface checking.Paul Eggert2012-04-154-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html * buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc) (r_alloc_free) [REL_ALLOC]: Move decls from here ... * lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable) [REL_ALLOC]: ... to here, to check interface. * m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]: Remove decls. This fixes an "It stinks!".
* | | Merge from trunk.Paul Eggert2012-04-152-2/+7
|\ \ \ | |/ /
| * | * alloc.c (which_symbols): Fix alignment issue / type clash.Paul Eggert2012-04-152-2/+7
| | |
* | | Merge from trunk.Paul Eggert2012-04-156-51/+77
|\ \ \ | |/ /
| * | Simplify enforcement of object address alignmentAndreas Schwab2012-04-153-45/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp.h (struct Lisp_Symbol): Remove explicit padding. (struct Lisp_Misc_Any): Likewise. (struct Lisp_Free): Likewise. * alloc.c (union aligned_Lisp_Symbol): Define. (SYMBOL_BLOCK_SIZE, struct symbol_block): Use union aligned_Lisp_Symbol instead of struct Lisp_Symbol. (union aligned_Lisp_Misc): Define. (MARKER_BLOCK_SIZE, struct marker_block): Use union aligned_Lisp_Misc instead of union Lisp_Misc. (Fmake_symbol, allocate_misc, gc_sweep): Adjust
| * | Fix ChangeLog typos.Juanma Barranquero2012-04-154-6/+6
| | |
* | | Merge from trunk.Paul Eggert2012-04-1314-23/+27
|\ \ \ | |/ /
| * | Make GC_MAKE_GCPROS_NOOPS the default (Bug#9926).Paul Eggert2012-04-1314-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp.h (GC_MARK_STACK): Default to GC_MAKE_GCPROS_NOOPS. * s/cygwin.h, s/darwin.h, s/freebsd.h, s/gnu.h, s/irix6-5.h, s/msdos.h: * s/netbsd.h, s/sol2-6.h: Remove definition of GC_MARK_STACK, since the default now works. * s/aix4-2.h, s/hpux10-20.h, s/unixware.h: Define GC_MARK_STACK to GC_USE_GCPROS_AS_BEFORE, since that's no longer the default. * s/gnu-linux.h (GC_MARK_STACK): Adjust to change in default.
* | | Merge from trunk.Paul Eggert2012-04-131-1/+1
|\ \ \ | |/ /
| * | Spelling fixes.Paul Eggert2012-04-131-1/+1
| | | | | | | | | | | | | | | * lisp/hexl.el (hexl-rulerize): Rename from hexl-rulerise, since Emacs uses American spelling.
* | | Merge from trunk.Paul Eggert2012-04-139-29/+75
|\ \ \ | |/ /
| * | Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-134-6/+32
| |\ \ | | |/
| | * * lread.c (lisp_file_lexically_bound_p): Fix hang at ";-*-\n".Atsuo Ohki2012-04-132-5/+8
| | | | | | | | | | | | Fixes: debbugs:11238
| | * Merge 2012-04-09 GnuTLS fix from trunkChong Yidong2012-04-105-2/+50
| | |