1. 01 Jun, 2017 18 commits
    • Paul Eggert's avatar
      Improve performance by avoiding strtoumax · 178d0cb5
      Paul Eggert authored
      This made (string-to-number "10") 20% faster on my old desktop,
      an AMD Phenom II X4 910e running Fedora 25 x86-64.
      * admin/merge-gnulib (GNULIB_MODULES): Remove strtoumax.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, m4/strtoull.m4:
      * m4/strtoumax.m4: Remove.
      * src/editfns.c (str2num): New function.
      (styled_format): Use it instead of strtoumax.  Use ptrdiff_t
      instead of uintmax_t.  Check for integer overflow.
      * src/lread.c (LEAD_INT, DOT_CHAR, TRAIL_INT, E_EXP):
      Move to private scope and make them enums.
      (string_to_number): Compute integer value directly during
      first pass instead of revisiting it with strtoumax later.
      178d0cb5
    • Paul Eggert's avatar
      Minor improvements to format field numbers · 53247108
      Paul Eggert authored
      * src/editfns.c (styled_format): Allow field numbers in a %% spec.
      No need for a special diagnostic for field numbers greater than
      PTRDIFF_MAX.  Reword diagnostic for field 0.
      * test/src/editfns-tests.el (format-with-field): Adjust to match.
      53247108
    • Philipp Stephani's avatar
      Implement field numbers in format strings · 0dd1bbb0
      Philipp Stephani authored
      A field number explicitly specifies the argument to be formatted.
      This is especially important for potential localization work, since
      grammars of various languages dictate different word orders.
      
      * src/editfns.c (Fformat): Update documentation.
      (styled_format): Implement field numbers.
      
      * doc/lispref/strings.texi (Formatting Strings): Document field numbers.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-format-warn): Adapt.
      
      * test/src/editfns-tests.el (format-with-field): New unit test.
      0dd1bbb0
    • Alexander Gramiak's avatar
      Limit scope of local overriding-terminal-local-map · 404273ae
      Alexander Gramiak authored
      The function `binding' may call isearch-done, which globally sets
      overriding-terminal-local-map to nil (Bug#23007).
      * lisp/isearch.el (isearch-mouse-2): Don't bind
      overriding-terminal-local-map around the call to `binding'.
      404273ae
    • Stephen Berman's avatar
      Correct and isolate the todo-mode test environment · 8c0f845b
      Stephen Berman authored
      This avoids having to set todo-mode variables globally in the test
      file and prevents any exisiting user todo-mode files from influencing
      the tests.
      
      * test/lisp/calendar/todo-mode-tests.el:
      (with-todo-test): New macro.
      (todo-test-todo-quit01, todo-test-todo-quit02)
      (todo-test-item-highlighting): Use it.
      8c0f845b
    • Alan Third's avatar
      Fix build errors on macOS 10.6 (bug#27059) · 6cd37408
      Alan Third authored
      * src/nsfns.m (compute_tip_xy): Don't use CGRectContainsPoint.
      6cd37408
    • Eli Zaretskii's avatar
      Improve testing of octal and hex display of raw bytes · 5dc0129c
      Eli Zaretskii authored
      * test/manual/redisplay-testsuite.el (test-redisplay-5-toggle)
      (test-redisplay-5): Add a test with a large codepoint.
      5dc0129c
    • Vasilij Schneidermann's avatar
      Add customizable to display raw bytes as hex · cb9aa351
      Vasilij Schneidermann authored
      * src/xdisp.c (get_next_display_element): Dispatch used format string
      for unprintables based on new display-raw-bytes-as-hex variable.
      (display-raw-bytes-as-hex): New variable.  (Bug#27122)
      
      * lisp/cus-start.el: Add defcustom form for display-raw-bytes-as-hex.
      
      * doc/emacs/display.texi: Document the new variable.
      * etc/NEWS: Mention display-raw-bytes-as-hex.
      
      * test/manual/redisplay-testsuite.el (test-redisplay-5-toggle)
      (test-redisplay-5): New tests.
      (test-redisplay): Call test-redisplay-5.
      cb9aa351
    • Eli Zaretskii's avatar
      Revert "Add customizable to display raw bytes as hex" · e5de7999
      Eli Zaretskii authored
      This reverts commit 7c9ac111.
      e5de7999
    • Eli Zaretskii's avatar
      Add customizable to display raw bytes as hex · 7c9ac111
      Eli Zaretskii authored
      * src/xdisp.c (get_next_display_element): Dispatch used format string
      for unprintables based on new display-raw-bytes-as-hex variable.
      (display-raw-bytes-as-hex): New variable.  (Bug#27122)
      
      * lisp/cus-start.el: Add defcustom form for display-raw-bytes-as-hex.
      
      * doc/emacs/display.texi: Document the new variable.
      * etc/NEWS: Mention display-raw-bytes-as-hex.
      
      * test/manual/redisplay-testsuite.el (test-redisplay-5-toggle)
      (test-redisplay-5): New tests.
      (test-redisplay): Call test-redisplay-5.
      7c9ac111
    • Eli Zaretskii's avatar
      Fix linum under text-scaling when leuven-theme is used · e922e3c7
      Eli Zaretskii authored
      * etc/themes/leuven-theme.el (linum): Make the 'linum' face
      inherit from 'default' and 'shadow', so that margins are enlarged
      as expected under text-scaling.
      e922e3c7
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 9bc4c90d
      Glenn Morris authored
      9bc4c90d
    • Paul Eggert's avatar
      Free cwd when no longer needed · 877e8084
      Paul Eggert authored
      * lib-src/emacsclient.c (main): Don’t dally when freeing cwd.
      877e8084
    • Anders Waldenborg's avatar
      Fix memory leak of cwd string in emacsclient (Bug#26628) · c221f146
      Anders Waldenborg authored
      * lib-src/emacsclient.c (main): emacsclient retrieves the current
      working directory using get_current_dir_name which returns a newly
      allocated string.  Make sure this string is freed before exiting.
      
      Copyright-paperwork-exempt: yes
      c221f146
    • Noam Postavsky's avatar
      ; CONTRIBUTE: Better example for multi-entry example ChangeLog · 28445aee
      Noam Postavsky authored
      The new example has entries spanning multiple functions in a single
      file as well as multiple files.
      28445aee
    • Glenn Morris's avatar
      Quieten compilation of some test files · afcbec61
      Glenn Morris authored
      * test/lisp/dired-tests.el (dired-test-bug25609): Mark unused args.
      * test/src/data-tests.el (binding-test-set-constant-t)
      (binding-test-set-constant-nil, binding-test-set-constant-keyword)
      (binding-test-set-constant-nil): Silence compiler.
      * test/src/regex-tests.el (regex-tests-BOOST): Escape char literal.
      afcbec61
    • Glenn Morris's avatar
      Use true names for invocation- and source-directory · 6aacd4fb
      Glenn Morris authored
      * src/emacs.c (init_cmdargs) <Vinvocation_directory>:
      * src/lread.c (init_lread) <Vsource_directory>: Use true names.
      6aacd4fb
    • Glenn Morris's avatar
      Avoid elisp-mode test failures when source dir has multiple names · c4ecc01a
      Glenn Morris authored
      * test/lisp/progmodes/elisp-mode-tests.el (emacs-test-dir):
      Use the true name of the directory.
      c4ecc01a
  2. 31 May, 2017 13 commits
  3. 30 May, 2017 9 commits