1. 01 Mar, 2017 7 commits
    • Glenn Morris's avatar
      Small recover-this-file improvement · 82443572
      Glenn Morris authored
      * lisp/files.el (recover-this-file): Explicit error if not
      visiting a file.  (Bug#23671)
    • Glenn Morris's avatar
      Fix for coding-system completion (bug#23670) · 79abec2f
      Glenn Morris authored
      * lisp/international/mule.el (read-buffer-file-coding-system):
      Ensure that completion-pcm--delim-wild-regex is enclosed in parens,
      so that completion-pcm--pattern->regex can append "*?".
    • Paul Eggert's avatar
      Fix rounding error in ‘ceiling’ etc. · 207ee94b
      Paul Eggert authored
      Without this fix, (ceiling most-negative-fixnum -1.0) returns
      most-negative-fixnum instead of correctly signaling range-error,
      and similarly for floor, round, and truncate.
      * configure.ac (trunc): Add a check, since Gnulib’s doc says
      ‘trunc’ is missing from MSVC 9.  The Gnulib doc says ‘trunc’ is
      also missing from some other older operating systems like Solaris
      9 which I know we don’t care about any more, so MSVC is the only
      reason to worry about ‘trunc’ here.
      * src/editfns.c (styled_format): Formatting a float with %c is now an
      error.  The old code did not work in general, because FIXNUM_OVERFLOW_P
      had rounding errors.  Besides, the "if (FLOATP (...))" was in there
      only as a result of my misunderstanding old code that I introduced
      2011.  Although %d etc. is sometimes used on floats that represent
      huge UIDs or PIDs etc. that do not fit in fixnums, this cannot
      happen with characters.
      * src/floatfns.c (rounding_driver): Rework to do the right thing
      when the intermediate result equals 2.305843009213694e+18, i.e.,
      is exactly 1 greater than MOST_POSITIVE_FIXNUM on a 64-bit host.
      Simplify so that only one section of code checks for overflow,
      rather than two.
      (double_identity): Remove.  All uses changed to ...
      (emacs_trunc): ... this new function.  Add replacement for
      platforms that lack ‘trunc’.
      * src/lisp.h (FIXNUM_OVERFLOW_P, make_fixnum_or_float):
      Make it clear that the arg cannot be floating point.
      * test/src/editfns-tests.el (format-c-float): New test.
      * test/src/floatfns-tests.el: New file, to test for this bug.
    • Glenn Morris's avatar
      Small help--loaded-p fix · ebb10505
      Glenn Morris authored
      * lisp/help-fns.el (help--loaded-p): Handle entry in load-history
      with nil file name.  (Bug#25847)
    • Leo Liu's avatar
      * src/fns.c (Fbuffer_hash): Doc fix. · 03f64ebb
      Leo Liu authored
    • Eric Abrahamsen's avatar
      Don't use mapconcat with chars in gnus registry marks (Bug#25839) · 16e304f3
      Eric Abrahamsen authored
      * lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars):
      Instead, use a plain concat, which will create a string out of a list
      of characters.
    • Noam Postavsky's avatar
      Fix epg-tests with dummy-pinentry program (Bug#23619) · b7250496
      Noam Postavsky authored
      * test/data/epg/dummy-pinentry: New file.
      * test/lisp/epg-tests.el (with-epg-tests): Add it to gpg-agent.conf
      when a passphrase is required.  Add debug declaration.  Set
      GPG_AGENT_INFO non-destructively.
  2. 28 Feb, 2017 14 commits
  3. 27 Feb, 2017 8 commits
  4. 26 Feb, 2017 5 commits
    • Paul Eggert's avatar
      Remove a few unused C functions · d83c75ec
      Paul Eggert authored
      * src/eval.c (let_shadows_global_binding_p):
      * src/print.c (write_string):
      * src/systhread.c (sys_mutex_destroy, sys_thread_equal):
      * src/print.c (write_string): Rename from write_string_1.
      All uses changed.
    • Eli Zaretskii's avatar
      Avoid segfault in overlay_arrows_changed_p · d8899b9d
      Eli Zaretskii authored
      * src/xdisp.c (overlay_arrows_changed_p): Fix recent change
      to avoid a segfault.
    • Noam Postavsky's avatar
      Don't call package--ensure-init-file if initialized during startup · 6b6cc56e
      Noam Postavsky authored
      * lisp/emacs-lisp/package.el (package-initialize): Check
      `after-init-time' rather than `load-file-name' to decide if
      `package--ensure-init-file' should be called.  Depending on
      `load-file-name' will fail if the user calls `pacakge-initialize' in
      file which is loaded from the init file (Bug#24643, Bug#25819).
    • Eli Zaretskii's avatar
      Fix display of before- and after-strings at invisible text · 2bb467a2
      Eli Zaretskii authored
      * src/xdisp.c (next_overlay_string): Don't raise the
      ignore_overlay_strings_at_pos_p flag if the iterator is already
      set to continue at a buffer position different from the one
      where the overlay strings we just processed were loaded.  (Bug#25856)
    • Michael Albinus's avatar
      Work on `tramp-completion-mode-p' · 618310c2
      Michael Albinus authored
      * etc/NEWS: Say that `tramp-completion-mode' is obsolete.
      * lisp/net/tramp.el (tramp-completion-mode): Make it obsolete.
      (tramp-completion-mode-p): Reintroduce the check for 'tab.
  5. 25 Feb, 2017 6 commits
    • Tom Tromey's avatar
      Use font-lock-doc-face in js-mode · 8db75f0e
      Tom Tromey authored
      * lisp/progmodes/js.el (js-font-lock-syntactic-face-function): New
      (js-mode): Use it.
      * test/lisp/progmodes/js-tests.el (js-mode-doc-comment-face): New
    • Noam Postavsky's avatar
      Don't use IP for package test server (Bug#22582) · 546d30ed
      Noam Postavsky authored
      * test/lisp/emacs-lisp/package-resources/package-test-server.py: Set
      'server_address' when port number is given on the command line.  Print
      IP and port number as a URL, and flush it after printing.
      * test/lisp/emacs-lisp/package-tests.el:
      (package-test-update-archives-async): Grab the whole URL from server
    • Tom Tromey's avatar
      Add more branch support to vc-dir · 9e9d381f
      Tom Tromey authored
      * lisp/vc/vc-dir.el (vc-dir-mode-map) Add "B" bindings.
      * lisp/vc/vc.el (vc-revision-history): New defvar.
      (vc-read-revision): Use vc-revision-history.
      (vc-print-branch-log): New function.
      * doc/emacs/maintaining.texi (VC Directory Commands): Document new
      * etc/NEWS: Mention new vc-dir bindings.
    • Alan Mackenzie's avatar
      Allow for the :: operator in C++ "enum class" declarations. · 54319e7a
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for
    • Michael Albinus's avatar
      Fix bug#25854 · d79fd6c9
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
      Simplify error handling for huge inodes.
      (tramp-convert-file-attributes): Handle very huge inodes.  (Bug#25854)
    • Eli Zaretskii's avatar
      Avoid leaving garbage on screen when using 'raise' display property · a3c9a554
      Eli Zaretskii authored
      * src/xdisp.c (display_line): Reset voffset value of the iterator
      when it hits ZV, to avoid "inheriting" it to glyph rows past ZV,
      which then leaves stuff on screen that needs to be cleared by
      redisplay.  (Bug#25855)