aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2020-01-22 16:54:55 +0100
committerMichael Albinus2020-01-22 16:54:55 +0100
commit2d9d62bb24c662890c943f16750f4a852aa6dc8b (patch)
tree46b0b60bed2bf49444f24ad5b04da55b133cf165 /doc/misc
parent1a2a5a17a75d77961b94d88989353bd07cfd3ef5 (diff)
downloademacs-2d9d62bb24c662890c943f16750f4a852aa6dc8b.tar.gz
emacs-2d9d62bb24c662890c943f16750f4a852aa6dc8b.zip
Add new Tramp method "media"
* doc/misc/tramp.texi (Quick Start Guide, GVFS-based methods): Add media devices. * etc/NEWS: Mention new Tramp method "media". * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "media" method. (tramp-goa-methods): Add tramp-autoload cookie. (tramp-media-methods): New defvar. (tramp-gvfs-service-volumemonitor): New defsubst. (top): Remove media methods if not supported. Add defaults for `tramp-default-host-alist'. (tramp-goa-account): Rename from `tramp-goa-name'. Adapt all callees. (tramp-gvfs-service-afc-volumemonitor) (tramp-gvfs-service-goa-volumemonitor) (tramp-gvfs-service-gphoto2-volumemonitor) (tramp-gvfs-service-mtp-volumemonitor) (tramp-gvfs-path-remotevolumemonitor) (tramp-gvfs-interface-remotevolumemonitor): New defconsts. (tramp-media-device): New defstruct. (tramp-gvfs-activation-uri): New defun. (tramp-gvfs-url-file-name): Use it. (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec): Handle "media" method. (tramp-get-goa-account): Rename from `tramp-make-goa-name'. Adapt all callees. (tramp-get-goa-accounts): Adapt docstring. Cache with nil key. (tramp-parse-goa-accounts, tramp-get-media-device) (tramp-get-media-devices) (tramp-parse-media-names): New defuns. (top): Rework completion function registration. * lisp/net/tramp.el (tramp-dns-sd-service-regexp): New defconst. (tramp-set-completion-function): Use it.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi40
1 files changed, 32 insertions, 8 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 602d62c3201..f568c19544c 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -557,13 +557,16 @@ of the local file name is the share exported by the remote host,
557@cindex method @option{davs} 557@cindex method @option{davs}
558@cindex @option{dav} method 558@cindex @option{dav} method
559@cindex @option{davs} method 559@cindex @option{davs} method
560@cindex method @option{media}
561@cindex @option{media} method
560 562
561On systems, which have installed @acronym{GVFS, the GNOME Virtual File 563On systems, which have installed @acronym{GVFS, the GNOME Virtual File
562System}, its offered methods could be used by @value{tramp}. Examples 564System}, its offered methods could be used by @value{tramp}. Examples
563are @file{@trampfn{sftp,user@@host,/path/to/file}}, 565are @file{@trampfn{sftp,user@@host,/path/to/file}},
564@file{@trampfn{afp,user@@host,/path/to/file}} (accessing Apple's AFP 566@file{@trampfn{afp,user@@host,/path/to/file}} (accessing Apple's AFP
565file system), @file{@trampfn{dav,user@@host,/path/to/file}} and 567file system), @file{@trampfn{dav,user@@host,/path/to/file}},
566@file{@trampfn{davs,user@@host,/path/to/file}} (for WebDAV shares). 568@file{@trampfn{davs,user@@host,/path/to/file}} (for WebDAV shares) and
569@file{@trampfn{media,device,/path/to/file}} (for media devices).
567 570
568 571
569@anchor{Quick Start Guide: GNOME Online Accounts based methods} 572@anchor{Quick Start Guide: GNOME Online Accounts based methods}
@@ -1126,7 +1129,8 @@ Emacs.
1126@value{tramp} does not require a host name part of the remote file 1129@value{tramp} does not require a host name part of the remote file
1127name when a single Android device is connected to @command{adb}. 1130name when a single Android device is connected to @command{adb}.
1128@value{tramp} instead uses @file{@trampfn{adb,,}} as the default name. 1131@value{tramp} instead uses @file{@trampfn{adb,,}} as the default name.
1129@command{adb devices} shows available host names. 1132@command{adb devices}, run in a shell outside Emacs, shows available
1133host names.
1130 1134
1131@option{adb} method normally does not need user name to authenticate 1135@option{adb} method normally does not need user name to authenticate
1132on the Android device because it runs under the @command{adbd} 1136on the Android device because it runs under the @command{adbd}
@@ -1243,6 +1247,26 @@ Since Google Drive uses cryptic blob file names internally,
1243could produce unexpected behavior in case two files in the same 1247could produce unexpected behavior in case two files in the same
1244directory have the same @code{display-name}, such a situation must be avoided. 1248directory have the same @code{display-name}, such a situation must be avoided.
1245 1249
1250@item @option{media}
1251@cindex method @option{media}
1252@cindex @option{media} method
1253@cindex media
1254
1255Media devices, like cell phones, tablets, cameras, can be accessed via
1256the @option{media} method. Just the device name is needed in order to
1257specify the remote part of file name. However, the device must
1258already be connected via USB, before accessing it.
1259
1260Depending on the device type, the access could be read-only. Some
1261devices are accessible under different names in parallel, offering
1262different parts of their file system.
1263
1264@c @value{tramp} does not require a device name as part of the remote
1265@c file name when a single media device is connected. @value{tramp}
1266@c instead uses @file{@trampfn{media,,}} as the default name.
1267@c @c @command{adb devices}, run in a shell outside Emacs, shows available
1268@c @c host names.
1269
1246@item @option{nextcloud} 1270@item @option{nextcloud}
1247@cindex method @option{nextcloud} 1271@cindex method @option{nextcloud}
1248@cindex @option{nextcloud} method 1272@cindex @option{nextcloud} method
@@ -1267,11 +1291,11 @@ that for security reasons refuse @command{ssh} connections.
1267@defopt tramp-gvfs-methods 1291@defopt tramp-gvfs-methods
1268This user option is a list of external methods for @acronym{GVFS}@. 1292This user option is a list of external methods for @acronym{GVFS}@.
1269By default, this list includes @option{afp}, @option{dav}, 1293By default, this list includes @option{afp}, @option{dav},
1270@option{davs}, @option{gdrive}, @option{nextcloud} and @option{sftp}. 1294@option{davs}, @option{gdrive}, @option{media}, @option{nextcloud} and
1271Other methods to include are @option{ftp}, @option{http}, 1295@option{sftp}. Other methods to include are @option{ftp},
1272@option{https} and @option{smb}. These methods are not intended to be 1296@option{http}, @option{https} and @option{smb}. These methods are not
1273used directly as @acronym{GVFS}-based method. Instead, they are added 1297intended to be used directly as @acronym{GVFS}-based method. Instead,
1274here for the benefit of @ref{Archive file names}. 1298they are added here for the benefit of @ref{Archive file names}.
1275 1299
1276If you want to use @acronym{GVFS}-based @option{ftp} or @option{smb} 1300If you want to use @acronym{GVFS}-based @option{ftp} or @option{smb}
1277methods, you must add them to @code{tramp-gvfs-methods}, and you must 1301methods, you must add them to @code{tramp-gvfs-methods}, and you must