1. 02 May, 2012 3 commits
  2. 01 May, 2012 6 commits
  3. 29 Apr, 2012 1 commit
  4. 28 Apr, 2012 1 commit
    • Paul Eggert's avatar
      Do not avoid creating empty evaporating overlays (Bug#9642). · 13c379ee
      Paul Eggert authored
      * buffer.c (Fmove_overlay): Revert the change of 2012-04-23.
      That is, do not delete an evaporating overlay if it becomes
      empty after its bounds are adjusted to fit within its buffer.
      This fix caused other problems, and I'm reverting it until we get
      to the bottom of them.
      13c379ee
  5. 26 Apr, 2012 2 commits
  6. 24 Apr, 2012 4 commits
  7. 23 Apr, 2012 6 commits
    • Juanma Barranquero's avatar
      src/gnutls.c (init_gnutls_functions): Fix bug#11311. · 02fd101b
      Juanma Barranquero authored
      The value of :loaded-from is now a cons.
      02fd101b
    • Paul Eggert's avatar
      Do not create empty overlays with the evaporate property (Bug#9642). · 89a438bd
      Paul Eggert authored
      * 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.
      89a438bd
    • Eli Zaretskii's avatar
      Avoid assertion violation when scrolling minibuffer windows. · f0ee99a0
      Eli Zaretskii authored
       src/xdisp.c (pos_visible_p): If the window start position is beyond
       ZV, start the display from buffer beginning.  Prevents assertion
       violation in init_iterator when the minibuffer window is scrolled
       via the scroll bar.
       src/window.c (window_scroll_pixel_based): Likewise.
      f0ee99a0
    • Paul Eggert's avatar
      Fix minor GTK3 problems found by static checking. · 1068fe4d
      Paul Eggert authored
      * 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.
      1068fe4d
    • Paul Eggert's avatar
      * keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO. · 888bec30
      Paul Eggert authored
      Problem reported by Juanma Barranquero for Windows -Wunused-function.
      888bec30
    • Chong Yidong's avatar
      Doc fixes for where-is-internal. · 9ec7751f
      Chong Yidong authored
      * doc/lispref/keymaps.texi (Scanning Keymaps): Fix description of
      NO-REMAP arg to where-is-internal.
      
      * src/keymap.c (where_is_internal): Doc fix (Bug#10872).
      9ec7751f
  8. 22 Apr, 2012 7 commits
    • Paul Eggert's avatar
      Modernize and clean up gmalloc.c to assume C89 (Bug#9119). · d0baac98
      Paul Eggert authored
      * 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.
      d0baac98
    • Paul Eggert's avatar
    • Michael Albinus's avatar
      Move functions from C to Lisp. Make non-blocking method calls · dcbf5805
      Michael Albinus authored
      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.
      dcbf5805
    • Paul Eggert's avatar
      Fix GC_MALLOC_CHECK debugging output on 64-bit hosts. · da05bc4c
      Paul Eggert authored
      * alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
      Do not assume ptrdiff_t is the same width as 'int'.
      da05bc4c
    • Paul Eggert's avatar
      * alloc.c: Handle unusual debugging option combinations. · 52828e02
      Paul Eggert authored
      (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.
      52828e02
    • Leo Liu's avatar
      * src/sysdep.c (list_system_processes): Support Darwin. · f01769f9
      Leo Liu authored
      Fixes: debbugs:5725
      f01769f9
    • Paul Eggert's avatar
      * sysdep.c [__FreeBSD__]: Minor cleanups. · 5790543d
      Paul Eggert authored
      (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'.
      5790543d
  9. 21 Apr, 2012 2 commits
  10. 20 Apr, 2012 5 commits
    • Paul Eggert's avatar
      * keyboard.c (process_pending_signals): Define only if SYNC_INPUT. · 2f38dff7
      Paul Eggert authored
      It is never used otherwise.
      2f38dff7
    • Glenn Morris's avatar
      fileio.c fix for bug#11245 · 24c51a09
      Glenn Morris authored
      * src/fileio.c (Fcopy_file, Fset_file_selinux_context):
      Ignore ENOTSUP failures from setfilecon functions.
      24c51a09
    • Eli Zaretskii's avatar
      Fix bug #11288 with overrunning array limits. · 73055685
      Eli Zaretskii authored
       src/dispnew.c (swap_glyph_pointers, copy_row_except_pointers): Don't
       overrun array limits of glyph row's used[] array.
      73055685
    • Stefan Monnier's avatar
      * src/print.c (print_preprocess): Only check print_depth if print-circle · 4ae29f89
      Stefan Monnier authored
      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.
      4ae29f89
    • Chong Yidong's avatar
      Fixes for pty handling in gdb-mi.el and process.c. · f30d612a
      Chong Yidong authored
      * 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.
      f30d612a
  11. 18 Apr, 2012 2 commits
    • Glenn Morris's avatar
      More small doc and lispref edits related to processes · 4373fd43
      Glenn Morris authored
      * 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.
      4373fd43
    • Glenn Morris's avatar
      More process-related doc and manual small edits · 016a35df
      Glenn Morris authored
      * 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.
      016a35df
  12. 17 Apr, 2012 1 commit