1. 01 Jun, 2019 3 commits
  2. 31 May, 2019 1 commit
    • 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.
  3. 30 May, 2019 8 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.
    • 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
      * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
      (eieio-test-persist-interior-lists): Make into functions.
      (eieio-test-persist-interior-lists-no-backward-compatibility): New
      tests which call them, eieio-backward-compatibility let-bound.
    • 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.
    • 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.
    • 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.
    • Paul Eggert's avatar
      Pacify GCC when compiling unexelf.c on Fedora 30 · b2e44b42
      Paul Eggert authored
      * src/unexelf.c (unexec): Pacify GCC 9.
    • 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.
    • Stefan Kangas's avatar
      Fix docstring of bookmark-get-bookmark · 1b2f83bb
      Stefan Kangas authored
      * lisp/bookmark.el (bookmark-get-bookmark): Document optional
      argument NOERROR. (bug#20148)
  4. 26 May, 2019 2 commits
  5. 25 May, 2019 2 commits
    • Eli Zaretskii's avatar
      Improve documentation of decoding into a unibyte buffer · 8f18d121
      Eli Zaretskii authored
      * doc/lispref/nonascii.texi (Explicit Encoding): Document what
      happens when DESTINATION of decoding is a unibyte buffer.
      * src/coding.c (Fdecode_coding_region)
      (Fdecode_coding_string): Document what happens if DESTINATION
      is a unibyte buffer.
    • Mauro Aranda's avatar
      Remove redundants "See" before @xref or @pxref (Bug#35793) · 7681a57b
      Mauro Aranda authored
      * doc/lispref/control.texi (Control Structures):
      * doc/lispref/modes.texi (Search-based Fontification):
      * doc/misc/cc-mode.texi (Filling and Line Breaking Commands)
      (Auto-newline Insertion, Other Special Indentations):
      * doc/misc/dbus.texi (Errors and Events):
      * doc/misc/dired-x.texi (Find File At Point):
      * doc/misc/eudc.texi (Display of Query Results, Inline Query Expansion):
      * doc/misc/gnus-faq.texi (FAQ 3-11):
      * doc/misc/gnus.texi (Group Parameters, Posting Styles)
      (Spam Package Introduction):
      * doc/misc/org.texi (LaTeX fragments, Previewing LaTeX fragments):
      * doc/misc/reftex.texi (Commands):
      Remove redundant "See" before cross references.
      * doc/lispref/functions.texi (Function Safety): Redundant "see" is in
      ignored text, but remove it anyway.
      * doc/lispref/positions.texi (Skipping Characters): Remove redundant
      "See" before cross references.  Change @xref to @pxref, which is
      more suitable when at the end of a sentence.
      Most of the redundants "See" found by Noam Postavsky.
  6. 23 May, 2019 2 commits
  7. 22 May, 2019 1 commit
    • Tom Levy's avatar
      Fix a typo in ELisp manual · b0da9151
      Tom Levy authored
      * doc/lispref/sequences.texi (Sequence Functions): Fix a typo.
      Copyright-paperwork-exempt: yes
  8. 21 May, 2019 1 commit
    • Noam Postavsky's avatar
      Add option to disable help completion autoloading (Bug#28607) · 400907b3
      Noam Postavsky authored
      * lisp/help-fns.el (help-enable-completion-auto-load): New option.
      (help--symbol-completion-table): Consult it.
      * doc/emacs/building.texi (Lisp Libraries): Document it.
      * etc/NEWS: Announce it.
      * doc/lispref/loading.texi (Autoload by Prefix): New section.
      (Autoload): Reference it.
  9. 20 May, 2019 3 commits
  10. 19 May, 2019 2 commits
  11. 17 May, 2019 3 commits
  12. 14 May, 2019 2 commits
    • Paul Eggert's avatar
      Backport: fix broken build on m68k · cf545776
      Paul Eggert authored
      The GCC + valgrind fix caused the m68k build to fail (Bug#35711).
      Simplify string allocation a bit to make similar problems less
      likely in the future.
      * src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]:
      Use the same implementation as with !GC_CHECK_STRING_BYTES,
      as the special case is no longer needed.
      (SDATA_ALIGN): New constant.
      (SDATA_SIZE): Remove this macro, replacing with ...
      (sdata_size): ... this new function.  All uses changed.
      Properly account for sizes and alignments even in the m68k case,
      and even if GC_CHECK_STRING_BYTES is not defined.
    • Noam Postavsky's avatar
      Handle GNUTLS_E_AGAIN in emacs_gnutls_read (Bug#34341) · 202ff53d
      Noam Postavsky authored
      Don't merge to master, this has already been fixed there by 2019-01-15
      "Fix unlikely races with GnuTLS, datagrams".
      * src/gnutls.c (emacs_gnutls_read): Similar to emacs_gnutls_write,
      when gnutls_record_recv returns GNUTLS_E_AGAIN set errno to EGAIN.
  13. 12 May, 2019 1 commit
    • Neil Roberts's avatar
      Let dir locals for more specific modes override those from less · 02bee786
      Neil Roberts authored
      The list of dir local variables to apply is now sorted by the number
      of parent modes of the mode used as the key in the association list.
      That way when the variables are applied in order the variables from
      more specific modes will override those from less specific modes.
      If there are directory entries in the list then they are sorted in
      order of name length.  The list of modes for that dir is then
      recursively sorted with the same mechanism.  That way variables tied
      to a particular subdirectory override those in in a parent directory.
      Previously the behaviour didn’t seem to be well defined anyway and was
      dependent on the order they appeared in the file.  However this order
      was changed in version 26.1 and it probably also depended on the
      number of dir-local files that are merged.
      * lisp/files.el (dir-locals-get-sort-score, dir-locals-sort-variables)
      (dir-locals-read-from-dir): Sort the dir locals so that more precise
      modes and directory-specific entries have override lesser ones.
      * doc/emacs/custom.texi (Directory Variables): Document the priority.
  14. 11 May, 2019 1 commit
  15. 09 May, 2019 5 commits
    • Alan Mackenzie's avatar
      Fix description of (move-to-column <n> t) when column <n> is inside a tab · 32d18132
      Alan Mackenzie authored
      This fixes bug #35647.  State that when indent-tabs-mode is non-nil, spaces
      are inserted before the tab rather than the tab being replaced by spaces.
      * doc/lispref/text.texi (columns)
      * src/indent.c (move-to-column): Make the above documentation amendment.
    • Noam Postavsky's avatar
      ; Fix smtpmail-stream-type docstring · 0397b7c7
      Noam Postavsky authored
      * lisp/mail/smtpmail.el (smtpmail-stream-type): Remove redundant
      docstring verbiage.
    • Noam Postavsky's avatar
      Recognize single quote attribute values in nxml and sgml (Bug#35381) · 7dab3ee7
      Noam Postavsky authored
      * lisp/textmodes/sgml-mode.el (sgml-specials): Add single quote.
      (sgml-syntax-propertize-rules): Handle single quote.
      * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-font-lock-quotes): New
      * test/lisp/textmodes/sgml-mode-tests.el
      (sgml-delete-tag-bug-8203-should-not-delete-apostrophe): Now passes.
    • Noam Postavsky's avatar
      Disable extra display of &#10; in nxml-mode (Bug#32897) · e4cde426
      Noam Postavsky authored
      * lisp/nxml/nxml-mode.el (nxml-char-ref-display-extra): Don't put
      display for the newline, it makes the indentation look wrong.
    • Noam Postavsky's avatar
      Fix nxml-get-inside (Bug#32003) · ca14dd1d
      Noam Postavsky authored
      The change from 2016-01-16 "lisp/nxml: Use syntax-tables for comments"
      made nxml-get-inside return non-nil for any string or comment,
      including attribute strings.  This caused incorrect and therefore
      * lisp/nxml/nxml-rap.el: Update commentary to reflect changes to
      nxml-mode parsing.
      (nxml-get-inside): Only return non-nil when inside comments and
      generic strings, not normal quote-delimited strings.
      * test/lisp/nxml/nxml-mode-tests.el: New tests.
  16. 08 May, 2019 3 commits