1. 02 Jun, 2019 10 commits
  2. 01 Jun, 2019 20 commits
  3. 31 May, 2019 3 commits
    • Simen Heggestøyl's avatar
      Use lexical-binding in autoinsert.el and add tests · 12f530a7
      Simen Heggestøyl authored
      * lisp/autoinsert.el: Use lexical-binding.
      Remove redundant :group args.
      (auto-insert): Simplify.
      
      * test/lisp/autoinsert-tests.el: New file with tests for
      autoinsert.el.
      12f530a7
    • Eli Zaretskii's avatar
      Unbreak MinGW64 build with pthreads.h installed · c3748b13
      Eli Zaretskii authored
      * nt/mingw-cfg.site (gl_cv_func_pthread_sigmask_macro): Set to
      "no", to avoid compiling Gnulib's pthread_sigmask.c.
      Reported by Richard Copley <rcopley@gmail.com>.
      c3748b13
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739) · b3df3729
      Stefan Monnier authored
      `url-insert-file-contents` saves in buffer-file-coding-system
      the coding-system used to decode the contents.  Preserve this
      as the contents is moved from buffer to string to buffer, and use
      it when saving the contents to file, so as to try and better preserve
      the original byte sequence.
      
      (package--buffer-string, package--cs): New functions.
      (package--check-signature): Encode `string` if a coding-system
      was specified in buffer-file-coding-system.
      (package--download-one-archive, package-install-from-archive):
      Obey and preserve the buffer-file-coding-system if specified.
      
      Do not merge.
      b3df3729
  4. 30 May, 2019 7 commits
    • Noam Postavsky's avatar
      Warn about wrong number of args for subrs (Bug#35767) · 134edc10
      Noam Postavsky authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't
      assume byte-compile-fdefinition will return non-nil.
      * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-warn-wrong-args)
      (bytecomp-warn-wrong-args-subr): New tests.
      134edc10
    • Noam Postavsky's avatar
      Use plain symbols for eieio type descriptors (Bug#29220) · 5f01af6c
      Noam Postavsky authored
      Since Emacs 26, eieio objects use a class record (with circular
      references) as the type descriptor of the object record.  This causes
      problems when reading back an object from a string, because the class
      record is not `eq' to the canonical one (which means that read objects
      don't satisfy the foo-p predicate).
      * lisp/emacs-lisp/eieio.el (make-instance): As a (partial) fix, set
      the record's type descriptor to a plain symbol for the type descriptor
      when eieio-backward-compatibility is non-nil (the default).
      * lisp/emacs-lisp/eieio-core.el (eieio--object-class): Call
      eieio--class-object on the type tag when eieio-backward-compatibility
      is non-nil.
      (eieio-object-p): Use eieio--object-class instead of
      eieio--object-class-tag.
      * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
      (eieio-test-persist-hash-and-vector)
      (eieio-test-persist-interior-lists): Make into functions.
      (eieio-persist-hash-and-vector-backward-compatibility)
      (eieio-persist-hash-and-vector-no-backward-compatibility)
      (eieio-test-persist-interior-lists-backward-compatibility)
      (eieio-test-persist-interior-lists-no-backward-compatibility): New
      tests which call them, eieio-backward-compatibility let-bound.
      5f01af6c
    • Paul Eggert's avatar
      Pacify librsvg 2.45.1 and later · 7871c3dc
      Paul Eggert authored
      * src/image.c (svg_load_image): Pacify librsvg 2.45.1 and later,
      and add a FIXME comment about the deprecated librsvg functions.
      Backport from master.
      7871c3dc
    • Paul Eggert's avatar
      Pacify GCC when compiling unexelf.c on Fedora 30 · b2e44b42
      Paul Eggert authored
      * src/unexelf.c (unexec): Pacify GCC 9.
      b2e44b42
    • Paul Eggert's avatar
      Suppress GCC 9 “no longer supported” messages · fa9e575c
      Paul Eggert authored
      * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wchkp.
      This suppresses a boatload of warnings of the form
      “gcc: warning: switch ‘-Wchkp’ is no longer supported”.
      when using GCC 9.  Do not merge to master.
      fa9e575c
    • Paul Eggert's avatar
      Pacify GCC 9 -Wredundant-decls · 4b24b018
      Paul Eggert authored
      * src/gmalloc.c (_fraghead) [!HYBRID_MALLOC]:
      Make it static in this case, too.  This avoids having both
      ‘extern struct list _fraghead[];’ and
      ‘static struct list _fraghead[BLOCKLOG];’, which
      GCC 9 complains about.
      4b24b018
    • Paul Eggert's avatar
      Simplify xd_signature to pacify GCC 9 · d93f4bda
      Paul Eggert authored
      * src/dbusbind.c (xd_signature): Use simpler way to set up
      the subsignature.  This also pacifies GCC 9 on Fedora 30 x86-64.
      Backport from master.
      d93f4bda