1. 01 Sep, 2015 1 commit
    • Michael Albinus's avatar
      Some Tramp password fixes · 447e5890
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-clear-passwd): Clear also the passwords
      of the hops.
      
      * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Move "-p" "Password:"
      at the beginning of the command.  Otherwise, it could be
      interpreted as password prompt if the remote host echoes the
      command.
      (tramp-remote-coding-commands): Add "openssl enc -base64".
      447e5890
  2. 30 Aug, 2015 1 commit
  3. 26 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Go back to grave quoting in Tramp · b12cfbfd
      Paul Eggert authored
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-gw.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el:
      * lisp/net/tramp.el:
      Stick with grave quoting in diagnostics strings.  This is more
      portable to older Emacs, desirable for Tramp.
      * lisp/net/tramp-cache.el: Use ‘format-message’, not ‘format’,
      for diagnostic that needs requoting.
      * lisp/net/tramp-compat.el (format-message):
      Fall back on simple ‘format’, since that’s good enough now.
      b12cfbfd
  4. 25 Aug, 2015 3 commits
    • Michael Albinus's avatar
      * lisp/net/tramp-sh.el (tramp-awk-encode, tramp-awk-decode) · 46709093
      Michael Albinus authored
      (tramp-awk-coding-test): New defconsts.
      (tramp-remote-coding-commands): Use them.
      (tramp-find-inline-encoding): Check for Perl only if necessary.
      46709093
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      (math-read-math-subscr):
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      (calc-read-parse-table-part):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      (filesets-update-pre010505):
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      (gnus-agent-fetch-headers):
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      (gnus-registry--split-fancy-with-parent-internal):
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      (org-babel-goto-named-result):
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      (org-clock-resolve):
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      (org-mouse-context-menu):
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      (flymake-start-syntax-check-process):
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
      875a5d0e
    • Paul Eggert's avatar
      Tramp diagnostics as per ‘text-quoting-style’ · 7b5290da
      Paul Eggert authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename)
      (tramp-adb-get-ls-command, tramp-adb-handle-make-directory)
      (tramp-adb-handle-delete-directory)
      (tramp-adb-handle-delete-file)
      (tramp-adb-handle-file-local-copy)
      (tramp-adb-handle-write-region, tramp-adb-handle-copy-file)
      (tramp-adb-send-command-and-check, tramp-adb-wait-for-output)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory)
      (tramp-compat-octal-to-decimal)
      (tramp-compat-coding-system-change-eol-conversion):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
      (tramp-gvfs-do-copy-or-rename-file)
      (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file)
      (tramp-gvfs-handle-expand-file-name)
      (tramp-gvfs-handle-file-local-copy)
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-handle-make-directory)
      (tramp-gvfs-handle-write-region, tramp-gvfs-url-file-name):
      * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-set-visited-file-modtime)
      (tramp-sh-handle-set-file-modes)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-add-name-to-file, tramp-do-copy-or-rename-file)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-make-directory)
      (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
      (tramp-sh-handle-insert-directory, tramp-process-sentinel)
      (tramp-sh-handle-start-file-process)
      (tramp-sh-handle-file-local-copy)
      (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
      (tramp-sh-handle-file-notify-add-watch, tramp-maybe-send-script)
      (tramp-find-file-exists-command, tramp-open-shell)
      (tramp-find-shell)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-find-inline-encoding, tramp-find-inline-compress)
      (tramp-compute-multi-hops, tramp-maybe-open-connection)
      (tramp-wait-for-output, tramp-send-command-and-check)
      (tramp-send-command-and-read, tramp-get-remote-path)
      (tramp-get-ls-command, tramp-get-ls-command-with-dired)
      (tramp-get-ls-command-with-quoting-style)
      (tramp-get-test-command, tramp-get-remote-ln)
      (tramp-get-remote-perl, tramp-get-remote-stat)
      (tramp-get-remote-readlink, tramp-get-remote-trash)
      (tramp-get-remote-touch, tramp-get-remote-gvfs-monitor-dir)
      (tramp-get-remote-inotifywait, tramp-get-remote-id)
      (tramp-get-remote-python):
      * lisp/net/tramp-smb.el (tramp-smb-errors)
      (tramp-smb-handle-add-name-to-file, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-delete-file)
      (tramp-smb-handle-file-local-copy)
      (tramp-smb-handle-make-directory)
      (tramp-smb-handle-make-directory-internal)
      (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-handle-rename-file, tramp-smb-handle-set-file-acl)
      (tramp-smb-handle-set-file-modes)
      (tramp-smb-handle-write-region, tramp-smb-get-file-entries):
      * lisp/net/tramp.el (tramp-debug-message, tramp-error)
      (tramp-process-actions):
      Generate diagnostics according to ‘text-quoting-style’, by
      using curved quotes in format strings and ‘format-message’
      when appropriate.
      * lisp/net/tramp-compat.el (format-message):
      Define a replacement, if it’s an older version of Emacs
      that doesn’t have it already.
      7b5290da
  5. 24 Aug, 2015 1 commit
    • Michael Albinus's avatar
      * lisp/net/tramp-sh.el (tramp-stat-marker, tramp-stat-quoted-marker): · 7eab29d2
      Michael Albinus authored
      New defconsts.
      (tramp-do-file-attributes-with-stat)
      (tramp-do-directory-files-and-attributes-with-stat): Use them.
      (tramp-convert-file-attributes): Remove double slashes in symlinks.
      
      * test/automated/tramp-tests.el (tramp-test18-file-attributes):
      Handle symlinks with "//" in the file name.
      7eab29d2
  6. 15 Aug, 2015 1 commit
  7. 14 Aug, 2015 2 commits
  8. 29 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Fix Tramp problems with multihops, and nc. · a53d1d32
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-get-file-property)
      (tramp-set-file-property, tramp-flush-file-property)
      (tramp-get-connection-property, tramp-set-connection-property)
      (tramp-flush-connection-property): Remove hop from vector.
      
      * lisp/net/tramp-gw.el (tramp-gw-process-filter): Ignore errors.
      
      * lisp/net/tramp-sh.el (tramp-methods) <nc>: Separate STDERR.
      (tramp-do-copy-or-rename-file-out-of-band): Increase timeout of
      netstat to 60".
      (tramp-sh-handle-start-file-process): Do not show hops in prompt.
      
      * lisp/net/tramp.el (tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-directory, tramp-handle-file-remote-p):
      Keep hop in result.
      
      * test/automated/tramp-tests.el (tramp-test02-file-name-dissect):
      Add hop tests.
      a53d1d32
  9. 23 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Fix some Tramp problems with HP-UX · 8e03731c
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
      Add "tab0" to stty call.
      
      * test/automated/tramp-tests.el (tramp-persistency-file-name):
      Set to nil.
      (tramp--test-hpux-p): New defun.
      (tramp--test-utf8): Use it.
      8e03731c
  10. 22 Jul, 2015 1 commit
  11. 21 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp repository · b0dbf4c0
      Michael Albinus authored
      * doc/misc/tramp.texi (Configuration): Note, that Tramp must be
      required prior changing its configuration.
      (Connection caching, Predefined connection information)
      (Remote shell setup): Fix typos.
      (Predefined connection information): Describe, how to overwrite
      parameters of `tramp-methods'.
      (Remote programs, Remote processes, Traces and Profiles):
      Simplify example.
      (Remote programs): Remove superfluous comment.
      
      * doc/misc/trampver.texi: Update release number.
      
      * lisp/net/tramp-cache.el (tramp-connection-properties): Adapt docstring.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun.
      (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it.
      (tramp-gvfs-handle-make-directory): Reimplement PARENTS handling,
      "gvfs-mkdir -p ..." does not work robust.
      (tramp-gvfs-maybe-open-connection): Adapt `tramp-get-method-parameter' call.
      
      * lisp/net/tramp-sh.el (tramp-methods):
      Add `tramp-remote-shell-login' parameter where it fits.
      (tramp-get-remote-path): Use it.
      (tramp-make-copy-program-file-name): Fix quoting for "psftp" method.
      (all): Adapt `tramp-get-method-parameter' calls.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-get-method-parameter): Replace argument METHOD by VEC.
      Check also for hits in `tramp-connection-properties'.  Adapt docstring.
      (tramp-get-remote-tmpdir): Cache only the local name of tmpdir.
      (all): Adapt `tramp-get-method-parameter' calls.
      
      * lisp/net/trampver.el Update release number.
      
      * test/automated/tramp-tests.el (tramp--instrument-test-case):
      Add "^make-symbolic-link not supported$" to `debug-ignored-errors'.
      (tramp-test13-make-directory, tramp--test-adb-p)
      (tramp--test-smb-or-windows-nt-p): Simplify.
      (tramp--test-ftp-p, tramp--test-gvfs-p): New defuns.
      (tramp--test-special-characters): Fix docstring.  Add gvfs and ftp tests.
      (tramp--test-utf8): Fix docstring.
      b0dbf4c0
  12. 01 Jun, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp repository · e3a0f3da
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-message): Dump connection buffer error
      messages.
      (tramp-handle-make-auto-save-file-name): When calling
      `make-auto-save-file-name' internally, make sure it uses Unix-like
      behavior, not Windows-like behavior.
      
      * lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Add a timeout for
      the local case, because "chown" might fail on w32.
      
      * lisp/net/trampver.el (tramp-repository-get-version): Don't run
      for XEmacs.
      e3a0f3da
  13. 31 May, 2015 1 commit
  14. 29 May, 2015 1 commit
    • Michael Albinus's avatar
      Improve Tramp traces. · 0a539105
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-call-process-region): New defun.
      
      * lisp/net/tramp-sh.el (tramp-get-inline-coding): Use it.
      0a539105
  15. 26 May, 2015 1 commit
    • Michael Albinus's avatar
      Fix Bug#20621 · f43306ae
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-set-auto-save): Remove it.  There
      are major modes which set `auto-save-mode' on their own rules;
      Tramp shall not overwrite such settings.
      
      Fixes: debbugs:20621
      f43306ae
  16. 25 May, 2015 4 commits
  17. 21 May, 2015 1 commit
  18. 09 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Stop messing with the EMACS env var · beaab898
      Stefan Monnier authored
      Fixes: debbugs:20202
      
      * lisp/net/tramp-sh.el (tramp-remote-process-environment):
      * lisp/comint.el (comint-exec-1):
      * lisp/term.el (term-exec-1): Don't set EMACS envvar.
      * lisp/progmodes/compile.el (compilation-start): Same and bring
      INSIDE_EMACS's format in line with other users.
      beaab898
  19. 24 Mar, 2015 1 commit
    • Michael Albinus's avatar
      Improve special char handling in Tramp · 444975fa
      Michael Albinus authored
      * net/tramp-sh.el (tramp-do-file-attributes-with-ls)
      (tramp-do-file-attributes-with-stat): Quote file names in output.
      (tramp-do-directory-files-and-attributes-with-stat): Use "//" as marker.
      444975fa
  20. 18 Mar, 2015 1 commit
  21. 17 Mar, 2015 2 commits
  22. 15 Mar, 2015 1 commit
    • Michael Albinus's avatar
      In Tramp. check ssh Control* options only when needed · 28caedba
      Michael Albinus authored
      Fixes: debbugs:20015
      
      * net/tramp-adb.el:
      * net/tramp-gvfs.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Set tramp-autoload cookie for all defcustoms.
      
      * net/tramp-sh.el (tramp-use-ssh-controlmaster-options):
      New defcustom, moved from tramp.el.
      (tramp-ssh-controlmaster-options): New defvar, moved from tramp.el
      but with a nil initial value.
      (tramp-ssh-controlmaster-options): New defun.
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection): Use it.
      
      * net/tramp.el (tramp-ssh-controlmaster-options)
      (tramp-use-ssh-controlmaster-options): Move them to tramp-sh.el.
      (tramp-default-method): Do not check for
      `tramp-ssh-controlmaster-options'.
      28caedba
  23. 10 Mar, 2015 1 commit
  24. 04 Mar, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp upstream. · 8ac08792
      Michael Albinus authored
      * net/tramp-cache.el (tramp-dump-connection-properties):
      Use `with-temp-file'.
      
      * net/tramp-sh.el (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes): Escape apostrophs in
      file names.
      (tramp-do-file-attributes-with-stat): Quote file name.
      (tramp-sh-handle-directory-files-and-attributes): Fall back to
      `tramp-handle-directory-files-and-attributes' in case of problems.
      (tramp-do-directory-files-and-attributes-with-stat)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-delete-directory)
      (tramp-sh-handle-expand-file-name, tramp-sh-handle-process-file):
      Normalize use of "cd".
      (tramp-do-directory-files-and-attributes-with-stat): Use the
      `quoting-style' arg of `ls' if possible.  Make it also working for
      file names with apostrophs.
      (tramp-sh-handle-file-name-all-completions): Use arguments of `ls'
      in proper order.
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-sh-handle-file-local-copy): Use `with-temp-file'.
      (tramp-get-remote-locale): Accept also \r in output.
      (tramp-get-ls-command-with-quoting-style): New defun.
      (tramp-get-inline-coding): Set `default-directory' to a local
      directory.  Sporadically, `call-process-region' does not handle a
      remote default directory properly.
      
      * net/tramp.el (tramp): Add :link property.
      (tramp-login-prompt-regexp): Allow also "user", as required by
      Fritz!Box telnet.
      (tramp-autoload-file-name-handler): Use "/".
      (tramp-handle-unhandled-file-name-directory): Return nil when
      required by the spec.
      
      * net/trampver.el: Update release number.
      8ac08792
  25. 15 Feb, 2015 2 commits
  26. 09 Feb, 2015 1 commit
    • Paul Eggert's avatar
      Port to platforms lacking test -a and -o · 5c20aa74
      Paul Eggert authored
      * configure.ac (HAVE_LIBXML2):
      * lisp/Makefile.in (compile-clean):
      * lisp/net/tramp-sh.el (tramp-find-executable):
      Prefer '&&' and '||' to 'test -a' and 'test -o'.
      5c20aa74
  27. 03 Feb, 2015 1 commit
  28. 02 Feb, 2015 4 commits
  29. 01 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Fix copyright years by hand · 52a4e87c
      Paul Eggert authored
      These are dates that admin/update-copyright did not update, or
      updated incorrectly.  Also, back out the copyright-date change to
      doc/misc/texinfo.tex, as upstream hasn't updated that date yet.
      52a4e87c