1. 17 Jul, 2017 7 commits
    • Eli Zaretskii's avatar
      Allow user control on what starts and ends a paragraph for bidi · d7f7fef1
      Eli Zaretskii authored
      * src/buffer.h (struct buffer): New members
      bidi_paragraph_separate_re_ and bidi_paragraph_start_re_.
      * src/buffer.c (bset_bidi_paragraph_start_re)
      (bset_bidi_paragraph_separate_re): New setters/
      (Fbuffer_swap_text): Swap the values of bidi-paragraph-start-re and
      (init_buffer_once): Init the values of bidi-paragraph-start-re and
      (syms_of_buffer) <bidi-paragraph-start-re, bidi-paragraph-separate-re>:
      New per-buffer variables.
      * src/bidi.c (bidi_at_paragraph_end, bidi_find_paragraph_start):
      Support bidi-paragraph-start-re and bidi-paragraph-separate-re.
      (bidi_move_to_visually_next): Handle correctly the case when the
      separator matches an empty string.  (Bug#27526)
      * doc/emacs/mule.texi (Bidirectional Editing):
      * doc/lispref/display.texi (Bidirectional Display): Document
      bidi-paragraph-start-re and bidi-paragraph-separate-re.
      * etc/NEWS: Mention bidi-paragraph-start-re and
    • Tino Calancha's avatar
    • Tino Calancha's avatar
      alist-get: Add optional arg TESTFN · 76e1f7d0
      Tino Calancha authored
      If TESTFN is non-nil, then it is the predicate to lookup
      the alist.  Otherwise, use 'eq' (Bug#27584).
      * lisp/subr.el (alist-get): Add optional arg FULL.
      * lisp/emacs-lisp/map.el (map-elt, map-put): Add optional arg TESTFN.
      * lisp/emacs-lisp/gv.el (alist-get): Update expander.
      * doc/lispref/lists.texi (Association Lists): Update manual.
      * etc/NEWS: Announce the changes.
      * test/lisp/emacs-lisp/map-tests.el (test-map-put-testfn-alist)
      (test-map-elt-testfn): New tests.
    • Michael Albinus's avatar
      Fix `tramp-test39-unload' · 4968aa68
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case-p)
      (tramp--test-instrument-test-case): Rename.  Adapt all callees.
      (tramp-test36-asynchronous-requests): Bind `timer-max-repeats'.
      (tramp-test39-unload): Expect it to pass.  Ignore buffer-local
      variables and autoload functions; they are not removed.  Check
      also for `-function(s)'.
    • Stephen Berman's avatar
      Preserve point under 'dired-auto-revert-buffer' (second case) · b2150e0b
      Stephen Berman authored
      * lisp/dired.el (dired): Use pop-to-buffer-same-window instead
      of switch-to-buffer.  This preserves Dired window point when
      dired-auto-revert-buffer is non-nil.  (Bug#27243)
      * test/lisp/dired-tests.el (dired-test-bug27243): New test.
    • Martin Rudalics's avatar
      Have Fgnutls_available_p return Qnil when GNUTLS is undefined · b7072318
      Martin Rudalics authored
      * src/gnutls.c (Fgnutls_available_p): Return Qnil when GNUTLS is
      undefined to allow --with-gnutls=no builds to proceed.
    • Paul Eggert's avatar
      * src/gnutls.c: Restore some comments. · 8250a20f
      Paul Eggert authored
  2. 16 Jul, 2017 8 commits
  3. 15 Jul, 2017 12 commits
  4. 14 Jul, 2017 13 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.
    • 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
      (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.
    • 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
      * 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.
    • Glenn Morris's avatar
      ; Standardize license notices in new files · 548941bb
      Glenn Morris authored
    • 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.
    • 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
          * configure.ac: Add macros HAVE_GNUTLS3_DIGEST,
          * 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.
    • 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.
    • 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).
    • 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).
    • 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 *.
    • 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).
    • 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.