1. 23 Nov, 2014 5 commits
  2. 22 Nov, 2014 2 commits
  3. 21 Nov, 2014 1 commit
    • Ulf Jasper's avatar
      'libxml-parse(html|xml)-region': new optional param 'discard-comments'. · c39443c1
      Ulf Jasper authored
      * doc/lispref/text.texi (Parsing HTML/XML): Document new optional parameter
      'discard-comments' of 'libxml-parse(html|xml)-region'.
      
      * src/xml.c (parse_region): Take care of new optional parameter
      'discard-comments' of 'libxml-parse(html|xml)-region'.
      (Flibxml_parse_html_region, Flibxml_parse_xml_region): New
      optional parameter 'discard-comments'.
      
      * test/automated/libxml-tests.el
      (libxml-tests--data-comments-preserved): Renamed from
      'libxml-tests--data'.
      (libxml-tests--data-comments-discarded): New.
      (libxml-tests): Check whether 'libxml-parse-xml-region' is
      discarding comments correctly.
      c39443c1
  4. 17 Nov, 2014 1 commit
    • Paul Eggert's avatar
      Improve time stamp handling, and be more consistent about it. · 0921dbc3
      Paul Eggert authored
      This implements a suggestion made in:
      http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00587.html
      Among other things, this means timer.el no longer needs to
      autoload the time-date module.
      * doc/lispref/os.texi (Time of Day, Time Conversion, Time Parsing)
      (Processor Run Time, Time Calculations):
      Document the new behavior, plus be clearer about the old behavior.
      (Idle Timers): Take advantage of new functionality.
      * etc/NEWS: Document the changes.
      * lisp/allout-widgets.el (allout-elapsed-time-seconds): Doc fix.
      * lisp/arc-mode.el (archive-ar-summarize):
      * lisp/calendar/time-date.el (seconds-to-time, days-to-time, time-since):
      * lisp/emacs-lisp/timer.el (timer-relative-time, timer-event-handler)
      (run-at-time, with-timeout-suspend, with-timeout-unsuspend):
      * lisp/net/tramp.el (tramp-time-less-p, tramp-time-subtract):
      * lisp/proced.el (proced-time-lessp):
      * lisp/timezone.el (timezone-time-from-absolute):
      * lisp/type-break.el (type-break-schedule, type-break-time-sum):
      Simplify by using new functionality.
      * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
      Do not return time values in obsolete and undocumented (HI . LO)
      format; use (HI LO) instead.
      * lisp/calendar/time-date.el (with-decoded-time-value):
      Treat 'nil' as current time.  This is mostly for XEmacs.
      (encode-time-value, with-decoded-time-value): Obsolete.
      (time-add, time-subtract, time-less-p): Use no-op autoloads, for
      XEmacs.  Define only if XEmacs, as they're now C builtins in Emacs.
      * lisp/ldefs-boot.el: Update to match new time-date.el
      * lisp/proced.el: Do not require time-date.
      * src/editfns.c (invalid_time): New function.
      Use it instead of 'error ("Invalid time specification")'.
      (time_add, time_subtract, time_arith, Ftime_add, Ftime_less_p)
      (decode_float_time, lisp_to_timespec, lisp_time_struct):
      New functions.
      (make_time_tail, make_time): Remove.  All uses changed to use
      new functions or plain list4i.
      (disassemble_lisp_time): Return effective length if successful.
      Check that LOW is an integer, if it's combined with other components.
      (decode_time_components): Decode into struct lisp_time, not
      struct timespec, so that we can support a wide set of times
      regardless of whether time_t is signed.  Decode plain numbers
      as seconds since the Epoch, and nil as the current time.
      (lisp_time_argument, lisp_seconds_argument, Ffloat_time):
      Reimplement in terms of new functions.
      (Fencode_time): Just use list2i.
      (syms_of_editfns): Add time-add, time-subtract, time-less-p.
      * src/keyboard.c (decode_timer): Don't allow the new formats (floating
      point or nil) in timers.
      * src/systime.h (LO_TIME_BITS): New constant.  Use it everywhere in
      place of the magic number '16'.
      (struct lisp_time): New type.
      (decode_time_components): Use it.
      (lisp_to_timespec): New decl.
      0921dbc3
  5. 16 Nov, 2014 1 commit
    • Lars Magne Ingebrigtsen's avatar
      Implement an `inhibit-read-only' text property · d1b04a9e
      Lars Magne Ingebrigtsen authored
      * doc/lispref/text.texi (Special Properties): Mention `inhibit-read-only'.
      
      * src/buffer.c (Fbarf_if_buffer_read_only): Don't raise an error if
      the text at POSITION (new optional argument) has the
      `inhibit-read-only' text property set.
      
      * src/callint.c (Fcall_interactively): Pass in nil as argument to
      Fbarf_if_buffer_read_only.
      
      * src/fileio.c (Finsert_file_contents): Ditto.
      
      * src/insdel.c (prepare_to_modify_buffer_1): Pass start region in.
      
      * src/intervals.h (INTERVAL_WRITABLE_P): Check the `inhibit-read-only'
      text property.
      
      * src/textprop.c (verify_interval_modification): Check buffer
      readedness after the last interval.
      d1b04a9e
  6. 15 Nov, 2014 5 commits
  7. 14 Nov, 2014 4 commits
  8. 13 Nov, 2014 1 commit
    • Paul Eggert's avatar
      Avoid undefined behavior in color table hashing. · 911ad4a1
      Paul Eggert authored
      * image.c (CT_HASH_RGB) [COLOR_TABLE_SUPPORT]: Remove, replacing with ...
      (ct_hash_rgb) [COLOR_TABLE_SUPPORT]: New function.  All uses changed.
      This function avoids undefined behavior with signed shift overflow.
      911ad4a1
  9. 10 Nov, 2014 1 commit
  10. 09 Nov, 2014 6 commits
  11. 08 Nov, 2014 4 commits
    • Jan Djärv's avatar
      * nsterm.m (ns_set_vertical_scroll_bar): Don't call bar setPosition: unless · d244e9bf
      Jan Djärv authored
      needed (Bug#18757).
      
      Fixes: debbugs:18993
      d244e9bf
    • Jan Djärv's avatar
      Attempt to fix NS hang. Will probably cause merge conflicts. · 86b1c771
      Jan Djärv authored
      * nsterm.m (init): Replace OSX 10.9 check with IMPL_COCOA.
      (run): Ditto.  Only use non-system event loop if OSX version is
      exactly 10.9.
      
      Fixes: debbugs:18993
      86b1c771
    • Martin Rudalics's avatar
      Run `window-configuration-change-hook' only after all faces have been realized. · c936cbbc
      Martin Rudalics authored
      * frame.c (adjust_frame_size): Call x_set_window_size only if
      f->can_x_set_window_size is set.
      (make_frame): Initialize f->can_x_set_window_size and
      f->can_run_window_configuration_change_hook.
      (Fcan_run_window_configuration_change_hook): New function.
      * frame.h (frame): Split `official' into `can_x_set_window_size'
      and `can_run_window_configuration_change_hook'.
      * nsfns.m (Fx_create_frame): Set f->can_x_set_window_size.
      * w32fns.c (Fx_create_frame, x_create_tip_frame): Set
      f->can_x_set_window_size.
      * window.c (run_window_configuration_change_hook): Return
      immediately if either f->can_x_set_window_size or
      f->can_run_window_configuration_change_hook are false.
      (Fset_window_configuration): Instead of f->official set
      f->can_x_set_window_size.
      * xfns.c (Fx_create_frame, x_create_tip_frame): Set
      f->can_x_set_window_size.
      * faces.el (face-set-after-frame-default): Enable running
      `window-configuration-change-hook'.
      c936cbbc
    • Jan Djärv's avatar
      * nsterm.m (EmacsScroller.dealloc): Reinstate, removed at merge · a05fd1fc
      Jan Djärv authored
      cleanup from 2014-11-01.
      
      Fixes: debbugs:18972
      a05fd1fc
  12. 07 Nov, 2014 4 commits
    • Stefan Monnier's avatar
      * src/keyboard.c: Call gui-set-selection instead of x-set-selection. · 3946aeb9
      Stefan Monnier authored
      * src/xdisp.c (window-scroll-functions): Improve docstring.
      3946aeb9
    • Paul Eggert's avatar
      Uniquify the 'size' symbol. · 0e44a2d2
      Paul Eggert authored
      * frame.c (Qsize):
      * w32notify.c (Qsize): Remove.
      * lisp.h (Qsize): New decl.
      * lread.c (Qsize): Now extern.
      * w32notify.c (syms_of_w32notify): No need to defsym.
      0e44a2d2
    • Michael Albinus's avatar
      * callproc.c (encode_current_directory): Support handling of file · 5282dec1
      Michael Albinus authored
      names prepended by "/:".
      
      Fixes: debbugs:18891
      5282dec1
    • Martin Rudalics's avatar
      Improve inhibiting of implied frame resizes. · 1c50b3ad
      Martin Rudalics authored
      * frames.texi (Size and Position): Rewrite description of
      `frame-inhibit-implied-resize'.
      * cus-start.el (frame-resize-pixelwise): Fix group.
      (frame-inhibit-implied-resize): Add entry.
      * dispnew.c (change_frame_size_1): Fix call of
      adjust_frame_size.
      * frame.c (Qsize, Qframe_position, Qframe_outer_size)
      (Qframe_inner_size, Qexternal_border_size, Qtitle_height)
      (Qmenu_bar_external, Qmenu_bar_size, Qtool_bar_external)
      (Qtool_bar_size): New constants.
      (frame_inhibit_resize, adjust_frame_size): New argument to
      handle case where frame_inhibit_implied_resize is a list.
      (Fmake_terminal_frame, Fset_frame_height, Fset_frame_width)
      (Fset_frame_size, x_set_left_fringe, x_set_right_fringe)
      (x_set_right_divider_width, x_set_bottom_divider_width)
      (x_set_vertical_scroll_bars, x_set_horizontal_scroll_bars)
      (x_set_scroll_bar_width, x_set_scroll_bar_height): Update
      callers.
      (frame-inhibit-implied-resize): Rewrite doc-string.
      * frame.h (frame_inhibit_resize, adjust_frame_size): Fix
      external declarations.
      (Qframe_position, Qframe_outer_size)
      (Qframe_inner_size, Qexternal_border_size, Qtitle_height)
      (Qmenu_bar_external, Qmenu_bar_size, Qtool_bar_external)
      (Qtool_bar_size): Extern them.
      * gtkutil.c (FRAME_TOTAL_PIXEL_HEIGHT, FRAME_TOTAL_PIXEL_WIDTH)
      (xg_height_or_width_changed): Remove.
      (xg_frame_set_char_size): Adjust adjust_frame_size calls.
      (menubar_map_cb, xg_update_frame_menubar, free_frame_menubar)
      (tb_size_cb, update_frame_tool_bar, free_frame_tool_bar)
      (xg_change_toolbar_position): Call adjust_frame_size directly.
      * nsfns.m (x_set_internal_border_width, Fx_create_frame): Fix
      calls of adjust_frame_size.
      * w32fns.c (x_set_internal_border_width, x_set_menu_bar_lines)
      (Fx_create_frame, x_create_tip_frame): Adjust adjust_frame_size
      calls.
      (x_set_tool_bar_lines, x_change_tool_bar_height): Make sure that
      frame can get resized when tool-bar-lines parameter changes from
      or to zero.
      (Fw32_frame_menu_bar_size): Return fourth value.
      (Fw32_frame_rect): Block input around system calls
      (Fx_frame_geometry): New function.
      * w32menu.c (set_frame_menubar): Adjust adjust_frame_size call.
      * w32term.c (x_new_font): Adjust adjust_frame_size call.
      * widget.c (EmacsFrameSetCharSize): Adjust frame_inhibit_resize
      call.
      * window.c (Fset_window_configuration): Adjust adjust_frame_size
      call.
      * xfns.c (x_set_menu_bar_lines, x_set_internal_border_width)
      (Fx_create_frame): Adjust adjust_frame_size calls.
      (x_set_tool_bar_lines, x_change_tool_bar_height): Make sure that
      frame can get resized when tool-bar-lines parameter changes from
      or to zero.
      (Fx_frame_geometry): New function.
      * xmenu.c (update_frame_menubar): On Lucid call
      adjust_frame_size with one pixel less height to avoid that
      repeatedly adding/removing the menu bar grows the frame.
      (free_frame_menubar): On Motif arrange to optionally preserve
      the old frame height when removing the menu bar.
      * xterm.c (x_new_font): Adjust adjust_frame_size call.
      1c50b3ad
  13. 06 Nov, 2014 2 commits
  14. 05 Nov, 2014 1 commit
  15. 03 Nov, 2014 2 commits