1. 21 May, 2018 3 commits
    • Paul Eggert's avatar
      Update from Gnulib · 79f15092
      Paul Eggert authored
      This incorporates:
      2018-05-21 crypto: omit stream ops Emacs doesn’t need
      2018-05-13 truncate: Fix compilation error on Android
      2018-05-13 imaxdiv: Fix compilation error on Android
      2018-05-13 Support selective inclusion of recent mingw.org headers
      2018-05-13 Add cross-compilation guesses for Linux systems sans glibc
      2018-05-13 stdioext: Fix compilation errors with newer Android headers
      2018-05-07 af_alg: Pacify --enable-gcc-warnings
      2018-05-06 af_alg: Fix bug with streams that are not at position 0
      2018-05-06 Followup to 'af_alg: New module'
      2018-05-05 crypto/{md5,sha1,sha256,sha512}: simplify
      2018-05-05 af_alg: New module
      2018-05-05 af_alg: Improve function signature
      2018-04-28 md5sum: Use AF_ALG when available
      2018-04-28 sha512sum: Use AF_ALG when available
      2018-04-28 sha256sum: Use AF_ALG when available
      2018-04-28 sha1sum: Use AF_ALG when available
      2018-05-05 all: Replace more http URLs by https URLs
      2018-05-03 maint: port more modules to GCC 8
      2018-05-03 Simplify code; drop support for Borland C++ on Windows
      * admin/merge-gnulib (GNULIB_MODULES): Use crypto/md5-buffer
      rather than crypto/md5, since Emacs doesn’t use the stream
      operations that in recent Gnulib pull in other stuff Emacs doesn’t
      need.  Similarly for crypto/sha1-buffer, crypto/sha256-buffer,
      crypto/sha512-buffer.
      * build-aux/config.guess, build-aux/config.sub, lib/dosname.h:
      * lib/dup2.c, lib/errno.in.h, lib/euidaccess.c, lib/fcntl.c:
      * lib/fcntl.in.h, lib/fpending.c, lib/fsync.c, lib/getdtablesize.c:
      * lib/getopt.c, lib/gettimeofday.c, lib/inttypes.in.h, lib/md5.c:
      * lib/md5.h, lib/open.c, lib/pipe2.c, lib/putenv.c, lib/sha1.c:
      * lib/sha1.h, lib/sha256.c, lib/sha256.h, lib/sha512.c:
      * lib/sha512.h, lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h:
      * lib/stdlib.in.h, lib/sys_stat.in.h, lib/sys_types.in.h:
      * lib/timespec.h, lib/unistd.in.h, lib/utimens.c, m4/c-strtod.m4:
      * m4/gnulib-common.m4, m4/inttypes.m4, m4/lstat.m4, m4/nocrash.m4:
      * m4/pselect.m4, m4/readlink.m4, m4/stdio_h.m4, m4/symlink.m4:
      * m4/unistd_h.m4, m4/utimens.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      79f15092
    • João Távora's avatar
      Fix Flymake's ruby-mode tests when user has "rubocop" installed · f21db9e1
      João Távora authored
      The Flymake test suite fails if the "rubocop" program is installed,
      because the ruby-flymake-rubocop backend is selected automatically by
      ruby-flymake-auto.  The test was designed for ruby-flymake-simple,
      tough, and fails.
      
      * test/lisp/progmodes/flymake-tests.el (ruby-backend): Ensure
      this test runs exclusively with the ruby-flymake-simple backend.
      f21db9e1
    • Michael Albinus's avatar
      Fix Bug#31489 · ab37ceb9
      Michael Albinus authored
      * doc/misc/tramp.texi (Frequently Asked Questions):
      Mention `tramp-ignored-file-name-regexp'.  Improve index.
      
      ; * etc/NEWS: Mention `tramp-ignored-file-name-regexp'.
      
      * lisp/net/tramp.el (tramp-ignored-file-name-regexp): New defcustom.
      (tramp-tramp-file-p): Use it.  Check also for `tramp-mode'.
      (tramp-file-name-handler): Don't check for `tramp-mode'.  (Bug#31489)
      
      * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax):
      Extend test.
      ab37ceb9
  2. 20 May, 2018 5 commits
    • Eli Zaretskii's avatar
      Revert part of the previous change · 4010631f
      Eli Zaretskii authored
      * doc/misc/message.texi:
      * doc/misc/efaq.texi:
      * doc/emacs/sending.texi:
      * doc/emacs/rmail.texi: Revert the CC => Cc etc. conversions.
      4010631f
    • Paul Eggert's avatar
      Use “Cc” for email copies, as per RFC 5322. · ee2916c6
      Paul Eggert authored
      Also fix similar problems with Bcc, Fcc, In-Reply-To,
      and similar email headers.  See thread starting at:
      https://lists.gnu.org/r/emacs-devel/2018-05/msg00463.html
      ee2916c6
    • Noam Postavsky's avatar
      * make-dist: Add '--no-info' option. · a32412b8
      Noam Postavsky authored
      a32412b8
    • Alan Mackenzie's avatar
      Enhance CC Mode's fontification, etc., of unterminated strings. · bb591f13
      Alan Mackenzie authored
      String delimiters, including escaped new lines, of correctly terminated
      strings are left in font-lock-string-face.  All others get
      font-lock-warning-face.  The latter get syntax-table text properties on the
      opening string delim and the "terminating EOL".
      
      Correct two miscellaneous bugs: the handling of text properties on Java Mode's
      generic delimiters; the handling of c-just-done-before-change.
      
      * lisp/progmodes/cc-defs.el (c-point): New position 'eoll "end of logical line".
      (c-characterp): New macro.
      
      * lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Removed.
      (c-basic-matchers-before): Use a simple matcher in place of the form around
      c-font-lock-invalid-string.
      
      * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add
      c-before-change-check-unbalanced-strings to the value for all modes except AWK
      Mode.  Also add c-before-change-check-<>-operators to Java Mode, correcting an
      error in that mode's handling of generic delimiters.
      (c-before-font-lock-functions): Add c-after-change-re-mark-unbalanced-strings
      to the value for all modes except AWK Mode.
      (c-single-quotes-quote-strings, c-string-delims): New lang variables for
      future enhancements.
      (c-string-innards-re-alist): New lang variable.
      
      * lisp/progmodes/cc-mode.el (c-just-done-before-change): Do not set this
      variable when a change is the alteration of text properties.
      (c-basic-common-init): Set parse-sexp-lookup-properties (and the XEmacs
      equivalent) also for Pike Mode.
      (c-neutralize-CPP-line): No longer neutralize unbalanced quotes here.
      (c-unescaped-nls-in-string-p, c-multiline-string-start-is-being-detached)
      (c-pps-to-string-delim, c-before-change-check-unbalanced-strings)
      (c-after-change-re-mark-unbalanced-strings): New functions.
      (c-after-change): Fix a bug with the handling of c-just-done-before-change.
      bb591f13
    • Eli Zaretskii's avatar
  3. 19 May, 2018 2 commits
    • Paul Eggert's avatar
      * admin/notes/unicode: HELLO is again UTF-8. · 51c1fdcc
      Paul Eggert authored
      51c1fdcc
    • Eli Zaretskii's avatar
      Use Enriched mode in etc/HELLO to keep charset information · 3589c966
      Eli Zaretskii authored
      This allows to encode HELLO in UTF-8, thus supporting the entire
      repertory of Unicode, while still keeping the charset info where
      that is important.  Suggested by Michael Welsh Duggan <mwd@md5i.com>.
      * lisp/textmodes/enriched.el (enriched-translations): Add
      translations for 'charset'.
      (enriched-decode-charset, enriched-handle-charset-prop): New
      functions.
      * lisp/facemenu.el (facemenu-special-menu): Add sub-menu for
      'charset' property.
      (facemenu-set-charset): New function.
      (facemenu-remove-special): Remove the 'charset' property as well.
      
      * etc/NEWS: Announce the new feature of Enriched mode.
      * etc/HELLO: Recode in UTF-8 and place under Enriched mode.
      
      * doc/emacs/text.texi (Enriched Properties): Mention the support
      for 'charset'.
      3589c966
  4. 18 May, 2018 4 commits
    • Paul Eggert's avatar
      * src/alloc.c: Fix comment. · 593c367b
      Paul Eggert authored
      593c367b
    • Paul Eggert's avatar
      Port to GCC 8 -fsanitize=undefined · a1c925fd
      Paul Eggert authored
      In GCC 8, gcc -fsanitize=undefined flags the undefined behavior
      that Emacs relies on in its XPNTR and XSYMBOL low-level functions.
      Disable undefined sanitization in these functions.  Although this
      disabling doesn’t suffice if DEFINE_KEY_OPS_AS_MACROS is true, it
      works for -fsanitize=undefined -DINLINING=0, which is good enough.
      * src/alloc.c (macro_PNTR_ADD): New macro.
      (PNTR_ADD): New function and macro.
      The function disables -fsanitize=undefined.
      (macro_XPNTR): Use it.
      * src/conf_post.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.
      * src/lisp.h (XSYMBOL): Disable -fsanitize=undefined.
      a1c925fd
    • Lars Ingebrigtsen's avatar
      (gnus-blocked-images): Clarify privacy implications · f4d9fd3d
      Lars Ingebrigtsen authored
      * lisp/gnus/gnus-art.el (gnus-blocked-images): Clarify the privacy
      implication of altering the value of this variable.
      f4d9fd3d
    • Eli Zaretskii's avatar
      Fix decoding of directories when "~" includes non-ASCII chars · 3aab8626
      Eli Zaretskii authored
      * src/fileio.c (Fexpand_file_name): Don't build multibyte strings
      from unibyte non-ASCII strings when NAME and DEFAULT_DIRECTORY
      have different multibyteness, as this adds bytes to the byte
      sequence, and in some situations, e.g., when the home directory
      includes non-ASCII characters, can fail file APIs.  (Bug#30755)
      
      * lisp/startup.el (normal-top-level): Make sure default-directory
      is set to a multibyte string when decoded on MS-Windows.
      3aab8626
  5. 17 May, 2018 1 commit
    • Filipp Gunbin's avatar
      Fix bugs in `auth-source-netrc-parse-one'. · 60ff8101
      Filipp Gunbin authored
      * lisp/auth-source.el (auth-source-netrc-parse-one): Ensure that match
        data is not overwritten in `auth-source-netrc-parse-next-interesting'.
        Ensure that blanks are skipped before and after going over comments
        and eols.
      * test/lisp/auth-source-tests.el (auth-source-test-netrc-parse-one): New test.
      60ff8101
  6. 16 May, 2018 1 commit
    • Michael Albinus's avatar
      Fix creation of Secret Service items in auth-source · 01120ec3
      Michael Albinus authored
      * lisp/auth-source.el (auth-source-secrets-create): Use ´apply'.
      (auth-source-secrets-saver): Handle `auth-source-save-behavior'
      equal t.
      
      * lisp/net/secrets.el (secrets-get-items): Do not call
      `secrets-open-session' here ...
      (top): ... but here.
      
      * test/lisp/auth-source-tests.el
      (auth-source-test-secrets-create-secret): Bind
      `auth-source-save-behavior' to t.  Cleanup.
      
      * test/lisp/net/secrets-tests.el (secrets-test00-availability):
      After loading secets.el, a session is already opened.
      (secrets-test02-collections, secrets-test03-items)
      (secrets-test04-search): Open a new session.
      01120ec3
  7. 15 May, 2018 11 commits
    • Dima Kogan's avatar
      Give '$' punctuation syntax in make-mode (Bug#24477) · 4c3cd27d
      Dima Kogan authored
      * lisp/progmodes/make-mode.el (makefile-mode-syntax-table): Set syntax
      of '$' to punctuation.
      4c3cd27d
    • Noam Postavsky's avatar
      Simplify eshell arg processing with (pop (nthcdr ...)) · 2fda57c6
      Noam Postavsky authored
      * lisp/eshell/esh-opt.el (eshell--set-option)
      (eshell--process-args): Use (pop (nthcdr ...)) instead of writing it
      out by hand.
      2fda57c6
    • Jay Kamat's avatar
      esh-opt.el: Add a :parse-leading-options-only argument (Bug#28323) · a4c616e2
      Jay Kamat authored
      * lisp/eshell/esh-opt.el (eshell-eval-using-options): Add a new
      :parse-leading-options-only argument which ignores dash/switch
      arguments after the first positional argument.
      (eshell--process-args): Abort processing of arguments if we see one
      positional argument and :parse-leading-options-only is set.
      * lisp/eshell/em-tramp.el (eshell/sudo): Use
      :parse-leading-options-only, to avoid parsing subcommand switches as
      switches of sudo itself.
      * test/lisp/eshell/esh-opt-tests.el: Add tests for new and old behavior.
      a4c616e2
    • Jay Kamat's avatar
      esh-opt.el: Fix improper parsing of first argument (Bug#28323) · 92a8230e
      Jay Kamat authored
      Examples of broken behavior:
      
          sudo -u root whoami
          Outputs: -u
          ls -I '*.txt' /dev/null
          Errors with: *.txt: No such file or directory
      
      * lisp/eshell/esh-opt.el (eshell--process-args): Refactor usage of
      args to eshell--args, as we rely on modifications from
      eshell--process-option and vice versa.  These modifications were not
      being propogated in the (if (= ai 0)) case, since popping the first
      element of a list doesn't destructively modify the underlying list
      object.
      92a8230e
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 3cc714d1
      Glenn Morris authored
      c2ef847d (origin/emacs-26) Clarify the mode-line indicators in CC Mode
      3cc714d1
    • Glenn Morris's avatar
      ; Merge from origin/emacs-26 · 8f088e15
      Glenn Morris authored
      The following commit was skipped:
      
      934bb475 Fix filesystem littering by Flymake's legacy backend
      8f088e15
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 3ee1841f
      Glenn Morris authored
      b98cf9cd ; Fix a typo in the Emacs manual
      700fcd77 * doc/emacs/help.texi: Fix paren typo.
      c9c0e40d More minor changes in shell-related nodes of Emacs manual
      e6bf19cf Fix inaccuracies in "Shell Ring" node of Emacs manual
      087681b8 Improve documentation of kmacro commands and variables.
      be2e8cb8 * doc/man/emacs.1.in: Document --fg-daemon and --bg-daemon.
      1d9e66ae Don't check non-X frames for z order (Bug#31373)
      7dc028e2 Check NSWindow is actually a frame
      
      Conflicts:
      	src/nsfns.m
      3ee1841f
    • Michael Albinus's avatar
      Fix Bug#29575 · b3956d85
      Michael Albinus authored
      * lisp/net/secrets.el (secrets-create-item): The new item does not
      need a unique label.
      (secrets-item-path, secrets-get-secret, secrets-get-attributes)
      (secrets-get-attribute, secrets-delete-item): ITEM can also be an
      object path.  (Bug#29575)
      
      * test/lisp/net/secrets-tests.el (secrets-test03-items):
      Test also creation of two items with same label.  Test
      `secrets-get-secret', `secrets-get-attribute' and
      `secrets-get-attributes' with object path.
      (secrets-test04-search): Harden test.
      b3956d85
    • Michael Albinus's avatar
      73a36779
    • Michael Albinus's avatar
      Fix Bug#31068 · c595d5dd
      Michael Albinus authored
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
      Unregister unless `tramp-archive-enabled'.  (Bug#31068)
      c595d5dd
    • Tino Calancha's avatar
      Run python test if the python executable is found · bb975527
      Tino Calancha authored
      * test/lisp/progmodes/python-tests.el (python-tests--bug31398):
      Skip test when executable python is no found.
      bb975527
  8. 14 May, 2018 9 commits
  9. 12 May, 2018 2 commits
    • João Távora's avatar
      Fix filesystem littering by Flymake's legacy backend · 934bb475
      João Távora authored
      The Flymake legacy "proc" backend, which is active by default will try
      to syntax-check foo.c/foo.cpp and many other types of files, but on
      failing to find a suitable Makefile target, will fail.  There's
      nothing wrong with that except that it used to leave behind the
      foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering
      the filesystem.
      
      * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake):
      Call init-function inside of the unwind-protect.
      934bb475
    • Eli Zaretskii's avatar
      ; Fix a typo in the Emacs manual · b98cf9cd
      Eli Zaretskii authored
      * doc/emacs/fixit.texi (Transpose): Fix a typo.  Reported by
      Takesi Ayanokoji <ayanokoji.takesi@gmail.com>.
      b98cf9cd
  10. 11 May, 2018 2 commits
    • Paul Eggert's avatar
      * doc/emacs/help.texi: Fix paren typo. · 700fcd77
      Paul Eggert authored
      700fcd77
    • João Távora's avatar
      Fix filesystem littering by Flymake's legacy backend · 15fa8de1
      João Távora authored
      The Flymake legacy "proc" backend, which is active by default will try
      to syntax-check foo.c/foo.cpp and many other types of files, but on
      failing to find a suitable Makefile target, will fail.  There's
      nothing wrong with that except that it used to leave behind the
      foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering
      the filesystem.
      
      * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake):
      Call init-function inside of the unwind-protect.
      15fa8de1