1. 17 Jul, 2017 10 commits
    • Lars Ingebrigtsen's avatar
      Remove usage of the GDK_SCALE variable · 36cf0791
      Lars Ingebrigtsen authored
      * src/gtkutil.c (xg_get_gdk_scale): Remove.
      (xg_get_default_scrollbar_height)
      (xg_get_default_scrollbar_width): Pass in a frame to check for
      scaling.
      (xg_frame_set_char_size): Use the API for querying scale
      instead of looking at the GDK_SCALE variable.
      (xg_get_default_scrollbar_width): Ditto.
      (xg_get_default_scrollbar_height): Ditto.
      (xg_update_scrollbar_pos): Ditto.
      
      * src/xfns.c (x_set_scroll_bar_default_height): Pass in the
      frame to get the width.
      36cf0791
    • Lars Ingebrigtsen's avatar
      Get positions of menus and tooltips right on HiDPI · 4198b4d9
      Lars Ingebrigtsen authored
      * src/gtkutil.c (xg_get_scale): New function.
      (xg_show_tooltip): Use it.
      
      * src/xmenu.c (create_and_show_popup_menu): Put menus in the
      right place.
      4198b4d9
    • Eli Zaretskii's avatar
    • 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
      bidi-paragraph-separate-re.
      (init_buffer_once): Init the values of bidi-paragraph-start-re and
      bidi-paragraph-separate-re.
      (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
      bidi-paragraph-separate-re.
      d7f7fef1
    • 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.
      76e1f7d0
    • 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)'.
      4968aa68
    • 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.
      b2150e0b
    • 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.
      b7072318
    • Paul Eggert's avatar
      * src/gnutls.c: Restore some comments. · 8250a20f
      Paul Eggert authored
      8250a20f
  2. 16 Jul, 2017 8 commits
  3. 15 Jul, 2017 12 commits
  4. 14 Jul, 2017 10 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