1. 29 Jan, 2019 2 commits
    • Michael Albinus's avatar
      Adapt `accept-process-output' arguments in tramp-tests · b092a9af
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
      (tramp-test30-make-process, tramp-test31-interrupt-process)
      Adapt `accept-process-output' arguments.
    • Michael Albinus's avatar
      ; Tramp cleanup · 492b31d9
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
      Handle `non-essential'.
      * lisp/net/tramp-archive.el: Increase `max-specpdl-size' when
      loading tramp-gvfs.
      * lisp/net/tramp-rclone.el (tramp-rclone-mounted-p): Reorder for
      better traces.
      (tramp-rclone-maybe-open-connection): Handle `non-essential'.
      * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory)
      (tramp-find-inline-encoding): Simplify check.
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory)
      (tramp-smb-handle-insert-directory): Simplify check.
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo):
      Simplify check.
      (tramp-sudoedit-maybe-open-connection): Handle `non-essential'.
      * lisp/net/tramp.el (tramp-handle-load, tramp-wait-for-regexp):
      Simplify check.
      (tramp-action-login, tramp-action-password, tramp-action-yesno)
      (tramp-action-yn, tramp-action-terminal): Return explicitly t.
      (tramp-process-one-action, tramp-process-actions): Adapt docstring.
  2. 28 Jan, 2019 11 commits
    • Juri Linkov's avatar
      Small fixes · 137b65a9
      Juri Linkov authored
      * lisp/generic-x.el (etc-passwd-generic-mode): Add comment.  (Bug#34225)
      * lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Set overlay
      property 'diff-mode to 'syntax.  (Bug#33567)
      (diff-syntax-fontify-props): Reset buffer-file-name to nil.
    • Glenn Morris's avatar
      * src/Makefile.in (clean): Delete versioned pdmp files. · 020f6233
      Glenn Morris authored
      Else build number increments without limit even in clean builds.
    • Juri Linkov's avatar
      More checks for live buffers. · 0f94d422
      Juri Linkov authored
      * lisp/dired-x.el (dired-jump): Check if archive/tar superior buffer
      was killed by the user.
      * lisp/progmodes/ruby-mode.el (ruby-flymake--helper): Check if source buffer
      was killed by the user immediately after visiting and before process finishes.
    • Juri Linkov's avatar
      * lisp/generic-x.el (etc-passwd-generic-mode): Support backups of passwd, · 599eee3e
      Juri Linkov authored
      group and shadow /etc files.  (Bug#34225)
    • Eli Zaretskii's avatar
      Fix last change in xfaces.c · 9d8f900d
      Eli Zaretskii authored
      * src/xfaces.c (init_xfaces): Don't rely of 'face'
      property of a face to be a natural number.
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      Adapt accept-process-output timeouts in Tramp · 6c560a3b
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-accept-process-output):
      Make timeout optional.  Do not set explicit timer.
      (tramp-action-out-of-band, tramp-process-one-action)
      (tramp-wait-for-regexp, tramp-interrupt-process):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      * lisp/net/tramp-smb.el (tramp-smb-action-get-acl)
      (tramp-smb-action-set-acl, tramp-smb-wait-for-output):
      * tramp-sudoedit.el (tramp-sudoedit-action-sudo):
      Adapt `accept-process-output' calls wrt timeouts.
    • Eli Zaretskii's avatar
      Fix bug with face-id after restoring from pdump · cd06d173
      Eli Zaretskii authored
      * src/xfaces.c (init_xfaces): New function.
      * src/emacs.c (main) [HAVE_PDUMPER]: If dumped with pdumper,
      call init_xfaces.  (Bug#34226)
      * src/lisp.h (init_xfaces) [HAVE_PDUMPER]: Add prototype.
      * test/lisp/faces-tests.el (faces--test-face-id): New test for
    • Sam Steingold's avatar
      links: also link pdmp · fa7a8411
      Sam Steingold authored
    • Alan Mackenzie's avatar
      Detect when we hit limit in backward search in c-just-after-func-arglist-p · 23938680
      Alan Mackenzie authored
      This fixes a bug reported by Yasushi SHOJI <yasushi.shoji@gmail.com> to
      emacs-devel on 2018-11-26, where wrong analysis and fontification occurred.
      * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Add new parameter
      HIT-LIM which, if non-nil causes the function to return nil rather than 'same
      when we reach the backward search limit without finding the beginning of
      (c-just-after-func-arglist-p): Supply argument t to this new parameter in call
      to c-beginning-of-statement-1.
    • Paul Eggert's avatar
      Update from Gnulib · d81aa851
      Paul Eggert authored
      This incorporates:
      2019-01-26 getloadavg: Add support for Android
      2019-01-24 fchownat: Fix compilation error on Android 4.3
      2019-01-24 mbtowc: Fix compilation error on Android 4.3
      2019-01-24 random: Fix compilation error on Android 4.3
      2019-01-24 renameat: Fix compilation error on Android 4.3
      2019-01-24 unlinkat: Fix compilation error on Android 4.3
      2019-01-19 gettext: support disabling use of VLAs
      2019-01-17 sys_stat: Fix warning on OS/2 kLIBC
      2019-01-17 fcntl: Fix syntax error (regression from 2018-10-05)
      2019-01-10 verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++
      2018-12-22 stdioext: port to newer 32-bit Android
      2018-12-16 libc-config: Support HP-UX cc in C99 mode.
      * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
      * lib/cdefs.h, lib/fcntl.c, lib/getloadavg.c, lib/gettext.h:
      * lib/regexec.c, lib/stdio-impl.h, lib/stdio.in.h, lib/stdlib.in.h:
      * lib/sys_stat.in.h, lib/unistd.in.h, lib/verify.h, m4/stdlib_h.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
  3. 27 Jan, 2019 2 commits
    • Paul Eggert's avatar
      forward-line now works with bignums · cc1c46e4
      Paul Eggert authored
      * src/cmds.c (Fforward_line): Support bignum arg.
      (scan_newline): Return void since no caller was using the
      return value.
      * src/search.c (find_newline, scan_newline_from_point)
      (find_newline1): Return the number of newlines counted, not
      the count shortage, so that the return value always fits in
      ptrdiff_t even if the original count was a bignum.  All
      callers changed.
      * test/src/cmds-tests.el (forward-line-with-bignum): New test.
    • Eli Zaretskii's avatar
      Improve pdump load diagnostics · 6c2ee11d
      Eli Zaretskii authored
      * src/emacs.c (load_pdump): Improve diagnostics when pdump
      file fails to load correctly.
  4. 26 Jan, 2019 3 commits
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Improve pdump file search and 'pdumper-stats' · a7974933
      Eli Zaretskii authored
      * src/pdumper.c (pdumper_record_wd): New function.
      (pdumper_load): Use xstrdup instead of strdup, as on
      MS-Windows the latter uses the wrong heap.  Don't free a
      NULL pointer.
      * src/emacs.c (load_pdump): Support the use case where the
      Emacs binary was renamed: look in exec-directory for the
      pdump file whose base name is derived from the Emacs binary,
      in addition to just emacs.pdmp.
      (main): Call pdumper_record_wd to prepend CWD to the pdump
      file name.
      * src/fileio.c (file_name_absolute_p): Now extern.
      * src/lisp.h (file_name_absolute_p): Add prototype.
      * src/pdumper.h (pdumper_record_wd): Add prototype.
      * doc/emacs/cmdargs.texi (Initial Options): Update the
      documentation of where Emacs looks for the dump file.
    • Eli Zaretskii's avatar
      Fix face initializations in pdump'ed Emacs · bf4099b2
      Eli Zaretskii authored
      * src/dispnew.c (init_display_interactive): Call init_faces_initial
      in the daemon if dumped with pdumper. (Bug#34114)
  5. 25 Jan, 2019 8 commits
  6. 24 Jan, 2019 6 commits
    • Michael Albinus's avatar
      Some fixes in tramp-smb.el · 7960951d
      Michael Albinus authored
      * lisp/net/tramp-smb.el (tramp-smb-errors):
      (tramp-smb-maybe-open-connection): Respect ´non-essential'.  Do
      not record smbserver-version.
      (tramp-smb-wait-for-output): Improve reading pending output.
    • Michael Albinus's avatar
    • Eli Zaretskii's avatar
      Avoid byte-compiler warning in starttls.el · 89ec69be
      Eli Zaretskii authored
      * lisp/net/network-stream.el (starttls-open-stream): Declare
      to avoid compilation warning.
    • Michael Albinus's avatar
      ; Remove tramp-tests instrumentation · 24f11003
      Michael Albinus authored
    • Robert Pluim's avatar
      Check for client certificates when using GnuTLS · f3f9a358
      Robert Pluim authored
      This fixes Bug#33780, and extends the documentation to describe how to
      enable use of client certificates.
      * lisp/net/network-stream.el (network-stream-certificate): Correct
      order of parameters to plist-get.
      (network-stream-open-tls): Pass all received parameters to
      open-gnutls-stream as plist, not just :nowait.
      * lisp/net/gnutls.el (open-gnutls-stream): Change optional nowait arg
      to be plist.  Derive nowait and client certificate(s) and keys(s) from
      plist (maybe via auth-source) and pass to gnutls-boot-parameters and
      (network-stream-certificate): Add declare-function form for it.
      * doc/misc/auth.texi (Help for users): Describe format to use for
      client key/cert specification.
      * doc/misc/emacs-gnutls.texi (Help For Developers): Describe usage of
      optional plist argument.  Add crossreference to description of
      .authinfo format for client key/cert specification.
      * etc/NEWS: Describe new client certificate functionality for
      * test/lisp/net/network-stream-tests.el: Add require of network-stream.
      (connect-to-tls-ipv4-nowait): Bind network-security-level to 'low
      in order to bypass nsm prompting.
      (connect-to-tls-ipv6-nowait): Likewise.
      (open-network-stream-tls-wait): New test.
      (open-network-stream-tls-nowait): New test.
      (open-network-stream-tls): New test.
      (open-network-stream-tls-nocert): New test.
      (open-gnutls-stream-new-api-default): New test.
      (open-gnutls-stream-new-api-wait): New test.
      (open-gnutls-stream-old-api-wait): New test.
      (open-gnutls-stream-new-api-nowait): New test.
      (open-gnutls-stream-old-api-nowait): New test.
      (open-gnutls-stream-new-api-errors): New test.
      The new tests exercise 'open-network-stream' and the old and new
      api of 'open-gnutls-stream'.
    • Michael Albinus's avatar
      Fix error in Tramp's encoding check · 0744c353
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-find-inline-encoding):
      Use `tramp-get-connection-buffer'.
  7. 23 Jan, 2019 8 commits
    • Phillip Lord's avatar
      ; Fix typos in NEWS · d52bc534
      Phillip Lord authored
    • Stefan Monnier's avatar
      doc-view-presentation, doc-view-fit-window-to-page, and use mutool · 95b2f1a0
      Stefan Monnier authored
      * lisp/doc-view.el (doc-view-pdfdraw-program): Use "mutool" if available.
      (doc-view-mode-map): Keep default 'g' binding of 'revert-buffer'.
      Change 'r' binding to 'revert-buffer'.
      (doc-view-revert-buffer): Make it an obsolete alias.
      (doc-view--revert-buffer): Rename from doc-view-revert-buffer, change
      calling convention for use in add-function.
      (doc-view-fit-window-to-page): New command.
      (doc-view-pdf->png-converter-mupdf): Make it work with "mutool".
      (doc-view-mode): Use add-function for revert-buffer-function.
      (doc-view-presentation-mode-map, doc-view-presentation--src-data):
      New vars.
      (doc-view-presentation-exit, doc-view-presentation-mode)
      (doc-view-presentation--propagate-pn, doc-view-presentation):
      New functions.
    • Stefan Monnier's avatar
      Avoid having to build src/emacs when we just want to `make tags` · dbc48d75
      Stefan Monnier authored
      * Makefile.in (TAGS tags): Remove `src` from the dependencies.
      * src/Makefile.in (ctagsfiles1): Strip macuvs.h and fingerprint.c.
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix build errors with pdump fingerprint on macOS · d39a9692
      Eli Zaretskii authored
      * src/Makefile.in ($(lispsource)/international/charprop.el):
      Remove macuvs.h from the target list, to avoid circular
      dependency on macOS.  Reported by Alan Third <alan@idiocy.org>.
    • Michael Albinus's avatar
      ; More instrumentation of tramp-tests.el for hydra · 3b75c5ac
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
      Adapt docstring.
    • Stefan Monnier's avatar
      Rework last commit to icomplete and minibuffer.el. · 42732e2f
      Stefan Monnier authored
      Rather than let minibuffer-force-complete set up cycling and then undoing it,
      better tell it directly not to setup cycling.  Also be a bit more careful
      to remove the transient map.
      Additionally to bug#34077 and bug#34116, this also relates to bug#25644.
      * lisp/minibuffer.el (completion--flush-all-sorted-completions):
      Also take down the transient cycling map if applicable.
      (minibuffer-force-complete): New arg dont-cycle.
      Set completion-cycling to the actual function that takes down the
      transient map rather than just t.
      * lisp/icomplete.el (icomplete-force-complete): Use new dont-cycle arg.
    • Michael Albinus's avatar
      ; Instrument tramp-tests.el for hydra. · b3dfcf3e
      Michael Albinus authored