1. 29 May, 2019 7 commits
    • Paul Eggert's avatar
      Update from Gnulib · 10582d05
      Paul Eggert authored
      This incorporates:
      2019-05-24 flexmember: update comments
      2019-05-18 pthread_sigmask: fix --enable-threads=windows compilation
      2019-05-14 close-stream, closein, closeout: simplify
      2019-05-09 verify: remove verify_true
      2019-05-09 verify: support C2X and C++17 static_assert
      * build-aux/config.guess, build-aux/config.sub:
      * doc/misc/texinfo.tex, lib/flexmember.h, lib/verify.h:
      * m4/flexmember.m4, m4/pthread_sigmask.m4:
      Copy from Gnulib
      * m4/gnulib-comp.m4: Regenerate.
      2019-05-26  Paul Eggert  <eggert@cs.ucla.edu>
      Update author/maintainer info
      This mostly updates email addresses and fixes spellings of
      author and maintainer names.
    • Stefan Monnier's avatar
      * lisp/subr.el (add-hook): Turn `append` into `depth` (bug#35508) · fe0cb43f
      Stefan Monnier authored
      Make it possible to control the relative ordering of functions on hooks by
      specifying `depth` in the same was as was possible with `add-function`.
      * lisp/electric.el (electric--sort-post-self-insertion-hook):
      Delete function.
      (electric-indent-mode, electric-layout-mode, electric-quote-mode):
      * lisp/elec-pair.el (electric-pair-mode): Use new `depth` arg instead of
      * lisp/emacs-lisp/syntax.el (syntax-propertize, syntax-ppss):
      Use new `depth` arg to make sure noone accidentally gets added
      after syntax-ppss-flush-cache.
      * doc/lispref/modes.texi (Setting Hooks): Document new `depth` arg.
      * test/lisp/subr-tests.el (subr-tests-add-hook-depth): New test.
    • Simen Heggestøyl's avatar
      Use lexical-binding in makesum.el and add tests · 49cdbb4a
      Simen Heggestøyl authored
      * lisp/makesum.el: Use lexical-binding.
      (make-command-summary): Replace `if..progn' with `when'.
      (double-column): Add docstring and apply trivial simplifications.
      * test/lisp/makesum-tests.el: New file with tests for makesum.el.
    • Basil L. Contovounesios's avatar
      Simplify gnus-or and gnus-and · 7f3b0d1c
      Basil L. Contovounesios authored
      * lisp/gnus/gnus-art.el: Make implicit seq.el dependency explicit.
      (gnus-treat-predicate): Use seq-some in place of mapcar + gnus-or
      and evaluate lambda predicate.
      * lisp/gnus/gnus-util.el (gnus-or, gnus-and): Simplify.
    • YAMAMOTO Mitsuharu's avatar
      Rework cairo image support to improve consistency (Bug#35871) · c89900eb
      YAMAMOTO Mitsuharu authored
      * src/dispextern.h (Emacs_Pix_Container) [USE_CAIRO]: New struct.  Also used
      as aliases of Emacs_Pixmap and Emacs_Pix_Context.
      (x_kill_gs_process) [USE_CAIRO]: #ifdef out extern.
      (RGB_PIXEL_COLOR) [USE_CAIRO]: Define as unsigned long.
      * src/image.c: Include stdint.h.  On cairo, remove existing image support
      code, use non-X11-specific code for XBM/XPM, and remove POSTSCRIPT support.
      (PUT_PIXEL): New macro.  Use it instead of XPutPixel when not specific to X11.
      (image_create_pix_container, image_pix_container_put_pixel)
      (image_pix_context_get_pixel, image_pix_container_create_from_bitmap_data)
      (cr_create_cr_surface_from_image) [USE_CAIRO]: New functions.
      (image_create_x_image_and_pixmap_1, image_destroy_x_image)
      (image_check_image_size): Extract X11-specific code from here ...
      (x_create_x_image_and_pixmap, x_destroy_x_image)
      (x_check_image_size) [HAVE_X_WINDOWS]: ... to here.
      (x_create_bitmap_mask) [HAVE_X_WINDOWS]: Use them.  Inline specialized version
      of four_corners_best.
      (prepare_image_for_display, image_clear_image_1, image_destroy_x_image)
      (gui_put_x_image, image_put_x_image, image_get_x_image, image_unget_x_image)
      (Create_Pixmap_From_Bitmap_Data, lookup_rgb_color)
      (image_to_emacs_colors) [USE_CAIRO]: Add cairo support.
      (image_background, png_load_body) [USE_CAIRO]: Use image_alloc_image_color for
      (image_sync_to_pixmaps) [USE_CAIRO]: #ifdef out function.
      (Create_Pixmap_From_Bitmap_Data) [HAVE_X_WINDOWS]: Move image_check_image_size
      call from here ...
      (xbm_load_image): ... to here.
      (image_build_heuristic_mask, pbm_load, gif_load) [USE_CAIRO]: Use
      lookup_rgb_color for argument of PUT_PIXEL.
      (image_pixmap_draw_cross) [HAVE_X_WINDOWS || USE_CAIRO]: New function.
      (image_disable_image) [HAVE_X_WINDOWS || USE_CAIRO]: Use it.
      (CrossForeground) [!HAVE_NTGUI && !HAVE_NS]: New macro.
      (image_disable_image) [!HAVE_NTGUI && !HAVE_NS]: Use it.
      * src/xterm.c (handle_one_xevent) <ClientMessage> [USE_CAIRO]: #ifdef out
      x_kill_gs_process call.
      (x_free_pixmap) [USE_CAIRO]: Free Emacs_Pix_Container and data it contains.
    • YAMAMOTO Mitsuharu's avatar
      Improve previous change for tool bar image support on GTK+2 with cairo · 09dce0fd
      YAMAMOTO Mitsuharu authored
      * src/gtkutil.c (xg_get_pixbuf_from_surface) [USE_CAIRO && !HAVE_GTK3]: Remove
      unused argument f.  All callers changed.  Handle general alpha value.
    • Stefan Monnier's avatar
  2. 28 May, 2019 8 commits
  3. 27 May, 2019 5 commits
    • Glenn Morris's avatar
    • Simen Heggestøyl's avatar
      Remap `complete-symbol' in CSS mode · 464770d2
      Simen Heggestøyl authored
      * lisp/textmodes/css-mode.el (css-mode-map): Remap `complete-symbol'
      to `completion-at-point'.
      (css-mode): Update docstring to produce the right key binding.
    • Mattias Engdegård's avatar
      Correctly eliminate duplicate cases in switch compilation · 68b374a6
      Mattias Engdegård authored
      Fix code mistakes that prevented the correct elimination of duplicated
      cases when compiling a `cond' form to a switch bytecode, as in
        (cond ((eq x 'a) 1)
              ((eq x 'b) 2)
              ((eq x 'a) 3)   ; should be elided
              ((eq x 'c) 4))
      Sometimes, this caused the bytecode to use the wrong branch (bug#35770).
      * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-vars): Return obj2 eval'ed.
      Discard redundant condition.  Use `obj2' as evaluated.
      Discard duplicated cases instead of failing the table generation.
      * test/lisp/emacs-lisp/bytecomp-tests.el (toplevel): Require subr-x.
      (byte-opt-testsuite-arith-data, bytecomp-test--switch-duplicates): Test.
    • Michael Albinus's avatar
      Another attempt to fix Bug#35769 · 457b0244
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-call-process, tramp-call-process-region)
      (tramp-process-lines): Suppress `process-environment' entries
      dedicated for remote processes.  (Bug#35769)
    • Noam Postavsky's avatar
      ; Fix read-multiple-choice test · dc9f8c1c
      Noam Postavsky authored
      * test/lisp/emacs-lisp/rmc-tests.el (test-read-multiple-choice):
      Rebind read-event, read-multiple-choice uses that since 2019-05-26
      "Avoid infloop in read-multiple-choice (Bug#32257)".
  4. 26 May, 2019 10 commits
  5. 25 May, 2019 9 commits
  6. 24 May, 2019 1 commit