1. 24 Sep, 2018 1 commit
    • Paul Eggert's avatar
      file-attributes cleanup · 662bee7d
      Paul Eggert authored
      Mostly, this replaces magic-number calls like (nth 4 A) with
      more-informative calls like (file-attribute-access-time A).
      It also fixes some documentation and minor timestamp coding
      issues that I noticed while looking into this.
      * doc/lispref/files.texi (File Attributes):
      * lisp/files.el (file-attribute-size)
      (file-attribute-inode-number, file-attribute-device-number):
      * src/dired.c (Fdirectory_files_and_attributes)
      (Ffile_attributes):
      Mention which attributes must be integers, or nonnegative integers,
      as opposed to merely being numbers.  Remove no-longer-correct
      talk about representing large integers as conses of integers.
      * doc/lispref/files.texi (Magic File Names):
      * doc/misc/gnus.texi (Low-level interface to the spam-stat dictionary):
      * lisp/autorevert.el (auto-revert-find-file-function)
      (auto-revert-tail-mode, auto-revert-handler):
      * lisp/auth-source.el (auth-source-netrc-parse):
      * lisp/cedet/ede/files.el (ede--inode-for-dir):
      * lisp/cedet/semantic/db-file.el (object-write):
      * lisp/cedet/semantic/db-mode.el (semanticdb-kill-hook):
      * lisp/cedet/semantic/db.el (semanticdb-needs-refresh-p)
      (semanticdb-synchronize):
      * lisp/cedet/srecode/table.el (srecode-mode-table-new):
      * lisp/desktop.el (desktop-save, desktop-read):
      * lisp/dired-aux.el (dired-file-set-difference)
      (dired-do-chxxx, dired-do-chmod, dired-copy-file-recursive)
      (dired-create-files):
      * lisp/dired.el (dired-directory-changed-p, dired-readin):
      * lisp/dos-w32.el (w32-direct-print-region-helper):
      * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads)
      (autoload-find-destination, update-directory-autoloads):
      * lisp/emacs-lisp/shadow.el (load-path-shadows-same-file-or-nonexistent):
      * lisp/epg.el (epg--start, epg-wait-for-completion):
      * lisp/eshell/em-ls.el (eshell-ls-filetype-p)
      (eshell-ls-applicable, eshell-ls-size-string)
      (eshell-ls-file, eshell-ls-dir, eshell-ls-files)
      (eshell-ls-entries):
      * lisp/eshell/em-pred.el (eshell-predicate-alist)
      (eshell-pred-file-type, eshell-pred-file-links)
      (eshell-pred-file-size):
      * lisp/eshell/em-unix.el (eshell-shuffle-files, eshell/cat)
      (eshell-du-sum-directory, eshell/du):
      * lisp/eshell/esh-util.el (eshell-read-passwd)
      (eshell-read-hosts):
      * lisp/files.el (remote-file-name-inhibit-cache)
      (find-file-noselect, insert-file-1, dir-locals-find-file)
      (dir-locals-read-from-dir, backup-buffer)
      (file-ownership-preserved-p, copy-directory)
      (read-file-modes):
      * lisp/find-lisp.el (find-lisp-format):
      * lisp/gnus/gnus-agent.el (gnus-agent-unfetch-articles)
      (gnus-agent-read-agentview, gnus-agent-expire-group-1)
      (gnus-agent-request-article, gnus-agent-regenerate-group)
      (gnus-agent-update-files-total-fetched-for)
      (gnus-agent-update-view-total-fetched-for):
      * lisp/gnus/gnus-cache.el (gnus-cache-read-active)
      (gnus-cache-update-file-total-fetched-for)
      (gnus-cache-update-overview-total-fetched-for):
      * lisp/gnus/gnus-cloud.el (gnus-cloud-file-new-p):
      * lisp/gnus/gnus-score.el (gnus-score-score-files):
      * lisp/gnus/gnus-start.el (gnus-save-newsrc-file)
      (gnus-master-read-slave-newsrc):
      * lisp/gnus/gnus-sum.el (gnus-summary-import-article):
      * lisp/gnus/gnus-util.el (gnus-file-newer-than)
      (gnus-cache-file-contents):
      * lisp/gnus/mail-source.el (mail-source-delete-old-incoming)
      (mail-source-callback, mail-source-movemail):
      * lisp/gnus/nneething.el (nneething-create-mapping)
      (nneething-make-head):
      * lisp/gnus/nnfolder.el (nnfolder-read-folder):
      * lisp/gnus/nnheader.el (nnheader-file-size)
      (nnheader-insert-nov-file):
      * lisp/gnus/nnmail.el (nnmail-activate):
      * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum)
      (nnmaildir--new-number, nnmaildir--update-nov)
      (nnmaildir--scan, nnmaildir-request-scan)
      (nnmaildir-request-update-info)
      (nnmaildir-request-expire-articles):
      * lisp/gnus/nnmh.el (nnmh-request-list-1)
      (nnmh-request-expire-articles, nnmh-update-gnus-unreads):
      * lisp/gnus/nnml.el (nnml-request-expire-articles):
      * lisp/gnus/spam-stat.el (spam-stat-save, spam-stat-load)
      (spam-stat-process-directory, spam-stat-test-directory):
      * lisp/ido.el (ido-directory-too-big-p)
      (ido-file-name-all-completions):
      * lisp/image-dired.el (image-dired-get-thumbnail-image)
      (image-dired-create-thumb-1):
      * lisp/info.el (info-insert-file-contents):
      * lisp/ls-lisp.el (ls-lisp-insert-directory)
      (ls-lisp-handle-switches, ls-lisp-classify-file)
      (ls-lisp-format):
      * lisp/mail/blessmail.el:
      * lisp/mail/feedmail.el (feedmail-default-date-generator)
      (feedmail-default-message-id-generator):
      * lisp/mail/mailabbrev.el (mail-abbrevs-sync-aliases)
      (mail-abbrevs-setup):
      * lisp/mail/mspools.el (mspools-size-folder):
      * lisp/mail/rmail.el (rmail-insert-inbox-text):
      * lisp/mail/sendmail.el (sendmail-sync-aliases):
      * lisp/mh-e/mh-alias.el (mh-alias-tstamp):
      * lisp/net/ange-ftp.el (ange-ftp-parse-netrc)
      (ange-ftp-write-region, ange-ftp-file-newer-than-file-p)
      (ange-ftp-cf1):
      * lisp/net/eudcb-mab.el (eudc-mab-query-internal):
      * lisp/net/eww.el (eww-read-bookmarks):
      * lisp/net/netrc.el (netrc-parse):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/nxml/rng-loc.el (rng-get-parsed-schema-locating-file):
      * lisp/obsolete/fast-lock.el (fast-lock-save-cache):
      * lisp/obsolete/vc-arch.el (vc-arch-state)
      (vc-arch-diff3-rej-p):
      * lisp/org/ob-eval.el (org-babel--shell-command-on-region):
      * lisp/org/org-attach.el (org-attach-commit):
      * lisp/org/org-macro.el (org-macro-initialize-templates):
      * lisp/org/org.el (org-babel-load-file)
      (org-file-newer-than-p):
      * lisp/org/ox-html.el (org-html-format-spec):
      * lisp/org/ox-publish.el (org-publish-find-date)
      (org-publish-cache-ctime-of-src):
      * lisp/pcmpl-gnu.el (pcomplete/tar):
      * lisp/pcmpl-rpm.el (pcmpl-rpm-packages):
      * lisp/play/cookie1.el (cookie-snarf):
      * lisp/progmodes/cmacexp.el (c-macro-expansion):
      * lisp/ps-bdf.el (bdf-file-mod-time):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/simple.el (shell-command-on-region):
      * lisp/speedbar.el (speedbar-item-info-file-helper)
      (speedbar-check-obj-this-line):
      * lisp/thumbs.el (thumbs-cleanup-thumbsdir):
      * lisp/time.el (display-time-mail-check-directory)
      (display-time-file-nonempty-p):
      * lisp/url/url-cache.el (url-is-cached):
      * lisp/url/url-file.el (url-file-asynch-callback):
      * lisp/vc/diff-mode.el (diff-delete-if-empty):
      * lisp/vc/pcvs-info.el (cvs-fileinfo-from-entries):
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      * lisp/vc/vc-cvs.el (vc-cvs-checkout-model)
      (vc-cvs-state-heuristic, vc-cvs-merge-news)
      (vc-cvs-retrieve-tag, vc-cvs-parse-status, vc-cvs-parse-entry):
      * lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1)
      (vc-hg--ignore-patterns-valid-p)
      (vc-hg--cached-dirstate-search, vc-hg-state-fast):
      * lisp/vc/vc-hooks.el (vc-after-save):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      * lisp/vc/vc-svn.el (vc-svn-merge-news, vc-svn-parse-status):
      * lisp/vc/vc.el (vc-checkout, vc-checkin, vc-revert-file):
      * lisp/xdg.el (xdg-mime-apps):
      Prefer (file-attribute-size A) to (nth 7 A), and similarly
      for other file attributes accessors.
      * doc/lispref/files.texi (File Attributes):
      * doc/lispref/intro.texi (Version Info):
      * doc/lispref/os.texi (Idle Timers):
      * lisp/erc/erc.el (erc-string-to-emacs-time):
      * lisp/files.el (file-attribute-access-time)
      (file-attribute-modification-time)
      (file-attribute-status-change-time):
      * lisp/net/tramp-compat.el:
      (tramp-compat-file-attribute-modification-time)
      (tramp-compat-file-attribute-size):
      * src/buffer.c (syms_of_buffer):
      * src/editfns.c (Fget_internal_run_time):
      * src/fileio.c (Fvisited_file_modtime)
      (Fset_visited_file_modtime):
      * src/keyboard.c (Fcurrent_idle_time):
      * src/process.c (Fprocess_attributes):
      Defer implementation details about timestamp format to the
      section that talks about timestamp format, to make it easier
      to change the documentation later if timestamp formats are
      extended.
      * lisp/gnus/gnus-util.el (gnus-file-newer-than):
      * lisp/speedbar.el (speedbar-check-obj-this-line):
      * lisp/vc/vc-rcs.el (vc-rcs-workfile-is-newer):
      Prefer time-less-p to doing it by hand.
      * lisp/ls-lisp.el (ls-lisp-format): Inode numbers are no longer conses.
      * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic):
      Use eql, not eq, to compare integers that might be bignums.
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      Prefer float-time to doing time arithmetic by hand.
      662bee7d
  2. 20 Jun, 2018 1 commit
    • Michael Albinus's avatar
      Implement command completion in remote shells. (Bug#31704) · 6f649e77
      Michael Albinus authored
      * doc/lispref/files.texi (Locating Files): Describe optional
      argument REMOTE of `executable-find'.
      (Magic File Names): Add `exec-path'.
      
      * doc/lispref/processes.texi (Subprocess Creation): Describe
      function `exec-path'.
      
      * doc/misc/tramp.texi (Remote programs): Explain refresh of search
      paths by `tramp-cleanup-this-connection'.
      
      * etc/NEWS: Mention 'exec-path' and 'executable-find'.
      
      * lisp/files.el (exec-path): New defun.
      (executable-find): Add optional argument REMOTE.
      
      * lisp/shell.el (shell-completion-vars): Set `comint-file-name-prefix'.
      (shell--command-completion-data): Use `(exec-path)'.  (Bug#31704)
      
      * lisp/net/ange-ftp.el (exec-path):
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-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)
      <exec-path>: Add handler.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-exec-path): New defun.
      (tramp-adb-maybe-open-connection): Do not set "remote-path"
      connection property.
      
      * lisp/net/tramp-compat.el (tramp-compat-exec-path): New defun.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-exec-path): New defun.
      
      * lisp/net/tramp.el (tramp-eshell-directory-change): Use it.
      
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test38-make-nearby-temp-file)
      (tramp-archive-test41-file-system-info)
      (tramp-archive-test43-auto-load)
      (tramp-archive-test43-delay-load): Rename.
      
      * test/lisp/net/tramp-tests.el (tramp-test34-exec-path): New test.
      (tramp-test36-make-auto-save-file-name)
      (tramp-test37-find-backup-file-name)
      (tramp-test38-make-nearby-temp-file)
      (tramp-test39-special-characters)
      (tramp-test39-special-characters-with-stat)
      (tramp-test39-special-characters-with-perl)
      (tramp-test39-special-characters-with-ls, tramp-test40-utf8)
      (tramp-test40-utf8-with-stat, tramp-test40-utf8-with-perl)
      (tramp-test40-utf8-with-ls, tramp-test41-file-system-info)
      (tramp-test42-asynchronous-requests, tramp-test43-auto-load)
      (tramp-test43-delay-load, tramp-test43-recursive-load)
      (tramp-test43-remote-load-path, tramp-test44-unload): Rename.
      6f649e77
  3. 29 Mar, 2018 1 commit
    • Michael Albinus's avatar
      Fix Bug#30946 · b9340aad
      Michael Albinus authored
      * doc/misc/tramp.texi (Multi-hops): Mention host name checks.
      
      * lisp/net/tramp.el (tramp-set-syntax, tramp-dissect-file-name)
      (tramp-debug-message, tramp-handle-shell-command):
      * lisp/net/tramp-adb.el (tramp-adb-handle-shell-command):
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler)
      (tramp-archive-dissect-file-name):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.
      
      * lisp/net/tramp-compat.el (tramp-compat-user-error): Move defsubst ---
      
      * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check for proper
      host names in multi-hop.  (Bug#30946)
      
      * lisp/net/tramp.el (tramp-user-error): ... here.  Make it a defun.
      
      * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules):
      New test.
      b9340aad
  4. 24 Jan, 2018 1 commit
  5. 01 Jan, 2018 1 commit
  6. 09 Dec, 2017 2 commits
    • Michael Albinus's avatar
      Support for archive file names · d338325c
      Michael Albinus authored
      * doc/misc/tramp.texi (Top, Usage): Add entry "Archive file names".
      (History): Mention archive file names.
      (GVFS based methods): Mentio "http" and "https" methods.
      (Archive file names): New node.
      (Frequently Asked Questions): Add Emacs 27 as supported version.
      
      * etc/NEWS: Mention tramp-archive.el.
      
      * lisp/net/tramp.el (tramp-run-real-handler)
      (tramp-register-file-name-handlers)
      (tramp-register-file-name-handlers, tramp-unload-file-name-handlers):
      Add `tramp-archive-file-name-handler'.
      (tramp-handle-file-name-completion): Do not insist in Tramp
      file names.
      
      * lisp/net/tramp-archive.el: New package.
      
      * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Check for
      "archive" method.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-all-connections): Cleanup also
      local copies of archives.
      
      * lisp/net/tramp-compat.el (tramp-compat-use-url-tramp-p): New defconst.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "http" and "https".
      (tramp-gvfs-gio-mapping): Add "gvfs-mount".
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
      Handle "uri" and "http".
      (tramp-gvfs-unmount): New defun.
      
      * test/lisp/net/tramp-archive-tests.el: New package.
      d338325c
    • Michael Albinus's avatar
      Fix Bug#29579 · 9d9cbafc
      Michael Albinus authored
      * lisp/files.el (file-name-non-special):
      Inhibit `file-name-handler-alist' only for some operations.
      Add missing operations.  (Bug#29579)
      
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quote):
      Do not quote if it is quoted already.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Use `copy-tree' but `copy-sequence'.
      
      * lisp/net/tramp.el (tramp-handle-file-truename): Handle several
      trailing slashes correctly.
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file, tramp-test24-file-acl)
      (tramp-test25-file-selinux, tramp--test-check-files):
      Handle also quoted file names.
      (tramp-test21-file-links): Fix file name quoting test.
      (tramp-test24-file-acl): Be more robust for "smb" method.
      (tramp-test35-make-auto-save-file-name): Enable hidden test cases.
      9d9cbafc
  7. 06 Dec, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#29579 · a1bbc490
      Michael Albinus authored
      * lisp/files.el (file-name-non-special):
      Inhibit `file-name-handler-alist' only for some operations.
      Add missing operations.  (Bug#29579)
      
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quote):
      Do not quote if it is quoted already.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Use `copy-tree' but `copy-sequence'.
      
      * lisp/net/tramp.el (tramp-handle-file-truename): Handle several
      trailing slashes correctly.
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file, tramp-test24-file-acl)
      (tramp-test25-file-selinux, tramp--test-check-files):
      Handle also quoted file names.
      (tramp-test21-file-links): Fix file name quoting test.
      (tramp-test24-file-acl): Be more robust for "smb" method.
      (tramp-test35-make-auto-save-file-name): Enable hidden test cases.
      a1bbc490
  8. 23 Oct, 2017 1 commit
  9. 17 Sep, 2017 1 commit
    • Michael Albinus's avatar
      Fix compatibility problem in Tramp · 57249fb2
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-interrupt-process): Better error handling.
      
      * lisp/net/tramp-compat.el (default-toplevel-value): Move up.
      (top): Do not call `tramp-change-syntax' anymore.
      (tramp-compat-directory-name-p): New defalias.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file): Use it.
      
      * test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process):
      Modify test.
      57249fb2
  10. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  11. 22 Aug, 2017 1 commit
    • Michael Albinus's avatar
      Test `file-expand-wildcards' for Tramp · 336707ef
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-advice-file-expand-wildcards):
      Remove, not needed anymore.
      
      * test/lisp/net/tramp-tests.el (top): Require seq.el.
      (tramp-test16-directory-files): Simplify.
      (tramp-test16-file-expand-wildcards): New test.
      (tramp-test28-interrupt-process): Skip for older Emacsen.
      336707ef
  12. 29 Jun, 2017 1 commit
    • Michael Albinus's avatar
      Improve timer handling when Tramp accepts output · 138447c3
      Michael Albinus authored
      * lisp/net/tramp-compat.el: Avoid compiler warning.
      
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler):
      Remove lock machinery.
      
      * lisp/net/tramp.el (tramp-locked, tramp-locker): Move up.
      (tramp-file-name-handler): Add lock machinery from
      `tramp-sh-file-name-handler'.  Allow timers to run.
      (tramp-accept-process-output): Remove nasty workaround.
      Suppress timers.
      
      * test/lisp/net/tramp-tests.el (shell-command-sentinel):
      Suppress run in tests.
      (tramp--instrument-test-case-p): New defvar.
      (tramp--instrument-test-case): Use it in order to allow nested calls.
      (tramp--test-message, tramp--test-backtrace): New defsubst,
      will be used for occasional test instrumentation.
      (tramp-test00-availability, tramp-test31-vc-registered): Use them.
      (tramp-test28-shell-command)
      (tramp--test-shell-command-to-string-asynchronously): Suppress
      nasty messages.  Don't overwrite sentinel.
      (tramp-test36-asynchronous-requests): Rewrite major parts.
      Expect :passed.
      138447c3
  13. 26 May, 2017 1 commit
    • Michael Albinus's avatar
      Remove Emacs 23 compat code from Tramp · b3032988
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote processes): Don't mention
      Emacs 24 explicitely.
      (Frequently Asked Questions): Remove Emacs 23 from
      compatibility list.
      
      * lisp/net/tramp.el:
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el: Replace compat function calls.
      
      * lisp/net/tramp-compat.el (remote-file-name-inhibit-cache)
      (tramp-compat-condition-case-unless-debug)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-process-live-p): Remove them.
      
      * lisp/net/trampver.el: Make version check fit for Emacs 24.
      b3032988
  14. 25 May, 2017 1 commit
    • Michael Albinus's avatar
      Switch Tramp to cl-lib · 1a9ce7c5
      Michael Albinus authored
      * lisp/net/tramp-compat.el (cl-lib): Require it rather than cl.
      
      * lisp/net/tramp-ftp.el: Don't require cl.
      
      * lisp/net/tramp-gvfs.el: Don't require cl.
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p): Use `cl-*' macros.
      
      * lisp/net/tramp-sh.el: Don't require cl.
      (tramp-set-file-uid-gid): Use `shell-quote-argument'.
      (tramp-sh-gvfs-monitor-dir-process-filter)
      (tramp-sh-inotifywait-process-filter): Use `cl-*' macros.
      
      * lisp/net/tramp-smb.el: Don't require cl.
      (tramp-smb-read-file-entry): Use `cl-*' macros.
      
      * lisp/net/tramp.el (cl-lib): Require it rather than cl.
      (tramp-parse-file, tramp-parse-shostkeys-sknownhosts)
      (tramp-parse-passwd, tramp-parse-etc-group)
      (tramp-parse-putty): Use `cl-*' macros.
      1a9ce7c5
  15. 12 May, 2017 1 commit
    • Michael Albinus's avatar
      Make Tramp backward compatible · afd8c762
      Michael Albinus authored
      * lisp/net/tramp-cmds.el (tramp-change-syntax):
      Set tramp-autoload cookie.
      
      * lisp/net/tramp-compat.el: Run `tramp-change-syntax' at
      startup, if necessary.
      
      * lisp/net/tramp.el (tramp-syntax): Use `tramp-compat-user-error'.
      (tramp-register-autoload-file-name-handlers): Do not mark
      `operations' for `tramp-file-name-handler'.
      (tramp-register-file-name-handlers): Remove also
      `tramp-autoload-file-name-handler' for backward compatibility.
      (tramp-register-foreign-file-name-handler): Use `delete-dups'.
      
      * test/lisp/net/tramp-tests.el (tramp-change-syntax): Declare.
      afd8c762
  16. 08 May, 2017 1 commit
    • Michael Albinus's avatar
      Handle `write-region' messages in Tramp properly · 73e3ed48
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-write-region-message): New defsubst.
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Use it.
      
      * lisp/net/tramp.el (tramp-password-prompt-regexp)
      (tramp-completion-mode-p):
      * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable)
      (tramp-append-tramp-buffers):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      Use `bound-and-true-p'.
      
      * lisp/net/tramp-compat.el (tramp-compat-delete-file):
      Don't check for `boundp' anymore.
      
      * test/lisp/net/tramp-tests.el (ert-x): Require it.
      (tramp--test-messages): New defvar.
      (tramp-test10-write-region): Extend test.
      73e3ed48
  17. 08 Apr, 2017 1 commit
    • Michael Albinus's avatar
      Tune Tramp syntax · b7d61609
      Michael Albinus authored
      * lisp/net/tramp-cmds.el (tramp-change-syntax):
      Use `tramp-syntax-values'.
      
      * lisp/net/tramp-compat.el (tramp-compat-tramp-syntax): New defsubst.
      
      * lisp/net/tramp.el (tramp-syntax): Rename possible values.
      (tramp-syntax-values): New defun.
      (tramp-prefix-format, tramp-method-regexp)
      (tramp-postfix-method-format, tramp-prefix-ipv6-format)
      (tramp-postfix-ipv6-format, tramp-postfix-host-format)
      (tramp-completion-file-name-regexp): Use `tramp-compat-tramp-syntax'
      and changed values.
      (tramp-completion-file-name-regexp-default): Rename from
      `tramp-completion-file-name-regexp-unified'.  Adapt docstring.
      (tramp-completion-file-name-regexp-simplified): Rename from
      `tramp-completion-file-name-regexp-old-style'.  Adapt docstring.
      (tramp-initial-completion-file-name-regexp):
      Use `tramp-completion-file-name-regexp-default'.
      (tramp-run-real-handler): Do not autoload any longer.
      b7d61609
  18. 23 Mar, 2017 1 commit
    • Michael Albinus's avatar
      Use lexical-bind in Tramp · e1392faa
      Michael Albinus authored
      * lisp/net/tramp*.el: Add lexical-binding cookie.  Move declarations up.
      
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `push'
      rather than `add-to-list'.
      (tramp-adb-get-device): Remove unused variable.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): Remove unused
      variable.
      
      * lisp/net/tramp.el (auto-save-file-name-transforms): Declare.
      (tramp-find-file-name-coding-system-alist): Use `push' rather
      than `add-to-list'.
      
      * test/lisp/net/tramp-tests.el: Add lexical-binding cookie.
      Require 'dired.  Move declarations up.
      (tramp-test32-make-nearby-temp-file): Wrap `make-nearby-temp-file'
      and `temporary-file-directory' calls with `with-no-warnings'.
      (tramp-test35-asynchronous-requests): Mark unused variable.
      e1392faa
  19. 01 Jan, 2017 1 commit
  20. 27 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Release Tramp 2.3.1 · aebe6592
      Michael Albinus authored
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.3.1".
      
      * lisp/net/tramp.el (tramp-eshell-directory-change): Add it to
      `eshell-mode-hook' but `eshell-first-time-mode-hook'.
      
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quoted-p)
      (tramp-compat-file-name-quote)
      (tramp-compat-file-name-unquote): Embed them in `eval-and-compile'.
      aebe6592
  21. 09 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Fix further problems with quoted file names in Tramp · fc0fd24c
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-quoted-name-p, tramp-quote-name)
      (tramp-unquote-name): Move defsubst ...
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quoted-p)
      (tramp-compat-file-name-quote)
      (tramp-compat-file-name-unquote): ... here. Adapt callees.
      
      * lisp/net/tramp-cache.el (tramp-flush-file-property)
      (tramp-flush-directory-property):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-url-file-name):
      * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-substitute-in-file-name)
      (tramp-smb-get-share, tramp-smb-get-localname): Handle quoted files.
      fc0fd24c
  22. 05 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Remove compat code in Tramp · 1b762de1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-parse-time-months): Remove.
      
      * lisp/net/tramp-compat.el (top): Require parse-time.
      
      * lisp/net/tramp-smb.el (tramp-smb-read-file-entry):
      Use `parse-time-months'.
      1b762de1
  23. 22 Oct, 2016 1 commit
    • Michael Albinus's avatar
      Fix error codes in Tramp · abd1642e
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-user-error): New defsubst,
      taken from tramp.el.
      (tramp-file-missing): New defconst.
      
      * lisp/net/tramp.el (tramp-user-error): Remove it.
      (tramp-check-proper-method-and-host)
      (tramp-dissect-file-name, tramp-debug-message)
      (tramp-handle-shell-command):
      * lisp/net/tramp-adb.el (tramp-adb-handle-shell-command):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
      Use `tramp-compat-user-error'.
      
      * lisp/net/tramp.el (tramp-handle-insert-file-contents)
      (tramp-handle-load):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
      * lisp/net/tramp-smb.el (tramp-smb-handle-file-local-copy):
      Use `tramp-file-missing'.  (Bug#24714)
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-add-name-to-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
      Use `file-already-exists'.
      abd1642e
  24. 11 Oct, 2016 1 commit
  25. 26 Sep, 2016 1 commit
  26. 30 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Use `file-attribute-*' in Tramp · 62b6c5d2
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-file-attribute-type)
      (tramp-compat-file-attribute-link-number)
      (tramp-compat-file-attribute-user-id)
      (tramp-compat-file-attribute-group-id)
      (tramp-compat-file-attribute-modification-time)
      (tramp-compat-file-attribute-size)
      (tramp-compat-file-attribute-modes): New defaliases.
      
      * lisp/net/tramp.el (tramp-handle-file-modes)
      (tramp-handle-file-newer-than-file-p)
      (tramp-handle-file-regular-p, tramp-handle-file-symlink-p)
      (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-get-local-gid, tramp-check-cached-permissions):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-directory-p)
      (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-file-directory-p)
      (tramp-gvfs-handle-write-region, tramp-gvfs-get-remote-uid)
      (tramp-gvfs-get-remote-gid):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-set-visited-file-modtime)
      (tramp-sh-handle-verify-visited-file-modtime)
      (tramp-sh-handle-file-newer-than-file-p)
      (tramp-sh-handle-file-ownership-preserved-p)
      (tramp-do-copy-or-rename-file)
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-file-local-copy)
      (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file)
      (tramp-smb-handle-file-directory-p)
      (tramp-smb-handle-file-writable-p)
      (tramp-smb-handle-insert-directory): Use them.
      62b6c5d2
  27. 29 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Use `process-live-p' in Tramp · 1d0d6d92
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-process-live-p): New defun.
      
      * lisp/net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
      (tramp-handle-file-notify-valid-p)
      (tramp-action-process-alive, tramp-action-out-of-band)
      (tramp-wait-for-regexp):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el (tramp-get-connection-property):
      * tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
      * tramp-sh.el (tramp-process-sentinel)
      (tramp-sh-handle-file-notify-add-watch)
      (tramp-maybe-open-connection):
      * lisp/net/lisp/net/lisp/net/tramp-smb.el (tramp-smb-action-with-tar)
      (tramp-smb-handle-copy-directory, tramp-smb-action-get-acl)
      (tramp-smb-handle-process-file, tramp-smb-action-set-acl)
      (tramp-smb-get-cifs-capabilities)
      (tramp-smb-get-stat-capability)
      (tramp-smb-maybe-open-connection, tramp-smb-wait-for-output)
      (tramp-smb-kill-winexe-function): Use it.
      1d0d6d92
  28. 10 Aug, 2016 1 commit
  29. 07 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Add missing dcstrings in Tramp, remove chec for obsolee methods · a7985477
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-progress-reporter-update)
      (tramp-unload-file-name-handlers, tramp-get-local-uid)
      (tramp-get-local-gid, tramp-get-local-locale):
      * lisp/net/tramp-adb.el (tramp-adb-ls-date-regexp)
      (tramp-adb-ls-toolbox-regexp, tramp-adb-get-ls-command):
      * lisp/net/tramp-compat.el (tramp-compat-funcall):
      * lisp/net/tramp-ftp.el (tramp-ftp-enable-ange-ftp):
      * lisp/net/tramp-gw.el (tramp-gw-process-filter):
      * lisp/net/tramp-sh.el (tramp-get-remote-path)
      (tramp-get-remote-locale, tramp-get-ls-command)
      (tramp-get-ls-command-with-dired)
      (tramp-get-ls-command-with-quoting-style)
      (tramp-get-ls-command-with-w-option)
      (tramp-get-test-nt-command, tramp-get-file-exists-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-uid-with-id)
      (tramp-get-remote-uid-with-perl, tramp-get-remote-python)
      (tramp-get-remote-uid-with-python, tramp-get-remote-uid)
      (tramp-get-remote-gid-with-id)
      (tramp-get-remote-gid-with-perl)
      (tramp-get-remote-gid-with-python, tramp-get-remote-gid)
      (tramp-get-env-with-u-option): Add missing docstrings.
      
      * lisp/net/tramp.el (tramp-obsolete-methods)
      (tramp-warned-obsolete-methods): Remove.
      (tramp-find-method): Do not check for obsolete methods any longer.
      a7985477
  30. 05 Jul, 2016 1 commit
    • Michael Albinus's avatar
      Make all Tramp tests pass for "gdrive" method · 1ba6f2c7
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
      * lisp/net/tramp-compat.el (tramp-compat-copy-directory)
      (tramp-compat-delete-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory):
      Use `directory-files-no-dot-files-regexp'.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-send-command): Call `tramp-flush-file-property' in
      case of problems.
      
      * test/lisp/net/tramp-tests.el (tramp--instrument-test-case):
      Adapt docstring.
      (tramp-test14-delete-directory): Make further tests.
      1ba6f2c7
  31. 09 May, 2016 1 commit
  32. 14 Jan, 2016 1 commit
    • Michael Albinus's avatar
      Remove XEmacs compatibility in Tramp · de8c5f9d
      Michael Albinus authored
      * doc/misc/tramp.texi: Replace flags by their hard coded name.
      Remove unused flags and the enclosed alternative text for XEmacs.
      
      * doc/misc/trampver.texi: Use "Tramp" CamelCase.  Rename "emacs"
      and "xemacs" flags to "unified" and "separate".  Remove flags
      "emacsgw", "emacsname", "emacsdir", "ftppackagename",
      "emacsothername", "emacsotherdir" and "emacsotherfilename".
      (trampver):
      * lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
      
      * lisp/net/tramp.el (bkup-backup-directory-info)
      (directory-sep-char, ls-lisp-use-insert-directory-program)
      (outline-regexp, tramp-backup-directory-alist)
      (tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
      (tramp-file-name-regexp-unified)
      (tramp-file-name-regexp-separate)
      (tramp-completion-file-name-regexp-unified)
      (tramp-completion-file-name-regexp-separate, tramp-chunksize)
      (tramp-get-method-parameter, tramp-find-method, tramp-find-user)
      (tramp-debug-message, tramp-progress-reporter-update)
      (with-tramp-progress-reporter)
      (tramp-rfn-eshadow-setup-minibuffer)
      (rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
      (tramp-rfn-eshadow-update-overlay)
      (rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
      (tramp-file-name-for-operation)
      (tramp-completion-file-name-handler)
      (tramp-autoload-file-name-handler, tramp-completion-mode-p)
      (tramp-handle-directory-files)
      (tramp-handle-directory-files-and-attributes)
      (tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
      (tramp-handle-insert-file-contents, tramp-handle-load)
      (tramp-handle-shell-command)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-handle-file-notify-valid-p, tramp-accept-process-output)
      (tramp-check-for-regexp, tramp-wait-for-regexp)
      (tramp-send-string, tramp-mode-string-to-int)
      (tramp-get-local-gid, tramp-check-cached-permissions)
      (tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
      (auto-save-file-name-transforms)
      (tramp-handle-make-auto-save-file-name, tramp-read-passwd)
      (tramp-clear-passwd, tramp-time-diff):
      * lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
      (directory-sep-char, tramp-adb-file-name-handler-alist)
      (tramp-adb-parse-device-names)
      (tramp-adb-handle-expand-file-name)
      (tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
      (tramp-adb-handle-file-local-copy)
      (tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
      (tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
      (tramp-adb-handle-shell-command)
      (tramp-adb-handle-start-file-process, tramp-adb-get-device)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el (tramp-persistency-file-name)
      (tramp-cache-print):
      * lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
      (tramp-bug, tramp-reporter-dump-variable)
      (tramp-load-report-modules, tramp-append-tramp-buffers):
      * lisp/net/tramp-compat.el (tramp-compat-funcall)
      (tramp-advice-file-expand-wildcards)
      (tramp-compat-temporary-file-directory)
      (tramp-compat-make-temp-file, tramp-compat-copy-file)
      (tramp-compat-delete-directory, )
      (tramp-compat-process-running-p):
      * lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
      (tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      (tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
      (tramp-gvfs-handle-file-local-copy)
      (tramp-gvfs-handle-file-name-all-completions)
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-monitor-file-process-filter)
      (tramp-gvfs-handle-file-readable-p)
      (tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
      (tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
      (tramp-gvfs-maybe-open-connection)
      (tramp-gvfs-parse-device-names):
      * lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
      (tramp-gw-open-connection, tramp-gw-open-network-stream):
      * lisp/net/tramp-sh.el (directory-sep-char)
      (tramp-sh-file-name-handler-alist)
      (tramp-sh-handle-file-truename)
      (tramp-sh-handle-set-visited-file-modtime)
      (tramp-sh-handle-verify-visited-file-modtime)
      (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
      (tramp-sh-handle-file-acl)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (dired-compress-file-suffixes, dired-remove-file)
      (tramp-sh-handle-dired-compress-file)
      (tramp-sh-handle-insert-directory)
      (tramp-sh-handle-expand-file-name)
      (tramp-sh-handle-start-file-process)
      (tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
      (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
      (tramp-sh-handle-file-notify-add-watch)
      (tramp-sh-gvfs-monitor-dir-process-filter)
      (tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
      (tramp-find-executable)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-find-inline-encoding, tramp-compute-multi-hops)
      (tramp-maybe-open-connection, tramp-convert-file-attributes)
      (tramp-get-remote-path, tramp-get-remote-touch):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
      (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
      (tramp-smb-handle-make-directory-internal)
      (tramp-smb-handle-process-file, 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)
      (tramp-smb-get-cifs-capabilities)
      (tramp-smb-maybe-open-connection):
      * lisp/net/trampver.el (tramp-repository-get-version):
      Remove XEmacs compat code.
      
      * lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
      (reporter-dump-variable): Declare functions.
      
      * lisp/net/tramp.el (tramp-bkup-backup-directory-info)
      (tramp-advice-minibuffer-electric-separator)
      (tramp-advice-minibuffer-electric-tilde)
      (tramp-handle-unhandled-file-name-directory):
      * lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
      (tramp-compat-font-lock-add-keywords)
      (tramp-compat-load, tramp-compat-number-sequence)
      (tramp-compat-split-string, tramp-compat-delete-dups):
      * lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
      Remove.
      
      * lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
      recursively.
      de8c5f9d
  33. 09 Jan, 2016 1 commit
    • Michael Albinus's avatar
      Fix coding system for Tramp on OS X. · 90fd798a
      Michael Albinus authored
      * lisp/net/tramp-compat.el: Require ucs-normalize.
      
      * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
      Set coding system to `utf-8-hfs' for Mac OS X.
      
      * test/automated/tramp-tests.el (tramp-test29-vc-registered):
      Flush directory properties when needed.
      (tramp--test-utf8): Include Chinese file name, again.
      90fd798a
  34. 01 Jan, 2016 1 commit
  35. 29 Dec, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.13 · 8ca864ba
      Michael Albinus authored
      * doc/misc/trampver.texi: Change version to "2.2.13.25.1".
      
      * lisp/net/tramp-compat.el (tramp-compat-delete-dups):
      Use `tramp-compat-funcall'.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
      Make `split-string' call compatible with older Emacsen.
      
      * lisp/net/trampver.el: Change version to "2.2.13.25.1".
      8ca864ba
  36. 28 Oct, 2015 1 commit
  37. 18 Oct, 2015 1 commit
    • Michael Albinus's avatar
      Minor edits in Tramp · f8ff3937
      Michael Albinus authored
      * lisp/net/tramp-adb.el (directory-listing-before-filename-regexp):
      Declare it.
      
      * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
      Remove declaration.
      f8ff3937
  38. 04 Oct, 2015 1 commit
    • Michael Albinus's avatar
      Improve XEmacs compatibility of Tramp · acfb5cd0
      Michael Albinus authored
      * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
      Declare if it doesn't exist.
      (file-remote-p): Remove defalias, which was necessary for GNU Emacs 21.
      (redisplay): Make it an alias if it doesn't exist.
      
      * lisp/net/tramp.el (tramp-get-remote-tmpdir): Don't use
      `file-remote-p' (due to XEmacs compatibility).
      
      * lisp/net/trampver.el (locate-dominating-file)
      (tramp-compat-replace-regexp-in-string): Autoload.
      (tramp-repository-get-version): Do not dupe byte-compiler.
      acfb5cd0
  39. 26 Aug, 2015 1 commit