aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp-gvfs.el37
1 files changed, 21 insertions, 16 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 1f40339c271..84af410de07 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -49,9 +49,9 @@
49 49
50;; The user option `tramp-gvfs-methods' contains the list of supported 50;; The user option `tramp-gvfs-methods' contains the list of supported
51;; connection methods. Per default, these are "afp", "dav", "davs", 51;; connection methods. Per default, these are "afp", "dav", "davs",
52;; "gdrive", "owncloud" and "sftp". 52;; "gdrive", "nextcloud" and "sftp".
53 53
54;; "gdrive" and "owncloud" connection methods require a respective 54;; "gdrive" and "nextcloud" connection methods require a respective
55;; account in GNOME Online Accounts, with enabled "Files" service. 55;; account in GNOME Online Accounts, with enabled "Files" service.
56 56
57;; Other possible connection methods are "ftp", "http", "https" and 57;; Other possible connection methods are "ftp", "http", "https" and
@@ -121,7 +121,7 @@
121 121
122;;;###tramp-autoload 122;;;###tramp-autoload
123(defcustom tramp-gvfs-methods 123(defcustom tramp-gvfs-methods
124 '("afp" "dav" "davs" "gdrive" "owncloud" "sftp") 124 '("afp" "dav" "davs" "gdrive" "nextcloud" "sftp")
125 "List of methods for remote files, accessed with GVFS." 125 "List of methods for remote files, accessed with GVFS."
126 :group 'tramp 126 :group 'tramp
127 :version "27.1" 127 :version "27.1"
@@ -132,11 +132,11 @@
132 (const "gdrive") 132 (const "gdrive")
133 (const "http") 133 (const "http")
134 (const "https") 134 (const "https")
135 (const "owncloud") 135 (const "nextcloud")
136 (const "sftp") 136 (const "sftp")
137 (const "smb")))) 137 (const "smb"))))
138 138
139(defconst tramp-goa-methods '("gdrive" "owncloud") 139(defconst tramp-goa-methods '("gdrive" "nextcloud")
140 "List of methods which require registration at GNOME Online Accounts.") 140 "List of methods which require registration at GNOME Online Accounts.")
141 141
142;; Remove GNOME Online Accounts methods if not supported. 142;; Remove GNOME Online Accounts methods if not supported.
@@ -511,11 +511,11 @@ It has been changed in GVFS 1.14.")
511 ":[[:blank:]]+\\(.*\\)$") 511 ":[[:blank:]]+\\(.*\\)$")
512 "Regexp to parse GVFS file system attributes with `gvfs-info'.") 512 "Regexp to parse GVFS file system attributes with `gvfs-info'.")
513 513
514(defconst tramp-gvfs-owncloud-default-prefix "/remote.php/webdav" 514(defconst tramp-gvfs-nextcloud-default-prefix "/remote.php/webdav"
515 "Default prefix for owncloud / nextcloud methods.") 515 "Default prefix for owncloud / nextcloud methods.")
516 516
517(defconst tramp-gvfs-owncloud-default-prefix-regexp 517(defconst tramp-gvfs-nextcloud-default-prefix-regexp
518 (concat (regexp-quote tramp-gvfs-owncloud-default-prefix) "$") 518 (concat (regexp-quote tramp-gvfs-nextcloud-default-prefix) "$")
519 "Regexp of default prefix for owncloud / nextcloud methods.") 519 "Regexp of default prefix for owncloud / nextcloud methods.")
520 520
521 521
@@ -1380,7 +1380,7 @@ file-notify events."
1380 (with-parsed-tramp-file-name filename nil 1380 (with-parsed-tramp-file-name filename nil
1381 (when (string-equal "gdrive" method) 1381 (when (string-equal "gdrive" method)
1382 (setq method "google-drive")) 1382 (setq method "google-drive"))
1383 (when (string-equal "owncloud" method) 1383 (when (string-equal "nextcloud" method)
1384 (setq method "davs" 1384 (setq method "davs"
1385 localname 1385 localname
1386 (concat (tramp-gvfs-get-remote-prefix v) localname))) 1386 (concat (tramp-gvfs-get-remote-prefix v) localname)))
@@ -1543,8 +1543,8 @@ file-notify events."
1543 (setq method "davs")) 1543 (setq method "davs"))
1544 (when (and (string-equal "davs" method) 1544 (when (and (string-equal "davs" method)
1545 (string-match 1545 (string-match
1546 tramp-gvfs-owncloud-default-prefix-regexp prefix)) 1546 tramp-gvfs-nextcloud-default-prefix-regexp prefix))
1547 (setq method "owncloud")) 1547 (setq method "nextcloud"))
1548 (when (string-equal "google-drive" method) 1548 (when (string-equal "google-drive" method)
1549 (setq method "gdrive")) 1549 (setq method "gdrive"))
1550 (when (and (string-equal "http" method) (stringp uri)) 1550 (when (and (string-equal "http" method) (stringp uri))
@@ -1633,8 +1633,8 @@ file-notify events."
1633 (setq method "davs")) 1633 (setq method "davs"))
1634 (when (and (string-equal "davs" method) 1634 (when (and (string-equal "davs" method)
1635 (string-match 1635 (string-match
1636 tramp-gvfs-owncloud-default-prefix-regexp prefix)) 1636 tramp-gvfs-nextcloud-default-prefix-regexp prefix))
1637 (setq method "owncloud")) 1637 (setq method "nextcloud"))
1638 (when (string-equal "google-drive" method) 1638 (when (string-equal "google-drive" method)
1639 (setq method "gdrive")) 1639 (setq method "gdrive"))
1640 (when (and (string-equal "http" method) (stringp uri)) 1640 (when (and (string-equal "http" method) (stringp uri))
@@ -1688,7 +1688,7 @@ It was \"a(say)\", but has changed to \"a{sv})\"."
1688 (localname (tramp-file-name-unquote-localname vec)) 1688 (localname (tramp-file-name-unquote-localname vec))
1689 (share (when (string-match "^/?\\([^/]+\\)" localname) 1689 (share (when (string-match "^/?\\([^/]+\\)" localname)
1690 (match-string 1 localname))) 1690 (match-string 1 localname)))
1691 (ssl (if (string-match "^davs\\|^owncloud" method) "true" "false")) 1691 (ssl (if (string-match "^davs\\|^nextcloud" method) "true" "false"))
1692 (mount-spec 1692 (mount-spec
1693 `(:array 1693 `(:array
1694 ,@(cond 1694 ,@(cond
@@ -1696,7 +1696,7 @@ It was \"a(say)\", but has changed to \"a{sv})\"."
1696 (list (tramp-gvfs-mount-spec-entry "type" "smb-share") 1696 (list (tramp-gvfs-mount-spec-entry "type" "smb-share")
1697 (tramp-gvfs-mount-spec-entry "server" host) 1697 (tramp-gvfs-mount-spec-entry "server" host)
1698 (tramp-gvfs-mount-spec-entry "share" share))) 1698 (tramp-gvfs-mount-spec-entry "share" share)))
1699 ((string-match "^dav\\|^owncloud" method) 1699 ((string-match "^dav\\|^nextcloud" method)
1700 (list (tramp-gvfs-mount-spec-entry "type" "dav") 1700 (list (tramp-gvfs-mount-spec-entry "type" "dav")
1701 (tramp-gvfs-mount-spec-entry "host" host) 1701 (tramp-gvfs-mount-spec-entry "host" host)
1702 (tramp-gvfs-mount-spec-entry "ssl" ssl))) 1702 (tramp-gvfs-mount-spec-entry "ssl" ssl)))
@@ -1707,6 +1707,9 @@ It was \"a(say)\", but has changed to \"a{sv})\"."
1707 ((string-equal "gdrive" method) 1707 ((string-equal "gdrive" method)
1708 (list (tramp-gvfs-mount-spec-entry "type" "google-drive") 1708 (list (tramp-gvfs-mount-spec-entry "type" "google-drive")
1709 (tramp-gvfs-mount-spec-entry "host" host))) 1709 (tramp-gvfs-mount-spec-entry "host" host)))
1710 ((string-equal "nextcloud" method)
1711 (list (tramp-gvfs-mount-spec-entry "type" "owncloud")
1712 (tramp-gvfs-mount-spec-entry "host" host)))
1710 ((string-match "^http" method) 1713 ((string-match "^http" method)
1711 (list (tramp-gvfs-mount-spec-entry "type" "http") 1714 (list (tramp-gvfs-mount-spec-entry "type" "http")
1712 (tramp-gvfs-mount-spec-entry 1715 (tramp-gvfs-mount-spec-entry
@@ -1980,6 +1983,8 @@ VEC is used only for traces."
1980 :port (match-string 3 identity))) 1983 :port (match-string 3 identity)))
1981 (when (string-equal (tramp-goa-name-method key) "google") 1984 (when (string-equal (tramp-goa-name-method key) "google")
1982 (setf (tramp-goa-name-method key) "gdrive")) 1985 (setf (tramp-goa-name-method key) "gdrive"))
1986 (when (string-equal (tramp-goa-name-method key) "owncloud")
1987 (setf (tramp-goa-name-method key) "nextcloud"))
1983 ;; Cache all properties. 1988 ;; Cache all properties.
1984 (dolist (prop (nconc account-properties files-properties)) 1989 (dolist (prop (nconc account-properties files-properties))
1985 (tramp-set-connection-property key (car prop) (cdr prop))) 1990 (tramp-set-connection-property key (car prop) (cdr prop)))
@@ -2086,7 +2091,7 @@ This uses \"avahi-browse\" in case D-Bus is not enabled in Avahi."
2086;; * (Customizable) unmount when exiting Emacs. See tramp-archive.el. 2091;; * (Customizable) unmount when exiting Emacs. See tramp-archive.el.
2087 2092
2088;; * Host name completion for existing mount points (afp-server, 2093;; * Host name completion for existing mount points (afp-server,
2089;; smb-server, google-drive, owncloud) or via smb-network or network. 2094;; smb-server, google-drive, nextcloud) or via smb-network or network.
2090;; 2095;;
2091;; * Check, how two shares of the same SMB server can be mounted in 2096;; * Check, how two shares of the same SMB server can be mounted in
2092;; parallel. 2097;; parallel.