1. 15 Jul, 2017 11 commits
  2. 14 Jul, 2017 19 commits
    • Glenn Morris's avatar
      Fix recent theme changes · 89c5d592
      Glenn Morris authored
      * etc/themes/manoj-dark-theme.el, etc/themes/tsdh-dark-theme.el:
      Fix typos in recent changes.
      89c5d592
    • Paul Eggert's avatar
      GnuTLS integer-overflow and style fixes · 05b8b866
      Paul Eggert authored
      This tweaks the recently-added GnuTLS improvements so that
      they avoid some integer-overflow problems and follow typical
      Emacs style a bit better.
      * configure.ac (HAVE_GNUTLS3_HMAC, HAVE_GNUTLS3_AEAD)
      (HAVE_GNUTLS3_CIPHER): Use AC_CACHE_CHECK so that the
      configure-time results are displayed.
      * src/fns.c (extract_data_from_object): Return char *, not char
      const *, since one gnutls caller wants a non-const pointer.  Use
      CONSP rather than !NILP when testing for conses.  Use CAR_SAFE
      instead of rolling our own code.  Prefer signed types to unsigned
      when either will do.  Report problems for lengths out of range,
      instead of silently mishandling them.
      * src/gnutls.c (emacs_gnutls_strerror): New function, to simplify
      callers.  All callers of gnutls_sterror changed.
      (Fgnutls_boot): Check for integers out of range rather than
      silently truncating them.
      (gnutls_symmetric_aead): Check for integer overflow in size
      calculations.
      (gnutls_symmetric_aead, Fgnutls_macs, Fgnutls_digests):
      Prefer signed to unsigned integers where either	will do.
      (gnutls_symmetric_aead, gnutls_symmetric):
      Work even if ptrdiff_t is wider than ‘long’.
      (gnutls_symmetric, Fgnutls_hash_mac, Fgnutls_hash_digest):
      Check for integer overflow in algorithm selection.
      05b8b866
    • Noam Postavsky's avatar
    • Eli Zaretskii's avatar
      Fix the MS-Windows build due to added GnuTLS functions · 389fb2ae
      Eli Zaretskii authored
      * src/gnutls.c [WINDOWSNT]: Add DEF_DLL_FN for new functions.
      (init_gnutls_functions) [WINDOWSNT]: Add LOAD_DLL_FN for new
      functions.  Add #define redirections for new functions.
      (gnutls_symmetric_aead): Fix format specs to be more portable when
      printing ptrdiff_t arguments.
      * src/fns.c (gnutls_rnd) [WINDOWSNT]: Redirect to w32_gnutls_rnd
      wrapper.
      * src/gnutls.h [WINDOWSNT]: Add prototype for w32_gnutls_rnd.
      
      * test/lisp/net/gnutls-tests.el (gnutls-tests-tested-macs)
      (gnutls-tests-tested-digests, gnutls-tests-tested-ciphers): Call
      gnutls-available-p, otherwise GnuTLS functions might not be loaded
      from the DLL on MS-Windows.
      389fb2ae
    • Glenn Morris's avatar
      ; Standardize license notices in new files · 548941bb
      Glenn Morris authored
      548941bb
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el: Fix bug#14860. · 6e2d6d54
      Stefan Monnier authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile--function-signature): New fun.
      Dig into advice wrappers to find the "real" signature.
      (byte-compile-callargs-warn, byte-compile-arglist-warn): Use it.
      (byte-compile-arglist-signature): Don't bother with "new-style" arglists,
      since bytecode functions are now handled in byte-compile--function-signature.
      
      * lisp/files.el (create-file-buffer, insert-directory):
      Remove workaround introduced for (bug#14860).
      
      * lisp/help-fns.el (help-fns--analyse-function): `nadvice` is preloaded.
      
      * lisp/help.el (help-function-arglist):
      Dig into advice wrappers to find the "real" signature.
      6e2d6d54
    • Ted Zlatanov's avatar
      GnuTLS HMAC and symmetric cipher support · 583995c6
      Ted Zlatanov authored
          * etc/NEWS: Add news for new feature.
      
          * doc/lispref/text.texi (GnuTLS Cryptography): Add
          documentation.
      
          * configure.ac: Add macros HAVE_GNUTLS3_DIGEST,
          HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_AEAD, HAVE_GNUTLS3_HMAC.
      
          * src/fns.c (Fsecure_hash_algorithms): Add function to list
          supported `secure-hash' algorithms.
          (extract_data_from_object): Add data extraction function that
          can operate on buffers and strings.
          (secure_hash): Use it.
          (Fsecure_hash): Mention `secure-hash-algorithms'.
      
          * src/gnutls.h: Include gnutls/crypto.h.
      
          * src/gnutls.c (Fgnutls_ciphers, gnutls_symmetric_aead)
          (gnutls_symmetric, Fgnutls_symmetric_encrypt, Fgnutls_symmetric_decrypt)
          (Fgnutls_macs, Fgnutls_digests, Fgnutls_hash_mac, Fgnutls_hash_digest)
          (Fgnutls_available_p): Implement GnuTLS cryptographic integration.
      
          * test/lisp/net/gnutls-tests.el: Add tests.
      583995c6
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-lib.el (cl--random-time): Remove as well · 0f3cc0b8
      Stefan Monnier authored
      It's also defined in cl-extra.el.
      0f3cc0b8
    • Paul Eggert's avatar
      Do not convert ij and IJ to compatibility chars · 1e09f8d3
      Paul Eggert authored
      * lisp/leim/quail/latin-alt.el: Omit lines for ij and IJ in Dutch.
      Problem reported by James Cloos (Bug#518#10).
      1e09f8d3
    • Toon Claes's avatar
      Remove Turkish ligatures from Dutch input method · 3bdf5b21
      Toon Claes authored
      * lisp/leim/quail/latin-alt.el: Remove Turkish ligatures (Bug#518).
      3bdf5b21
    • Paul Eggert's avatar
      Improve stack-overflow heuristic on GNU/Linux · 9dee1c88
      Paul Eggert authored
      Problem reported by Steve Kemp (Bug#27585).
      * src/eval.c (near_C_stack_top): Remove.  All uses replaced
      by current_thread->stack_top.
      (record_in_backtrace): Set current_thread->stack_top.
      This is for when the Lisp interpreter calls itself.
      * src/lread.c (read1): Set current_thread->stack_top.
      This is for recursive s-expression reads.
      * src/print.c (print_object): Set current_thread->stack_top.
      This is for recursive s-expression printing.
      * src/thread.c (mark_one_thread): Get stack top first.
      * src/thread.h (struct thread_state.stack_top): Now void *, not char *.
      9dee1c88
    • Paul Eggert's avatar
      Remove duplicate cl--random-state definition · 6443a95a
      Paul Eggert authored
      * lisp/emacs-lisp/cl-lib.el (cl--random-state): Remove.
      This variable is now defined in cl-extra.el (Bug#27617).
      6443a95a
    • Michael Albinus's avatar
      Adjust timer in tramp-test36-asynchronous-requests · 05c7c827
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test36-asynchronous-requests):
      Adjust timer if it takes too much time.
      05c7c827
    • Eli Zaretskii's avatar
      Always display rmail progress report under user control · 4d3657af
      Eli Zaretskii authored
      * lisp/mail/rmail.el (rmail-show-message-1): Delete the second
      copy of '(message "Showing message %d..." msg)'.  (Bug#27535)
      4d3657af
    • Eli Zaretskii's avatar
      Avoid byte-compilation warnings for advised functions · 60d24e16
      Eli Zaretskii authored
      * lisp/files.el (insert-directory, create-file-buffer): Add an
      advertised-calling-convention form to shut up byte-compilation
      warnings.  (Bug#14860)
      60d24e16
    • Eli Zaretskii's avatar
      Add assertion related to display-line-numbers · 037d8bdf
      Eli Zaretskii authored
      * src/xdisp.c (maybe_produce_line_number): Add assertion for the
      condition regarding IT->glyph_row->used[TEXT_AREA] expected by the
      code.  (Bug#27668)
      037d8bdf
    • Eli Zaretskii's avatar
      Prevent display corruption when display-line-numbers is set · 6fa3176c
      Eli Zaretskii authored
      * src/xdisp.c (try_window_reusing_current_matrix): If giving up
      due to display-line-numbers, clear the window's desired glyph
      matrix before returning, as the following call to try_window will
      call display_line, which expects rows of the desired matrix
      cleared.  (Bug#27668)
      6fa3176c
    • Eli Zaretskii's avatar
      Revert "Use fixed-pitch font for display-line-numbers" · 5c9b6e90
      Eli Zaretskii authored
      This reverts commit d014a5e1.
      * lisp/faces.el (line-number): Don't use a fixed-pitch font, by
      popular demand.  For relevant discussions, see
      
       http://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00433.html
       http://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00445.html
      5c9b6e90
    • Paul Eggert's avatar
      Merge from gnulib · 3128d5d1
      Paul Eggert authored
      This incorporates:
      2017-07-13 Improve cross-compilation guesses for native Windows
      2017-07-11 More systematic m4 quoting and indentation
      2017-07-10 Make sure $host and $host_os are defined when used
      2017-07-03 stdioext: Port to OpenVMS
      2017-06-24 xalloc-oversized: port to icc
      * doc/misc/texinfo.tex, lib/fpending.c, lib/stdio-impl.h:
      * lib/xalloc-oversized.h, m4/dirfd.m4, m4/gettimeofday.m4:
      * m4/lstat.m4, m4/mktime.m4, m4/pselect.m4, m4/putenv.m4:
      * m4/stdint.m4, m4/strtoimax.m4, m4/utimes.m4:
      Copy from Gnulib.
      3128d5d1
  3. 13 Jul, 2017 4 commits
    • Vincent Belaïche's avatar
    • Alan Mackenzie's avatar
      C++ Mode. Fix anomaly occurring when a ">" is deleted then reinserted. · 7eef16a9
      Alan Mackenzie authored
      This fontification anomaly happened because after deleting the ">",
      c-forward-<>-arglist parses the preceding identifier as a putative type but
      stores it in c-found-types before it becomes clear it is not an unambiguous
      type.  c-forward-<>-arglist fails, leaving the spurious type id in
      c-found-types.  Fix this by "binding" c-found-types "to itself" in
      c-forward-<>-arglist, and restoring the original value when that function call
      fails.
      
      * lisp/progmodes/cc-engine.el (c-copy-found-types): New function.
      (c-forward-<>-arglist): Record the original value of c-found-types at the
      beginning of the function, and restore it at the end on failure.
      
      * lisp/progmodes/cc-mode.el (c-unfind-coalesced-tokens): Rewrite more
      accurately.
      7eef16a9
    • Vincent Belaïche's avatar
      Add tests for SES, and fix one more cell renaming bug. · b048351a
      Vincent Belaïche authored
      * lisp/ses.el (ses-relocate-all): In case of insertion, do not
      relocate value for named cells as they keep the same symbol.
      (ses-rename-cell): Set new cell name symbol to cell value --- do not
      rely on recalculating.  Push cells with updated data --- cell name,
      cell reference list, or cell formula --- to deferred write list.
      
      * test/lisp/ses-tests.el: New file, with 7 tests for SES.
      b048351a
    • Michael Albinus's avatar
      ; Improve tramp-tests traces · 1f08279e
      Michael Albinus authored
      1f08279e
  4. 12 Jul, 2017 6 commits