1. 17 Jan, 2019 1 commit
  2. 16 Jan, 2019 1 commit
    • Michael Albinus's avatar
      Some accept-process-output cleanups in Tramp · b2497ef6
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-action-out-of-band): Read process
      output in a loop.
      (tramp-accept-process-output): Return result.
      (tramp-interrupt-process):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
      * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names):
      Remove FIXME.
      
      * lisp/net/tramp-sh.el (tramp-local-coding-commands): Fix docstring.
      
      * lisp/net/tramp-smb.el (tramp-smb-wait-for-output): Adapt docstring.
      Simplify code.
      
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo):
      Adapt docstring.  Read process output in a loop.
      
      * test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests):
      Remove :unstable tag on emba.
      b2497ef6
  3. 10 Jan, 2019 1 commit
    • Michael Albinus's avatar
      New test custom--test-theme-variables · 7ae0a24c
      Michael Albinus authored
      * test/lisp/custom-tests.el (custom--test-user-option)
      (custom--test-variable): New variables.
      (custom--test-theme-variables): New test.
      
      * test/lisp/custom-resources/custom--test-theme.el (custom--test):
      New file.
      7ae0a24c
  4. 07 Jan, 2019 3 commits
    • Michael Albinus's avatar
      Adapt filenotify-tests for emba · 13b586d7
      Michael Albinus authored
      * .gitlab-ci.yml (test): Add EMACS_EMBA_CI variable.
      
      * test/lisp/filenotify-tests.el (file-notify-test03-events)
      (file-notify-test05-file-validity)
      (file-notify-test06-dir-validity)
      (file-notify-test07-many-events)
      (file-notify-test09-watched-file-in-watched-dir): Adapt tests for emba.
      13b586d7
    • Michael Albinus's avatar
      ; Format filenotify-tests.el · b513feb8
      Michael Albinus authored
      b513feb8
    • Michael Albinus's avatar
      Adapt tests for emba · 536e6dea
      Michael Albinus authored
      * test/lisp/filenotify-tests.el (file-notify-test03-events)
      (file-notify-test05-file-validity)
      (file-notify-test06-dir-validity)
      (file-notify-test07-many-events)
      (file-notify-test09-watched-file-in-watched-dir): Adapt tests for emba.
      536e6dea
  5. 06 Jan, 2019 1 commit
    • Michael Albinus's avatar
      Adapt filenotify-tests for emba · cfa54ab7
      Michael Albinus authored
      * test/lisp/filenotify-tests.el (file-notify-test03-events)
      (file-notify-test05-file-validity)
      (file-notify-test06-dir-validity)
      (file-notify-test07-many-events)
      (file-notify-test09-watched-file-in-watched-dir): Adapt tests for emba.
      cfa54ab7
  6. 05 Jan, 2019 1 commit
    • Joel Rosdahl's avatar
      Fix electric indent bug in python-mode after dedenting colon · a3c79d44
      Joel Rosdahl authored
      * list/progmodes/python.el (python-indent-post-self-insert-function):
      Use markers instead of positions when reindenting statement(s) after
      inserting electric colon to avoid reindenting too many
      statements (bug#22663).
      
      * test/lisp/progmodes/python-tests.el (python-indent-electric-colon-2):
      Improve test case to also verify the fix of bug#22663.
      
      Copyright-paperwork-exempt: yes
      a3c79d44
  7. 03 Jan, 2019 1 commit
    • Michael Albinus's avatar
      Mark some filenotify tests unstable on emba · fe4922cb
      Michael Albinus authored
      * .gitlab-ci.yml (test): Add EMACS_EMBA_CI variable.
      
      * test/lisp/filenotify-tests.el (file-notify-test03-events)
      (file-notify-test05-file-validity)
      (file-notify-test06-dir-validity)
      (file-notify-test07-many-events)
      (file-notify-test09-watched-file-in-watched-dir): Mark them as
      :unstable on emba.
      fe4922cb
  8. 02 Jan, 2019 1 commit
    • João Távora's avatar
      Extend electric-layout-mode to handle more complex layouts (bug#33794) · 949295ae
      João Távora authored
      Entries in electric-layout-rules can specify multiple
      newline-related actions which are executed in order of appearance.
      
      Also, have it play nice with electric-pair-mode when inserting a
      newlines, particularly with electric-pair-open-newline-between-pairs.
      
      Entries in electric-layout-rules can also be functions.  Among other
      things, the logic behind electric-pair-open-newline-between-pairs
      could now be moved to electric-layout-mode, but this commit doesn't do
      that yet.
      
      This change was motivated by bug#33794 and is an alternative solution
      to the problem reported in that bug.
      
      * lisp/electric.el (electric-layout-rules): Adjust docstring.
      (electric-layout-post-self-insert-function): Call
      electric-layout-post-self-insert-function-1.
      (electric-layout-post-self-insert-function-1): Rename from
      electric-layout-post-self-insert-function.  Redesign.
      (electric-layout-local-mode): New minor mode.
      
      * test/lisp/electric-tests.el (electric-layout-int-main-kernel-style)
      (electric-layout-int-main-allman-style)
      (electric-modes-in-c-mode-with-self-insert-command)
      (electric-pair-mode-newline-between-parens)
      (electric-layout-mode-newline-between-parens-without-e-p-m)
      (electric-layout-mode-newline-between-parens-without-e-p-m-2): New
      tests.
      (plainer-c-mode): New helper.
      949295ae
  9. 01 Jan, 2019 2 commits
    • Paul Eggert's avatar
      Update more copyright years · a04bf151
      Paul Eggert authored
      Update some other copyright years automatically, by running:
      Run 'UPDATE_COPYRIGHT_YEAR=2019 \
      UPDATE_COPYRIGHT_USE_INTERVALS=1 \
      UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 admin/update-copyright'
      followed by 'admin/merge-gnulib'.
      a04bf151
    • Paul Eggert's avatar
      Update copyright year to 2019 · 26bed8ba
      Paul Eggert authored
      Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
      26bed8ba
  10. 29 Dec, 2018 1 commit
  11. 24 Dec, 2018 1 commit
    • Michael Albinus's avatar
      Provide tramp-sh-handle-make-process · a94ac604
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      Add `tramp-sh-handle-make-process' and
      `tramp-handle-start-file-process'.
      (tramp-sh-handle-make-process): New defun, derived from
      `tramp-sh-handle-start-file-process'.  (Bug#28691)
      
      * lisp/net/tramp.el (tramp-handle-start-file-process): New defun.
      
      * test/lisp/net/tramp-tests.el (tramp-test30-make-process):
      New test.
      (tramp-test31-interrupt-process, tramp-test32-shell-command)
      (tramp-test33-environment-variables)
      (tramp-test33-environment-variables-and-port-numbers)
      (tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
      (tramp-test35-remote-path, tramp-test36-vc-registered)
      (tramp-test37-make-auto-save-file-name)
      (tramp-test38-find-backup-file-name)
      (tramp-test39-make-nearby-temp-file)
      (tramp-test40-special-characters)
      (tramp-test40-special-characters-with-stat)
      (tramp-test40-special-characters-with-perl)
      (tramp-test40-special-characters-with-ls, tramp-test41-utf8)
      (tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
      (tramp-test41-utf8-with-ls, tramp-test42-file-system-info)
      (tramp-test43-asynchronous-requests, tramp-test44-auto-load)
      (tramp-test44-delay-load, tramp-test44-recursive-load)
      (tramp-test44-remote-load-path, tramp-test45-unload): Rename.
      a94ac604
  12. 22 Dec, 2018 1 commit
    • Philipp Stephani's avatar
      Add file name handler support for 'make-process' (Bug#28691) · 039be4e0
      Philipp Stephani authored
      * src/process.c (Fmake_process): Add new keyword argument
      ':file-handler'.
      (syms_of_process) <make-process, :file-handler>: Define new symbols.
      
      * lisp/files.el (file-name-non-special): Add support for
      'make-process'.
      
      * test/src/process-tests.el (make-process/file-handler/found)
      (make-process/file-handler/not-found)
      (make-process/file-handler/disable): New unit tests.
      (process-tests--file-handler): New helper function.
      
      * test/lisp/files-tests.el
      (files-tests-file-name-non-special-make-process): New unit test.
      
      * doc/lispref/files.texi (Magic File Names): Document that
      'make-process' can invoke file name handlers.
      
      * doc/lispref/processes.texi (Asynchronous Processes): Document
      ':file-handlers' argument to 'make-process'.
      
      * etc/NEWS (Lisp Changes in Emacs 27.1): Mention new
      :file-handler argument for 'make-process'.
      039be4e0
  13. 21 Dec, 2018 2 commits
    • Michael Albinus's avatar
      Fix Bug#33735 · 452d0c52
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
      Delete empty lines.  (Bug#33735)
      (tramp-sh-inotifywait-process-filter): Use `string-match'.
      (tramp-set-remote-path): Check for PIPE_BUF but PATH_MAX.
      
      * test/lisp/filenotify-tests.el: Handle $REMOTE_FILE_NOTIFY_LIBRARY.
      (file-notify--deftest-remote): Suppress vc-handled-backends.
      (file-notify-test08-backup): Do not expect failure on hydra.
      (Bug#33735).
      452d0c52
    • Michael Albinus's avatar
      * test/lisp/filenotify-tests.el, test/lisp/shadowfile-tests.el: · f1faf85f
      Michael Albinus authored
      Don't require tramp-sh, bug#33781 is fixed.
      f1faf85f
  14. 20 Dec, 2018 3 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/map.el: Add support for plists · f68f2eb4
      Stefan Monnier authored
      (map--plist-p, map--plist-delete): New functions.
      (map-elt, map-delete, map-length, map-into, map-put!, map-insert)
      (map-apply, map-do): Handle the plist case.
      
      * test/lisp/emacs-lisp/map-tests.el (with-maps-do): Add sample plist.
      (test-map-put!): The behavior of map-put! is not the same for plists as
      for alists.
      f68f2eb4
    • Michael Albinus's avatar
      * test/lisp/net/tramp-tests.el (tramp-test32-environment-variables): · 6a3c5f41
      Michael Albinus authored
      Remove expected failure.
      6a3c5f41
    • Michael Albinus's avatar
      Fix Bug#33781 · 88d3713b
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-set-remote-path): Use a temporary
      file for setting $PATH, if it exceeds PATH_MAX on the remote system.
      (tramp-send-command-and-read): Ignore errors if NOERROR.  (Bug#33781)
      
      * test/lisp/net/tramp-tests.el (tramp-test34-remote-path): New test.
      88d3713b
  15. 19 Dec, 2018 5 commits
    • Glenn Morris's avatar
      Skip rather than fail in flymake tests · 7ca9bb78
      Glenn Morris authored
      * test/lisp/progmodes/flymake-tests.el
      (flymake-tests--wait-for-backends): Skip rather than fail if
      backends are slow to respond.  This always seems like a temporary
      system glitch and not something that should be reported as a failure.
      7ca9bb78
    • Paul Eggert's avatar
      cl-make-random-state was not copying its arg · f4ea7464
      Paul Eggert authored
      Problem reported by Xu Chunyang (Bug#33731).
      * lisp/emacs-lisp/cl-extra.el (cl-make-random-state):
      Use copy-sequence, not copy-tree, so that the record is copied.
      * test/lisp/emacs-lisp/cl-extra-tests.el:
      (cl-extra-test-cl-make-random-state): New test.
      f4ea7464
    • Glenn Morris's avatar
      Skip a vc-bzr test if run as root · fda43a7b
      Glenn Morris authored
      * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-faulty-bzr-autoloads):
      Skip this test when run as root.  This works around a race
      condition in root-specific code in vc-mode-line when deleting a file.
      
      ; Do not merge to master, instead fix vc-mode-line there.
      fda43a7b
    • Glenn Morris's avatar
      Skip a remote filenotify test on hydra · dc3f70dc
      Glenn Morris authored
      * test/lisp/filenotify-tests.el (file-notify--deftest-remote):
      Add optional argument to skip test.
      (file-notify-test07-many-events-remote): Skip on hydra.nixos.org.
      dc3f70dc
    • Glenn Morris's avatar
      Restrict downcasing in elisp xref tests (bug#25534) · 4c6c327d
      Glenn Morris authored
      The tests happen to not fail at the moment because find-library-name
      now has an extra feature, find-library--from-load-history, which
      happens to do a case-insensitive regexp match; but still it seems
      better not to rely on this.
      
      * test/lisp/progmodes/elisp-mode-tests.el (xref--case-insensitive):
      New variable.
      (xref-elisp-test-run, emacs-test-dir): Only downcase if the
      filesystem seems to be case-insensitive.
      4c6c327d
  16. 18 Dec, 2018 5 commits
  17. 17 Dec, 2018 5 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/map.el: Avoid special casing lists. · 55838e4e
      Stefan Monnier authored
      (map-not-inplace, map-inplace): New errors.
      (map-insert): New generic function.
      (map-put!): Signal map-not-inplace rather than a generic 'error'.
      (map-elt): Use map-not-inplace and map-insert to avoid hardcoding
      a special case for lists.
      
      * test/lisp/emacs-lisp/map-tests.el (test-map-put!): Rename from
      test-map-put.  Also test the errors signaled.
      55838e4e
    • Glenn Morris's avatar
      Avoid tests failures on hydra due to Tramp autoload changes · 2c3f7f9c
      Glenn Morris authored
      * test/lisp/filenotify-tests.el, test/lisp/shadowfile-tests.el:
      * test/lisp/net/tramp-tests.el: Require tramp-sh before changing
      tramp-remote-path.
      2c3f7f9c
    • Paul Eggert's avatar
      One more flatten-tree test · 36215936
      Paul Eggert authored
      * test/lisp/subr-tests.el (subr-tests-flatten-tree):
      Add a test for lots of nothing.
      36215936
    • Alex Branham's avatar
      New function flatten-tree · 36b05dc8
      Alex Branham authored
      
      Co-authored-by: default avatarBasil L. Contovounesios <contovob@tcd.ie>
      
      * doc/lispref/lists.texi: Document `flatten-tree'.
      
      * lisp/progmodes/js.el (js--maybe-join):
      * lisp/printing.el (pr-switches):
      * lisp/lpr.el (lpr-print-region):
      * lisp/gnus/nnimap.el (nnimap-find-wanted-parts):
      * lisp/gnus/message.el (message-talkative-question):
      * lisp/gnus/gnus-sum.el (gnus-remove-thread)
      (gnus-thread-highest-number, gnus-thread-latest-date):
      * lisp/eshell/esh-util.el (eshell-flatten-and-stringify):
      * lisp/eshell/esh-opt.el (eshell-eval-using-options):
      * lisp/eshell/esh-ext.el (eshell-external-command):
      * lisp/eshell/em-xtra.el (eshell/expr):
      * lisp/eshell/em-unix.el (eshell/rm, eshell-mvcpln-template)
      (eshell/cat, eshell/make, eshell-poor-mans-grep, eshell-grep)
      (eshell/du, eshell/time, eshell/diff, eshell/locate):
      * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo):
      * lisp/eshell/em-term.el (eshell-exec-visual):
      * lisp/eshell/em-dirs.el (eshell-dirs-substitute-cd, eshell/cd):
      * lisp/eshell/em-basic.el (eshell/printnl):
      Use new flatten-tree.
      
      * lisp/progmodes/js.el (js--flatten-list):
      * lisp/lpr.el (lpr-flatten-list):
      * lisp/gnus/message.el (message-flatten-list):
      * lisp/eshell/esh-util.el (eshell-flatten-list):
      Obsolete in favor of Emacs-wide `flatten-tree'.
      
      * lisp/subr.el (flatten-list): Alias to `flatten-tree' for
      discoverability.
      
      * lisp/subr.el (flatten-tree): New defun.
      
      * test/lisp/subr-tests.el (subr-tests-flatten-tree): New test.
      36b05dc8
    • Michael Albinus's avatar
      Reduce autoloaded objects in Tramp · 3e9ecaec
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-program)
      (tramp-adb-connect-if-not-connected, tramp-adb-prompt):
      Remove autoload cookie.
      
      * lisp/net/tramp-cache.el (tramp-connection-properties)
      (tramp-persistency-file-name): Remove autoload cookie.
      
      * lisp/net/tramp-ftp.el (tramp-ftp-enable-ange-ftp):
      Use `tramp-autoload' cookie.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-zeroconf-domain):
      Remove autoload cookie.
      
      * lisp/net/tramp-rclone.el (tramp-rclone-program): Remove autoload
      cookie.
      (tramp-set-completion-function): Use `tramp--with-startup'.
      
      * lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
      (tramp-copy-size-limit, tramp-histfile-override)
      (tramp-use-ssh-controlmaster-options, tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args):
      Remove autoload cookie.
      (tramp-stat-marker, tramp-stat-quoted-marker): Move to tramp.el.
      
      * lisp/net/tramp-smb.el (tramp-smb-program)
      (tramp-smb-acl-program, tramp-smb-conf)
      (tramp-smb-winexe-program, tramp-smb-winexe-shell-command)
      (tramp-smb-winexe-shell-command-switch): Remove autoload cookie.
      
      * lisp/net/tramp-sudoedit.el (server, tramp-sh): Do not require.
      
      * lisp/net/tramp.el (tramp--startup-hook): Define.
      (tramp-stat-marker, tramp-stat-quoted-marker): New defconsts,
      taken from tramp-sh.el.
      
      * test/lisp/net/tramp-archive-tests.el (tramp-copy-size-limit)
      (tramp-persistency-file-name): Declare.
      
      * test/lisp/net/tramp-tests.el (tramp-connection-properties)
      (tramp-display-escape-sequence-regexp)
      (tramp-inline-compress-start-size, tramp-remote-path): Declare.
      3e9ecaec
  18. 16 Dec, 2018 2 commits
    • Michael Albinus's avatar
      Add Tramp sudoedit method · e8199e76
      Michael Albinus authored
      * doc/misc/tramp.texi (Quick Start Guide): New section "Using sudoedit".
      (External methods) <sudoedit>: Describe.
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Add handler.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-uid-gid): Rename from
      `tramp-sh-handle-set-file-uid-gid'.  Handle only remote file names.
      
      * lisp/net/tramp-sudoedit.el: New file.
      
      * lisp/net/tramp.el (tramp-file-name-for-operation): Handle also
      `tramp-set-file-uid-gid'.
      (tramp-set-file-uid-gid): New defun.
      (tramp-get-local-uid, tramp-get-local-gid): Cache result.
      
      * test/lisp/net/tramp-tests.el (tramp--test-sudoedit-p): New defun.
      (tramp-test20-file-modes, tramp-test22-file-times)
      (tramp--test-sudoedit-p): Use it.
      e8199e76
    • Glenn Morris's avatar
      Expect two epg tests to fail on hydra · 61dbe6ba
      Glenn Morris authored
      * test/lisp/epg-tests.el (epg-decrypt-1, epg-roundtrip-1):
      These currently fail for unknown reasons on hydra.nixos.org.
      61dbe6ba
  19. 15 Dec, 2018 3 commits