1. 30 Sep, 2017 1 commit
  2. 29 Sep, 2017 3 commits
  3. 28 Sep, 2017 3 commits
  4. 27 Sep, 2017 1 commit
  5. 26 Sep, 2017 2 commits
    • Paul Eggert's avatar
      Avoid some unnecessary copying in Fformat etc. · 0e82fa34
      Paul Eggert authored
      This patch is just for performance; it should not affect behavior.
      On my platform, it made the microbenchmark (format "%S" load-path)
      run about 45% faster.  It should also speed up calls like (message
      "%s" STRING).
      * src/callint.c (Fcall_interactively):
      * src/dbusbind.c (XD_OBJECT_TO_STRING):
      * src/editfns.c (Fmessage, Fmessage_box):
      * src/xdisp.c (vadd_to_log, Ftrace_to_stderr):
      Use styled_format instead of Fformat or Fformat_message,
      to avoid unnecessary copying.
      * src/editfns.c (styled_format): New arg NEW_RESULT.
      All uses changed.  Reuse an input string if it has the
      right value and if !NEW_RESULT.
      * src/lisp.h (style_format): New decl.
    • Philipp Stephani's avatar
  6. 24 Sep, 2017 1 commit
    • Alan Third's avatar
      Improve new NS scrolling variable names · 638f64c4
      Alan Third authored
      * src/nsterm.m (ns-use-system-mwheel-acceleration): Replace with
      (ns-touchpad-scroll-line-height): Replace with
      (ns-touchpad-use-momentum): Replace with 'ns-use-mwheel-momentum'.
      * etc/NEWS: Change variable names.
  7. 23 Sep, 2017 1 commit
  8. 22 Sep, 2017 1 commit
    • Mark Oteiza's avatar
      Expose viewing conditions in CAM02-UCS metric · d24ec585
      Mark Oteiza authored
      Also add tests from the colorspacious library.  Finally, catch an
      errant calculation, where degrees were not being converted to radians.
      * src/lcms.c (deg2rad, default_viewing_conditions):
      (parse_viewing_conditions): New functions.
      (lcms-cam02-ucs): Add comments pointing to references used.  Expand
      the docstring and explain viewing conditions.  JCh hue is given in
      degrees and needs to be converted to radians.
      (lcms-d65-xyz): Remove.  No need to duplicate this in Lisp or make the
      API needlessly impure.
      * test/src/lcms-tests.el: Reword commentary.
      (lcms-rgb255->xyz): New function.
      (lcms-cri-cam02-ucs): Fix let-binding.
      (lcms-dE-cam02-ucs-silver): New test, assimilated from colorspacious.
  9. 21 Sep, 2017 1 commit
  10. 19 Sep, 2017 4 commits
    • Alan Third's avatar
      Provide native touchpad scrolling on macOS · a5fec62b
      Alan Third authored
      * etc/NEWS: Describe changes.
      * lisp/term/ns-win.el (mouse-wheel-scroll-amount,
      mouse-wheel-progressive-speed): Set to smarter values for macOS
      * src/nsterm.m (emacsView::mouseDown): Use precise scrolling deltas to
      calculate scrolling for touchpads and mouse wheels.
      (syms_of_nsterm): Add variables 'ns-use-system-mwheel-acceleration',
      'ns-touchpad-scroll-line-height' and 'ns-touchpad-use-momentum'.
      * src/keyboard.c (make_lispy_event): Pass on .arg when relevant.
      * src/termhooks.h (event_kind): Update comments re. WHEEL_EVENT.
      * lisp/mwheel.el (mwheel-scroll): Use line count.
      * lisp/subr.el (event-line-count): New function.
    • Eli Zaretskii's avatar
      Fix MinGW64 build broken by recent MinGW64 import libraries · 7b3d1c6b
      Eli Zaretskii authored
      * configure.ac (W32_LIBS): Put -lusp10 before -lgdi32, as latest
      MinGW64 import libraries require that.  (Bug#28493)
      * src/Makefile.in: Adjust commentary to the new order of w32
    • Eli Zaretskii's avatar
      Fix crashes in 'move-point-visually' in minibuffer windows · c83d0c5f
      Eli Zaretskii authored
      * src/xdisp.c (Fmove_point_visually): Fix off-by-one error in
      comparing against the last valid glyph_row of a window glyph
      matrix.  (Bug#28505)
    • Eli Zaretskii's avatar
  11. 18 Sep, 2017 2 commits
    • Paul Eggert's avatar
      Avoid crash with C-g C-g in GC · 059184e6
      Paul Eggert authored
      Problem reported by Richard Stallman (Bug#17406).
      Based on fix suggested by Eli Zaretskii (Bug#28279#16).
      * src/term.c (tty_send_additional_strings):
      Use only safe accessors, to avoid crash when C-g C-g in GC.
    • Paul Eggert's avatar
      Fix format-time-string %Z bug with negative tz · 541006c5
      Paul Eggert authored
      * src/editfns.c (tzlookup): Fix sign error in %Z when a purely
      numeric zone is negative (Bug#28746).
      * test/src/editfns-tests.el (format-time-string-with-zone):
      Add test for this bug.
  12. 17 Sep, 2017 2 commits
  13. 16 Sep, 2017 10 commits
    • Eli Zaretskii's avatar
    • Mark Oteiza's avatar
      Add lisp variable lcms-d65-xyz · 5490ccc5
      Mark Oteiza authored
      This serves as the default optional argument for functions in this
      * src/lcms.c (lcms-d65-xyz): New variable.
      (lcms-cam02-ucs): Use it.  Use better word in docstring.  Fix bug
      color1 -> color2.
      * test/src/lcms-tests.el: Add some tests for lcms-cri-cam02-ucs.
      (lcms-colorspacious-d65): New variable.
    • Andy Moreton's avatar
      Avoid MinGW64 compiler warnings in unexw32.c · 12e864eb
      Andy Moreton authored
      * src/unexw32.c (pDWP) [MINGW_W64]: Define to "16llx" only for the
      64-bit build.
    • Eli Zaretskii's avatar
      Fix order of sorted overlays returned by 'overlays-at' · 2d53f878
      Eli Zaretskii authored
      * src/buffer.c (Foverlays_at): If SORTED is non-nil, reverse the
      list of results, to have their order as per the documentation.
      * etc/NEWS: Mention the change in the behavior of overlays-at.
    • Eli Zaretskii's avatar
      Disable execution of unsafe Lisp by Enriched Text mode · a103dbe3
      Eli Zaretskii authored
      * src/xdisp.c (handle_display_spec): If the display property is
      wrapped in 'disable-eval' form, disable Lisp evaluation while
      processing this property.
      (handle_single_display_spec): Accept new argument ENABLE_EVAL_P.
      If that argument is false, don't evaluate Lisp while processing
      display properties.
      * lisp/textmodes/enriched.el
      (enriched-allow-eval-in-display-props): New defcustom.
      (enriched-decode-display-prop): If
      enriched-allow-eval-in-display-props is nil, wrap the display
      property with 'disable-eval' to disable Lisp evaluation when the
      display property is processed for display.  (Bug#28350)
      * lisp/gnus/mm-view.el (mm-inline-text): Re-enable processing of
      enriched text.
      * doc/lispref/display.texi (Display Property): Document the
      'disable-eval' wrapping of 'display' properties.
      * doc/emacs/text.texi (Enriched Properties): Document
      * etc/NEWS: Describe the security issues with Enriched Text mode
      and their solution.
    • Eli Zaretskii's avatar
      Avoid MinGW64 compilation warning in w32.c · 6d6dc246
      Eli Zaretskii authored
      * src/w32.c (sys_strerror): Provide a prototype for MinGW64.
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix MS-Windows build broken by recent changes in lcms.c · 1170c2f3
      Eli Zaretskii authored
      * src/lcms.c [WINDOWSNT]: Define types for cmsWhitePointFromTemp
      and cmsxyY2XYZ function pointers.
      (init_lcms_functions) [WINDOWSNT]: Load cmsWhitePointFromTemp and
      cmsxyY2XYZ from liblcms2.
      (cmsWhitePointFromTemp, cmsxyY2XYZ) [WINDOWSNT]: Redirect to the
      corresponding function pointers.
      (Flcms_temp_to_white_point): Minor stylistic changes.  Doc fix.
      (syms_of_lcms2): Defsubr Slcms_temp_to_white_point.
    • Eli Zaretskii's avatar
      Avoid GCC 7 compilation warning in data.c · cb27a134
      Eli Zaretskii authored
      * src/data.c (minmax_driver): Use UNINIT to avoid compilation
      warnings.  Reported by Fabrice Popineau
    • Mark Oteiza's avatar
      Add lcms-temp->white-point and initial tests · f5f261c6
      Mark Oteiza authored
      * src/lcms.c (lcms-temp->white-point): New function.
      * test/src/lcms-tests.el: New file.
  14. 15 Sep, 2017 6 commits
    • Eli Zaretskii's avatar
      One more attempt to avoid GCC 7 warnings in dispnew.c · 541b596b
      Eli Zaretskii authored
      * src/dispnew.c (adjust_glyph_matrix): Use eassume instead of
      eassert, to avoid compilation warnings about NULL pointer
    • Mark Oteiza's avatar
      Fix color-distance docstring · 6e38b925
      Mark Oteiza authored
      Also feed the translated color to the metric argument.
      * src/xfaces.c (color-distance): Reword docstring to be more helpful.
      Avoid duplicating effort in lcms2 by passing the translated 16 bit RGB
      instead of the function's color arguments.
    • Eli Zaretskii's avatar
      Avoid crashes due to invalid error forms from sentinels/filters · 817e92b2
      Eli Zaretskii authored
      * src/process.c (exec_sentinel_error_handler): Make sure the error
      form passed to cmd_error_internal is a cons cell.  (Bug#28430)
    • Eli Zaretskii's avatar
      Avoid compilation warnings with GCC 7 on MS-Windows · 015172d1
      Eli Zaretskii authored
      * src/w32term.c (w32_setup_relief_color, construct_mouse_click)
      (w32_read_socket): Initialize variables to shut up bogus
      compilation warnings from GCC 7.
      * src/unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Cast to DWORD_PTR
      to avoid compiler warnings about printing signed values using %x
      format spec.
      * src/dispnew.c (adjust_glyph_matrix): Add eassert to avoid
      compiler warning about possible NULL pointer dereference.
      * src/lisp.h (pI): Tweak the definition some more for MinGW64.
    • Martin Rudalics's avatar
      Define gnutls_rnd for WINDOWSNT and HAVE_GNUTLS3 case only · 025e2165
      Martin Rudalics authored
      * src/fns.c (gnutls_rnd): Define for WINDOWSNT and HAVE_GNUTLS3
      case only to avoid unused macros warning otherwise.
    • Martin Rudalics's avatar
      In w32heap.c bump up DUMPED_HEAP_SIZE · 0ce6b431
      Martin Rudalics authored
      * src/w32heap.c (DUMPED_HEAP_SIZE): Bump up DUMPED_HEAP_SIZE
      to 13*1024*1024 for 32-bit non-wide-integer builds.
  15. 14 Sep, 2017 2 commits