aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2020-01-23 14:09:35 +0100
committerMichael Albinus2020-01-23 14:09:35 +0100
commit8fbc2fd492b714c612a96add0b9572d87eb4e785 (patch)
tree2477bd8d187b62dff11a351c5afd5c249477c4db /doc/misc
parent72011f23c3135690f65262f01ea92a53ff84b4e1 (diff)
downloademacs-8fbc2fd492b714c612a96add0b9572d87eb4e785.tar.gz
emacs-8fbc2fd492b714c612a96add0b9572d87eb4e785.zip
Implement "/media::" default host name in Tramp
* doc/misc/tramp.texi (GVFS-based methods): Describe default /media:: file name. * lisp/net/tramp-cache.el (tramp-get-file-property) (tramp-set-file-property): Check, whether `tramp-cache-{g,s}et-count-*' objects are numbers. * lisp/net/tramp-gvfs.el (top): Don't set global default for "media" in `tramp-default-host-alist'. (tramp-gvfs-handler-volumeadded-volumeremoved): New defun. (top): Register "org.gtk.Private.RemoteVolumeMonitor.VolumeAdded" and "org.gtk.Private.RemoteVolumeMonitor.VolumeRemoved" signals. (tramp-get-media-devices): Set defaults for "media" in `tramp-default-host-alist'.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi13
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 75b14d8613f..61cf373024f 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -1254,18 +1254,17 @@ directory have the same @code{display-name}, such a situation must be avoided.
1254 1254
1255Media devices, like cell phones, tablets, cameras, can be accessed via 1255Media devices, like cell phones, tablets, cameras, can be accessed via
1256the @option{media} method. Just the device name is needed in order to 1256the @option{media} method. Just the device name is needed in order to
1257specify the remote part of file name. However, the device must 1257specify the host in the file name. However, the device must already
1258already be connected via USB, before accessing it. 1258be connected via USB, before accessing it. Possible device names are
1259visible via host name completion, @ref{File name completion}.
1259 1260
1260Depending on the device type, the access could be read-only. Some 1261Depending on the device type, the access could be read-only. Some
1261devices are accessible under different names in parallel, offering 1262devices are accessible under different names in parallel, offering
1262different parts of their file system. 1263different parts of their file system.
1263 1264
1264@c @value{tramp} does not require a device name as part of the remote 1265@value{tramp} does not require a host name as part of the remote file
1265@c file name when a single media device is connected. @value{tramp} 1266name when a single media device is connected. @value{tramp} instead
1266@c instead uses @file{@trampfn{media,,}} as the default name. 1267uses @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 1268
1270@item @option{nextcloud} 1269@item @option{nextcloud}
1271@cindex method @option{nextcloud} 1270@cindex method @option{nextcloud}