1. 04 Jun, 2017 7 commits
    • Philipp Stephani's avatar
      Rework printing of module functions · 3b0080de
      Philipp Stephani authored
      Fix a FIXME in emacs-module.c.  Put the printing into print.c, like
      other types.
      
      * src/print.c (print_vectorlike): Add code to print module functions.
      
      * src/emacs-module.c (funcall_module): Stop calling
      'module_format_fun_env'.  Now that module functions are first-class
      objects, they can be added to signal data directly.
      (module_handle_signal): Remove now-unused function
      'module_format_fun_env'.
      
      * test/src/emacs-module-tests.el (mod-test-sum-test): Adapt unit test.
      
      * src/eval.c (funcall_lambda): Adapt call to changed signature of
      'funcall_module'.
      3b0080de
    • Philipp Stephani's avatar
      Define helper macro to reduce code duplication · 18396997
      Philipp Stephani authored
      * src/emacs-module.c (MODULE_FUNCTION_BEGIN_NO_CATCH): New helper
      macro.
      (MODULE_FUNCTION_BEGIN, module_type_of, module_is_not_nil, module_eq):
      Use it.
      18396997
    • Philipp Stephani's avatar
      Remove two FIXMEs that can't be fixed · db743842
      Philipp Stephani authored
      db743842
    • Eli Zaretskii's avatar
      Avoid slow startup in daemon mode when global-linum-mode is on · bd3c6eec
      Eli Zaretskii authored
      * lisp/linum.el (linum-on): Don't turn on linum-mode in a
      non-client frame of a daemon session.  (Bug#27210)
      bd3c6eec
    • Paul Eggert's avatar
      Fix eldoc bug with curved quote · 7dd9e7e9
      Paul Eggert authored
      * lisp/progmodes/elisp-mode.el (elisp-get-fnsym-args-string):
      Substitute quotes in documentation before returning it (Bug#27159).
      7dd9e7e9
    • Paul Eggert's avatar
      Tune ‘format’ after recent fix · d5fcf9e4
      Paul Eggert authored
      * doc/lispref/strings.texi (Formatting Strings):
      * src/editfns.c (Fformat): Format field numbers no longer need
      to be unique, reverting the previous doc change since that has
      now been fixed.  Also, document that %% should not have modifiers.
      * src/editfns.c (styled_format): Improve performance.  Remove
      the need for the new prepass over the format string, by using
      a typically-more-generous bound for the info array size.
      Initialize the info array lazily.  Move string inspection to
      the same area to help caching.  Avoid the need for a
      converted_to_string bitfield by using EQ.  Cache arg in a
      local and avoid some potential aliasing issues to help the
      compiler.  Info array is now 0-origin, not 1-origin.
      d5fcf9e4
    • Nikolay Kudryavtsev's avatar
      Improve of file-local-name use in vc-git-checkin · 6ad42aec
      Nikolay Kudryavtsev authored
      * lisp/vc/vc-git.el (vc-git-checkin): Use file-local-name only
      when calling git commit.
      6ad42aec
  2. 03 Jun, 2017 8 commits
    • Simen Heggestøyl's avatar
      Support a new CSS indentation style · d2d6e445
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-smie-rules): Indent after property
      immediately followed by a newline.
      
      * test/manual/indent/css-mode.css: Add test for the change above.
      
      * test/manual/indent/scss-mode.scss: Ditto.
      d2d6e445
    • Philipp Stephani's avatar
      ; Fix off-by-one error · e3b7eead
      Philipp Stephani authored
      e3b7eead
    • Philipp Stephani's avatar
      Fix a bug when using format field numbers · 7d413cb4
      Philipp Stephani authored
      Previously styled_format overwrite the argument vector.  This is no
      longer possible because there might be more than one specification per
      argument.  Use the existing auxiliary info array instead.
      
      * src/editfns.c (styled_format): Record arguments in the info
      structure instead of overwriting them.
      * test/src/editfns-tests.el (format-with-field): Add unit test.
      7d413cb4
    • Paul Eggert's avatar
      Document uniqueness limitation of ‘format’ · 0147cdd4
      Paul Eggert authored
      * doc/lispref/strings.texi (Formatting Strings):
      * src/editfns.c (Fformat):
      Document that field numbers should be unique within a format.
      0147cdd4
    • Glenn Morris's avatar
      Small rmailmm fix (bug#27203) · 73635edb
      Glenn Morris authored
      * lisp/mail/rmailmm.el (rmail-mime-insert-bulk):
      Fall back to HOME if no match in rmail-mime-attachment-dirs-alist.
      73635edb
    • Glenn Morris's avatar
      606bfcf0
    • Glenn Morris's avatar
      Add watch for password back to inferior python comint filter · 182912c7
      Glenn Morris authored
      It was removed along with other items for speed (bug#16875),
      but doesn't seem to have been causing an issue, and it's useful to
      have it there (bug#27154).
      * lisp/progmodes/python.el (inferior-python-mode):
      Add comint-watch-for-password-prompt to comint-output-filter-functions.
      182912c7
    • Ryan's avatar
      Use completing-read-default in tmm-prompt · b406174d
      Ryan authored
      tmm uses completing-read, but customizes its behavior so much
      that any alternative completing-read-function will almost
      certainly break it.  For example, both ido-ubiquitous and ivy have
      special code to deactivate themselves for tmm.
      * lisp/tmm.el (tmm-prompt): Use completing-read-default instead of
      completing-read.  (Bug#27193)
      
      Copyright-paperwork-exempt: yes
      b406174d
  3. 02 Jun, 2017 7 commits
  4. 01 Jun, 2017 18 commits
    • Paul Eggert's avatar
      Limit format fields to more POSIX-like spec · 8de2581a
      Paul Eggert authored
      * doc/lispref/strings.texi (Formatting Strings):
      Don’t allow mixing numbered with unnumbered format specs.
      * src/editfns.c (styled_format): Don’t bother checking for field 0,
      since it doesn’t crash and the behavior is not specified.
      * test/src/editfns-tests.el (format-with-field): Adjust tests to
      match current doc.  Add more tests for out-of-range fields.
      8de2581a
    • 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