GNU bug report logs - #45402
28.0.50; new completion inconvenience

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Thu, 24 Dec 2020 05:54:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45402 in the body.
You can then email your comments to 45402 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Thu, 24 Dec 2020 05:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 Dec 2020 05:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 00:53:49 -0500
My default directory is ~/ and I tyoe C-x C-f /med TAB.

It used to give me ~//media/.  Another TAB would give me
~//media/rms/.

But now it gives me ~//media and more TABs does not get me any further
than that.

I think this is related to Tramp, but I don't use Tramp.



In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.15.10)
 of 2020-12-08 built on freetop
Repository revision: 0155bd0fdb166c97a2ce76cc5bc64fd195a676d3
Repository branch: master
System Description: Trisquel GNU/Linux Etiona (9.0)

Configured using:
 'configure --with-gnutls=ifavailable 'CFLAGS=-O0 -g''

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11 XDBE XIM MODULES THREADS PDUMPER

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(whitespace cl-print debug backtrace rmail-spam-filter rmailedit
rmailsort undigest tramp-gvfs zeroconf tramp-cache bug-reference
shortdoc help-fns radix-tree descr-text help-at-pt ispell unrmail
time-stamp texinfo url-http url-auth url-gw nsm tramp tramp-loaddefs
trampver tramp-integration tramp-compat ls-lisp arc-mode archive-mode
srecode/srt-mode semantic/analyze semantic/sort semantic/scope
semantic/analyze/fcn semantic/db semantic/format srecode/template
srecode/srt-wy semantic/wisent semantic/wisent/wisent semantic/ctxt
srecode/ctxt semantic/tag-ls semantic/find srecode/compile
srecode/dictionary srecode/fields srecode/table srecode eieio-base
semantic/util-modes semantic/util semantic semantic/tag semantic/lex
semantic/fw mode-local cedet pcmpl-unix rect compare-w novice kmacro
etags fileloop xref project quail mail-extr pp shadow emacsbug
smerge-mode diff log-edit pcvs-util add-log org-element avl-tree
generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect
gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015
mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start
gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
gnus-spec gnus-int gnus-range gnus-win ol-docview doc-view jka-compr
image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m org ob ob-tangle
ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint
org-pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys
org-compat org-macs org-loaddefs format-spec find-func cal-menu
calendar cal-loaddefs cl-extra parse-time iso8601 mhtml-mode css-mode
smie eww xdg url-queue mm-url gnus nnheader wid-edit color js imenu
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs sgml-mode help-mode mule-util shell
pcomplete thingatpt files-x grep compile comint ansi-color ring
misearch multi-isearch epa-mail rmailkwd rmailsum vc-mtn vc-hg vc-git
diff-mode easy-mmode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc
vc-dispatcher shr kinsoku svg xml dom rmailout dabbrev mailalias
sendmail qp rmailmm message rmc puny rfc822 mml mml-sec epa epg
epg-config gnus-util text-property-search time-date mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils dired-aux dired dired-loaddefs t-mouse term/linux view
derived paren cus-start cus-load advice finder-inf package easymenu
browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet
lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese composite charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 1028535 143643)
 (symbols 48 45508 18)
 (strings 32 215598 23071)
 (string-bytes 1 5404871)
 (vectors 16 73141)
 (vector-slots 8 2067265 131585)
 (floats 8 451 453)
 (intervals 56 129103 4709)
 (buffers 984 160))
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Thu, 24 Dec 2020 06:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: Richard Stallman <rms <at> gnu.org>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 08:58:49 +0300
* Richard Stallman <rms <at> gnu.org> [2020-12-24 08:54]:
> 
> My default directory is ~/ and I tyoe C-x C-f /med TAB.
> 
> It used to give me ~//media/.  Another TAB would give me
> ~//media/rms/.

If you don't type double slash and press TAB what happens then?

Instead of ~//media, try ~/media<TAB>





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Thu, 24 Dec 2020 08:54:01 GMT) Full text and rfc822 format available.

Message #11 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Richard Stallman <rms <at> gnu.org>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 09:53:40 +0100
Richard Stallman <rms <at> gnu.org> writes:

Hi Richard,

> My default directory is ~/ and I tyoe C-x C-f /med TAB.
>
> It used to give me ~//media/.  Another TAB would give me
> ~//media/rms/.
>
> But now it gives me ~//media and more TABs does not get me any further
> than that.
>
> I think this is related to Tramp, but I don't use Tramp.

This is Tramp indeed. It knows a new method "media", which is in the way
now for you. If you enter another "/" after "...media" in your
minibuffer, TAB will continue to complete as you know.

If you don't use Tramp, just set tramp-mode to nil in your .emacs.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Thu, 24 Dec 2020 14:37:01 GMT) Full text and rfc822 format available.

Message #14 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 45402 <at> debbugs.gnu.org, rms <at> gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 16:36:09 +0200
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Date: Thu, 24 Dec 2020 09:53:40 +0100
> Cc: 45402 <at> debbugs.gnu.org
> 
> > My default directory is ~/ and I tyoe C-x C-f /med TAB.
> >
> > It used to give me ~//media/.  Another TAB would give me
> > ~//media/rms/.
> >
> > But now it gives me ~//media and more TABs does not get me any further
> > than that.
> >
> > I think this is related to Tramp, but I don't use Tramp.
> 
> This is Tramp indeed. It knows a new method "media", which is in the way
> now for you. If you enter another "/" after "...media" in your
> minibuffer, TAB will continue to complete as you know.

Really?  I always thought that the leading slash in "/media" causes
Emacs to disregard the "~/" part, and interpret the rest as relative
to "/", the filesystem root?  When I type '/' on my system, Emacs
gives the preceding "~/" part a shadow-y color (and on a TTY places it
in {..}), to show that it is being ignored.

How come Richard gets ~//media instead? he should get /media, without
the leading "~/".  What am I missing?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Thu, 24 Dec 2020 17:03:01 GMT) Full text and rfc822 format available.

Message #17 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 45402 <at> debbugs.gnu.org, rms <at> gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 18:02:35 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Eli,

> Really?  I always thought that the leading slash in "/media" causes
> Emacs to disregard the "~/" part, and interpret the rest as relative
> to "/", the filesystem root?  When I type '/' on my system, Emacs
> gives the preceding "~/" part a shadow-y color (and on a TTY places it
> in {..}), to show that it is being ignored.

Yes.

> How come Richard gets ~//media instead? he should get /media, without
> the leading "~/".  What am I missing?

The leading "~/" string is greyed out. That's expected.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Thu, 24 Dec 2020 17:20:02 GMT) Full text and rfc822 format available.

Message #20 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 45402 <at> debbugs.gnu.org, rms <at> gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 19:18:46 +0200
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Cc: rms <at> gnu.org,  45402 <at> debbugs.gnu.org
> Date: Thu, 24 Dec 2020 18:02:35 +0100
> 
> > How come Richard gets ~//media instead? he should get /media, without
> > the leading "~/".  What am I missing?
> 
> The leading "~/" string is greyed out. That's expected.

If that's the case, fine.  I thought it wasn't, as Richard was
mentioning it, although it is effectively deleted.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 04:43:01 GMT) Full text and rfc822 format available.

Message #23 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Thu, 24 Dec 2020 23:42:33 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > This is Tramp indeed. It knows a new method "media", which is in the way
  > now for you.

This is an unfortunate choice of name.  GNU/Linux (at least some distros)
automounts disks and memories under /media, which means that this Tramp
method name is going to collide regularly.

How about if we look at changing the name in Tramp.  Can you see
another name that fits what it does?
(What does it do?)

  
-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 05:57:02 GMT) Full text and rfc822 format available.

Message #26 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Fri, 25 Dec 2020 06:56:36 +0100
Richard Stallman <rms <at> gnu.org> writes:

> My default directory is ~/ and I tyoe C-x C-f /med TAB.
>
> It used to give me ~//media/.  Another TAB would give me
> ~//media/rms/.

But why do you type "/med TAB" instead of "med TAB"?

And I'm unable to reproduce the behaviour you're describing in older
Emacs versions -- I tried this in Emacs 25.1, and `C-x C-f /med TAB'
just gives me "No match", even if ~/media exists.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 11:08:01 GMT) Full text and rfc822 format available.

Message #29 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Richard Stallman <rms <at> gnu.org>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Fri, 25 Dec 2020 12:06:52 +0100
Richard Stallman <rms <at> gnu.org> writes:

Hi Richard,

>   > This is Tramp indeed. It knows a new method "media", which is in the way
>   > now for you.
>
> This is an unfortunate choice of name.  GNU/Linux (at least some distros)
> automounts disks and memories under /media, which means that this Tramp
> method name is going to collide regularly.
>
> How about if we look at changing the name in Tramp.  Can you see
> another name that fits what it does?

Makes sense, yes.

> (What does it do?)

It gives you file access to USB mounted media devices, like digital
cameras, Android and i(Pad)OS devices. Usually, those devices do not
appear locally under /media, that's why I have added them in Tramp.

The mount protocols are different depending on the device, they could be
"mtp" or "gphoto2". In order to hide these details, I have chosen the
Tramp connection method "media", which DTRT for whichever protocol. What
different Tramp connection name shall I use instead? I'm notorious bad
in selecting proper names.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 11:18:01 GMT) Full text and rfc822 format available.

Message #32 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 45402 <at> debbugs.gnu.org, Richard Stallman <rms <at> gnu.org>
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Fri, 25 Dec 2020 12:17:18 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

Hi Lars,

>> My default directory is ~/ and I tyoe C-x C-f /med TAB.
>>
>> It used to give me ~//media/.  Another TAB would give me
>> ~//media/rms/.
>
> But why do you type "/med TAB" instead of "med TAB"?

Because he wants to enter the "/media" directory.

> And I'm unable to reproduce the behaviour you're describing in older
> Emacs versions -- I tried this in Emacs 25.1, and `C-x C-f /med TAB'
> just gives me "No match", even if ~/media exists.

"/med" has nothing to do with "~/media".

And Tramp's "media" method exist only in the master branch.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 11:21:02 GMT) Full text and rfc822 format available.

Message #35 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Fri, 25 Dec 2020 12:20:09 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Richard Stallman <rms <at> gnu.org> writes:
>
>> My default directory is ~/ and I tyoe C-x C-f /med TAB.
>>
>> It used to give me ~//media/.  Another TAB would give me
>> ~//media/rms/.
>
> But why do you type "/med TAB" instead of "med TAB"?

The assumption, I believe, is that the target folder is under /media/,
while the initial prompt is "~/".  Starting with a slash causes the
initial prompt to be "greyed out" (i.e. rendered ineffectual unless the
user backspaces).

> And I'm unable to reproduce the behaviour you're describing in older
> Emacs versions -- I tried this in Emacs 25.1, and `C-x C-f /med TAB'
> just gives me "No match", even if ~/media exists.

As Richard explained in <E1ksevx-0003Un-Sf <at> fencepost.gnu.org>, some
GNU/Linux distros mount external media under /media/$USER, so typing
/med TAB greys out the initial ~/ and used to complete to /media/$USER
(if $USER is the only folder under /media).  Now users need to type an
additional slash to disambiguate from "/media:".





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 19:32:01 GMT) Full text and rfc822 format available.

Message #38 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Fri, 25 Dec 2020 20:31:32 +0100
Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:

>> But why do you type "/med TAB" instead of "med TAB"?
>
> The assumption, I believe, is that the target folder is under /media/,
> while the initial prompt is "~/".  Starting with a slash causes the
> initial prompt to be "greyed out" (i.e. rendered ineffectual unless the
> user backspaces).

Oh, I see.  I thought Richard wanted to get to a directory called
~/media/.

> As Richard explained in <E1ksevx-0003Un-Sf <at> fencepost.gnu.org>, some
> GNU/Linux distros mount external media under /media/$USER, so typing
> /med TAB greys out the initial ~/ and used to complete to /media/$USER
> (if $USER is the only folder under /media).  Now users need to type an
> additional slash to disambiguate from "/media:".

Yup; I've also got a /media/ directory, and I see the same thing.
/media/ is a common directory on many systems -- would it make sense to
rename the Tramp method to something other than media:?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 20:32:02 GMT) Full text and rfc822 format available.

Message #41 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 45402 <at> debbugs.gnu.org,
 Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Fri, 25 Dec 2020 21:31:07 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

Hi Lars,

>> As Richard explained in <E1ksevx-0003Un-Sf <at> fencepost.gnu.org>, some
>> GNU/Linux distros mount external media under /media/$USER, so typing
>> /med TAB greys out the initial ~/ and used to complete to /media/$USER
>> (if $USER is the only folder under /media).  Now users need to type an
>> additional slash to disambiguate from "/media:".
>
> Yup; I've also got a /media/ directory, and I see the same thing.
> /media/ is a common directory on many systems -- would it make sense to
> rename the Tramp method to something other than media:?

Yes, as I said already to Richard. I just miss a better name. Any
proposals?

(Internally, the GVFS methods mtp and gphoto2 are used. Although I have
sympathy for the name mtp, it would be wrong wrt gphoto2.)

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 22:12:02 GMT) Full text and rfc822 format available.

Message #44 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: Rename Tramp method "media"
Date: Fri, 25 Dec 2020 23:11:46 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

> (Internally, the GVFS methods mtp and gphoto2 are used. Although I have
> sympathy for the name mtp, it would be wrong wrt gphoto2.)

Going by Wikipedia, maybe /mtp: isn't too off-target?

> gPhoto has support for the Picture Transfer Protocol (PTP) and will
> also connect to devices that use the Media Transfer Protocol (MTP).
— https://en.wikipedia.org/wiki/GPhoto

> Whereas PTP was designed for downloading photographs from digital
> cameras, Media Transfer Protocol allows the transfer of music files on
> digital audio players and media files on portable media players, as
> well as personal information on personal digital assistants.
— https://en.wikipedia.org/wiki/Media_Transfer_Protocol

I have no expertise whatsoever about these protocols; I only learned
about them just now.  Are there users we could poll to find a method
name that makes sense?  I've looked at 2020-01-22 "Add new Tramp method
"media"" (2d9d62bb24), but I could not see any bug ID, so I don't know
who we could turn to.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 22:36:01 GMT) Full text and rfc822 format available.

Message #47 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>, Michael
 Albinus <michael.albinus <at> gmx.de>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 45402 <at> debbugs.gnu.org
Subject: RE: bug#45402: Rename Tramp method "media"
Date: Fri, 25 Dec 2020 14:35:42 -0800 (PST)
It's no doubt too late now, at least in general,
but maybe it would make sense to use a prefix
for Tramp, kind of like what we do for libraries.

Besides being too late, I imagine someone will
say that that would be too verbose for users to
type, which is true.

But even a prefix of "t" might be sufficient to
usually distinguish Tramp's protocol names.  In
this case, ~//tmedia would mean Tramp's protocol
and ~//media would mean (change to) local
directory /media.

Yeah, it's ugly.  But the Tramp syntax is
apparently inherently ambiguous here (i.e., can
conflict with a dir name).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Fri, 25 Dec 2020 23:39:02 GMT) Full text and rfc822 format available.

Message #50 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>,
 Michael Albinus <michael.albinus <at> gmx.de>, 45402 <at> debbugs.gnu.org, rms <at> gnu.org
Subject: Re: bug#45402: Rename Tramp method "media"
Date: Sat, 26 Dec 2020 00:38:11 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

> It's no doubt too late now, at least in general,
> but maybe it would make sense to use a prefix
> for Tramp, kind of like what we do for libraries.

I might be missing something, but it seems to me like there is a rather
large design space for opt-in, backward-compatible ways to disambiguate
Tramp methods: off the top of my head, I could imagine e.g. a variable
(say "tramp-implicit-methods") which

- could default to t, meaning:

> always assume that /foo can actually mean /trampfoo for all foo's
> supported by Tramp

- could be set to a list of commonly used Tramp methods, e.g. '("ssh"
  "sudoedit"), meaning:

> when I type /ssh, assume that I can mean /trampssh; otherwise if I
> type /foo assume that I never mean /trampfoo

- could be set to nil, meaning:

> when I type /foo, I *never* mean /trampfoo for any foo supported by
> Tramp; I will always type out /trampfoo:

Or we could go the opposite route, with e.g. tramp-explicit-methods (nil
by default), which in the context of this report could be set to
'("media") so that /media can complete to /media/$USER, and users would
be required to type out /trampmedia: explicitly.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Sat, 26 Dec 2020 08:46:02 GMT) Full text and rfc822 format available.

Message #53 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 45402 <at> debbugs.gnu.org,
 Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Subject: Re: bug#45402: Rename Tramp method "media"
Date: Sat, 26 Dec 2020 09:44:55 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

Hi Drew,

> But even a prefix of "t" might be sufficient to
> usually distinguish Tramp's protocol names.  In
> this case, ~//tmedia would mean Tramp's protocol
> and ~//media would mean (change to) local
> directory /media.

Until now, it is just the "media" method which is too close to a
directory name. And this can simply be avoided; taking "media" off the
default values of tramp-gvfs-methods would deactivate it; users who want
to exploit it must activate it first.

But currently I'm thinking about Kévin's arguments to call it "mtp". It
was also my first choice, but I wanted to be fair to the "gphoto2" method.

> Yeah, it's ugly.  But the Tramp syntax is
> apparently inherently ambiguous here (i.e., can
> conflict with a dir name).

This will always be the case. Once I got a bug report from a user, who
wanted to access a local directory "/ssh:example.com/", see
bug#31489. Achhhh ...

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Sat, 26 Dec 2020 08:53:01 GMT) Full text and rfc822 format available.

Message #56 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 45402 <at> debbugs.gnu.org,
 Drew Adams <drew.adams <at> oracle.com>, rms <at> gnu.org
Subject: Re: bug#45402: Rename Tramp method "media"
Date: Sat, 26 Dec 2020 09:52:30 +0100
Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:

Hi Kévin,

> I might be missing something, but it seems to me like there is a rather
> large design space for opt-in, backward-compatible ways to disambiguate
> Tramp methods: off the top of my head, I could imagine e.g. a variable
> (say "tramp-implicit-methods") which

There are people who use Tramp, and there are people who don't. For the
latter, there is tramp-mode. Setting it to nil makes Tramp silent, in
all aspects.

Customizing which Tramp methods shall be used for completion is too
complicate for the majority of users I believe.

> Or we could go the opposite route, with e.g. tramp-explicit-methods (nil
> by default), which in the context of this report could be set to
> '("media") so that /media can complete to /media/$USER, and users would
> be required to type out /trampmedia: explicitly.

This exists already. Remove the "media" entry from tramp-methods, and
you're done.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Sat, 26 Dec 2020 10:24:02 GMT) Full text and rfc822 format available.

Message #59 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Sat, 26 Dec 2020 05:22:54 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > The mount protocols are different depending on the device, they could be
  > "mtp" or "gphoto2". In order to hide these details, I have chosen the
  > Tramp connection method "media", which DTRT for whichever protocol. What
  > different Tramp connection name shall I use instead? I'm notorious bad
  > in selecting proper names.

How about /device: ?

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Sat, 26 Dec 2020 10:29:02 GMT) Full text and rfc822 format available.

Message #62 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Richard Stallman <rms <at> gnu.org>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Sat, 26 Dec 2020 11:28:43 +0100
Richard Stallman <rms <at> gnu.org> writes:

Hi Richard,

>   > The mount protocols are different depending on the device, they could be
>   > "mtp" or "gphoto2". In order to hide these details, I have chosen the
>   > Tramp connection method "media", which DTRT for whichever protocol. What
>   > different Tramp connection name shall I use instead? I'm notorious bad
>   > in selecting proper names.
>
> How about /device: ?

Yes, that was something I took into account when I'vge created
"/media:". However, people typing "/dev TAB" will also be annoyed,
because it could complete to "/dev/" and to "/device:".

Meanwhile, I'm discussing with myself, whether "/mtp:" is acceptable. It
is the superior protocol. I hope I will win the discussion :-)

Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Sat, 26 Dec 2020 11:45:02 GMT) Full text and rfc822 format available.

Notification sent to rms <at> gnu.org:
bug acknowledged by developer. (Sat, 26 Dec 2020 11:45:02 GMT) Full text and rfc822 format available.

Message #67 received at 45402-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 45402-done <at> debbugs.gnu.org
Subject: Re: bug#45402: Rename Tramp method "media"
Date: Sat, 26 Dec 2020 12:44:26 +0100
Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:

Hi Kévin,

> I have no expertise whatsoever about these protocols; I only learned
> about them just now.  Are there users we could poll to find a method
> name that makes sense?  I've looked at 2020-01-22 "Add new Tramp method
> "media"" (2d9d62bb24), but I could not see any bug ID, so I don't know
> who we could turn to.

There was no external request, it was my own decision to add this Tramp
method.

Finally, I've converted "media" to "mtp" in Tramp. So what. Closing the bug.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Sat, 26 Dec 2020 18:56:01 GMT) Full text and rfc822 format available.

Message #70 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 45402 <at> debbugs.gnu.org,
 Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Subject: RE: bug#45402: Rename Tramp method "media"
Date: Sat, 26 Dec 2020 10:53:04 -0800 (PST)
> Once I got a bug report from a user, who wanted
> to access a local directory "/ssh:example.com/",
> see bug#31489. Achhhh ...

Yowza!   ;-)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45402; Package emacs. (Sun, 27 Dec 2020 05:35:01 GMT) Full text and rfc822 format available.

Message #73 received at 45402 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 45402 <at> debbugs.gnu.org
Subject: Re: bug#45402: 28.0.50; new completion inconvenience
Date: Sun, 27 Dec 2020 00:34:12 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Yes, that was something I took into account when I'vge created
  > "/media:". However, people typing "/dev TAB" will also be annoyed,
  > because it could complete to "/dev/" and to "/device:".

I thought about that and concluded that there is little occasion to
enter /dev in a minibuffer in Emacs.  (Have you ever done so?)
So it is a potential problem that won't actually happen, and that makes
it ok.

  > Meanwhile, I'm discussing with myself, whether "/mtp:" is acceptable. It
  > is the superior protocol. I hope I will win the discussion :-)

I see no problem with it.


-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






bug Marked as fixed in versions 28.1. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Sun, 27 Dec 2020 09:51:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 24 Jan 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.