unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4004: filename completion
@ 2009-08-01 16:36 ` Colin Williams
  2009-08-03  3:13   ` Michael Albinus
  2009-08-03  8:40   ` bug#4004: marked as done (filename completion) Emacs bug Tracking System
  0 siblings, 2 replies; 9+ messages in thread
From: Colin Williams @ 2009-08-01 16:36 UTC (permalink / raw)
  To: bug-gnu-emacs

In 23.1.50.1, there's a bad interaction between tab completion and
tramp filenames.  If you try to do tab completion on
"/ssh:remote-host:~/~/te", where the file "test" exists on the remote
host but not locally, the completion says there's no match.

Colin






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
  2009-08-01 16:36 ` bug#4004: filename completion Colin Williams
@ 2009-08-03  3:13   ` Michael Albinus
  2009-08-03 18:37     ` Stefan Monnier
  2009-08-03  8:40   ` bug#4004: marked as done (filename completion) Emacs bug Tracking System
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2009-08-03  3:13 UTC (permalink / raw)
  To: Colin Williams; +Cc: 4004

Colin Williams <lackita@gmail.com> writes:

> In 23.1.50.1, there's a bad interaction between tab completion and
> tramp filenames.  If you try to do tab completion on
> "/ssh:remote-host:~/~/te", where the file "test" exists on the remote
> host but not locally, the completion says there's no match.

For me, it works.

What happens if you try to complete "/ssh:remote-host:~/te"?

Has the file "test" been created on the remote host outside Emacs, while
Tramp was running already?

Have you enabled partial-completion-mode, which is needed for Tramp
sometimes?

> Colin

Best regards, Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: marked as done (filename completion)
  2009-08-01 16:36 ` bug#4004: filename completion Colin Williams
  2009-08-03  3:13   ` Michael Albinus
@ 2009-08-03  8:40   ` Emacs bug Tracking System
  1 sibling, 0 replies; 9+ messages in thread
From: Emacs bug Tracking System @ 2009-08-03  8:40 UTC (permalink / raw)
  To: Michael Albinus

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]


Your message dated Mon, 03 Aug 2009 10:29:49 +0200
with message-id <nqvdl5e1vm.fsf@alcatel-lucent.de>
and subject line Re: bug#4004: filename completion
has caused the Emacs bug report #4004,
regarding filename completion
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4004: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4004
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3076 bytes --]

From: Colin Williams <lackita@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: filename completion
Date: Sat, 1 Aug 2009 12:36:44 -0400
Message-ID: <1b97198a0908010936o1f0b2015w8405a82648a5f869@mail.gmail.com>

In 23.1.50.1, there's a bad interaction between tab completion and
tramp filenames.  If you try to do tab completion on
"/ssh:remote-host:~/~/te", where the file "test" exists on the remote
host but not locally, the completion says there's no match.

Colin



[-- Attachment #3: Type: message/rfc822, Size: 2439 bytes --]

From: Michael Albinus <michael.albinus@gmx.de>
To: Colin Williams <lackita@gmail.com>
Cc: <4004-done@emacsbugs.donarmstrong.com>
Subject: Re: bug#4004: filename completion
Date: Mon, 03 Aug 2009 10:29:49 +0200
Message-ID: <nqvdl5e1vm.fsf@alcatel-lucent.de>

Colin Williams <lackita@gmail.com> writes:

> So partial completion mode seems to fix the problem.  I thought
> graying out the irrelevant parts of the path was a handy feature, but
> I don't really mind doing without it.

I don't completely understand what you mean with your remark about
"graying out the irrelevant parts", but there was an error, indeed (it
didn't mark parts starting with tilde). I've committed a fix to the
trunk.

Besides this, I believe there is no problem anymore, so I have set this
bug to resolved.

> Cheers,
> Colin

Best regards, Michael.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
  2009-08-03  3:13   ` Michael Albinus
@ 2009-08-03 18:37     ` Stefan Monnier
  2009-08-03 18:46       ` Michael Albinus
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2009-08-03 18:37 UTC (permalink / raw)
  To: 4004, Colin Williams, Michael Albinus

> Have you enabled partial-completion-mode, which is needed for Tramp
> sometimes?

Note that partial-completion-mode is on the way out, so if you need
partial-completion-mode to make it work, it's important to know it.


        Stefan





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
  2009-08-03 18:37     ` Stefan Monnier
@ 2009-08-03 18:46       ` Michael Albinus
  2009-08-06 18:37         ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2009-08-03 18:46 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Colin Williams, 4004

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Have you enabled partial-completion-mode, which is needed for Tramp
>> sometimes?
>
> Note that partial-completion-mode is on the way out, so if you need
> partial-completion-mode to make it work, it's important to know it.

I must check the code, but IIRC partial-completion-mode is just an
indication for Tramp whether some file name completion functionality
shall be enabled, before Tramp is fully loaded. There were people who
disliked Tramp's file name completion.

If partial-completion-mode will be kicked off, Tramp might need another
indication. Just tell me when it happens, that I can change Tramp.

Just now?

>         Stefan

Best regards, Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
  2009-08-03 18:46       ` Michael Albinus
@ 2009-08-06 18:37         ` Stefan Monnier
  2009-08-07 12:04           ` Michael Albinus
       [not found]           ` <nqprb7vnhr.fsf@alcatel-lucent.de>
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan Monnier @ 2009-08-06 18:37 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Colin Williams, 4004

>>> Have you enabled partial-completion-mode, which is needed for Tramp
>>> sometimes?
>> 
>> Note that partial-completion-mode is on the way out, so if you need
>> partial-completion-mode to make it work, it's important to know it.

> I must check the code, but IIRC partial-completion-mode is just an
> indication for Tramp whether some file name completion functionality
> shall be enabled, before Tramp is fully loaded. There were people who
> disliked Tramp's file name completion.

Then this needs to be fixed.  Looking at the code, I can't quite
understand what it does: it seems that Tramp's method/user/host
completion is only activated for people you use either
partial-completion-mode, ido, icycle, or XEmacs.  I'm not sure what's
the logic behind it, but I'd rather just activate it based on a specific
configuration variable (or just always activate it, as you do in
XEmacs).  In Emacs-23, the functionality that was previous offered by
partial-completion-mode is enabled by default (tho implemented
differently and activated differently as well).


        Stefan





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
  2009-08-06 18:37         ` Stefan Monnier
@ 2009-08-07 12:04           ` Michael Albinus
       [not found]           ` <nqprb7vnhr.fsf@alcatel-lucent.de>
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Albinus @ 2009-08-07 12:04 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Colin Williams, 4004@emacsbugs.donarmstrong.com, emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

[added emacs-devel, we shall continue to discuss there]

>> I must check the code, but IIRC partial-completion-mode is just an
>> indication for Tramp whether some file name completion functionality
>> shall be enabled, before Tramp is fully loaded. There were people who
>> disliked Tramp's file name completion.
>
> Then this needs to be fixed.  Looking at the code, I can't quite
> understand what it does: it seems that Tramp's method/user/host
> completion is only activated for people you use either
> partial-completion-mode, ido, icycle, or XEmacs.  I'm not sure what's
> the logic behind it, but I'd rather just activate it based on a specific
> configuration variable (or just always activate it, as you do in
> XEmacs).  In Emacs-23, the functionality that was previous offered by
> partial-completion-mode is enabled by default (tho implemented
> differently and activated differently as well).

There was a discussion about some years ago, when I did add Tramp's
autoloads. People were annoyed, that even after typing something like
"/a" in the minibuffer, Tramp was already loaded, which raised some
delays. So it was suggested to make Tramp's autoloading optional. It was
even requested that this "optionality" should not be something, which
the user has to disnable herself; users should not be bashed by a new
feature they are not interested in.

The compromise was to find indications, were it could be expected that
the user would appreciate Tramp. partial-completion-mode was the first
candidate, ido and icycle were added later. The XEmacs case is
different, because there is another syntax for Tramp.

If partial-completion-mode is discarded in Emacs, we should either find
a replacement for this "indication", or we shall decide, that Tramp *is*
always loaded as soon as somebody writes an absolute filename in the
minibuffer.

The check for partial-completion-mode shall remain in tramp.el, for
backward compatibility.

>         Stefan

Best regards, Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
       [not found]           ` <nqprb7vnhr.fsf@alcatel-lucent.de>
@ 2009-08-10 19:53             ` Stefan Monnier
       [not found]             ` <jwvfxbzla87.fsf-monnier+emacsbugreports@gnu.org>
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2009-08-10 19:53 UTC (permalink / raw)
  To: Michael Albinus
  Cc: Colin Williams, 4004@emacsbugs.donarmstrong.com, emacs-devel

> There was a discussion about some years ago, when I did add Tramp's
> autoloads. People were annoyed, that even after typing something like
> "/a" in the minibuffer, Tramp was already loaded, which raised some
> delays. So it was suggested to make Tramp's autoloading optional. It was
> even requested that this "optionality" should not be something, which
> the user has to disnable herself; users should not be bashed by a new
> feature they are not interested in.

That's beginning to make more sense.  But I just tried the following:

   emacs -Q
   C-x C-f /a TAB :

and then

   emacs -Q
   M-: (setq partial-completion-mode t)
   C-x C-f /a TAB :

and I don't see any difference (Tramp gets loaded when I hit : and no
earlier).  Could you show me another example where I can see
the difference, so I can better understand the tradeoffs?


        Stefan





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#4004: filename completion
       [not found]             ` <jwvfxbzla87.fsf-monnier+emacsbugreports@gnu.org>
@ 2009-08-10 20:06               ` Lennart Borgman
  0 siblings, 0 replies; 9+ messages in thread
From: Lennart Borgman @ 2009-08-10 20:06 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Colin Williams, Michael Albinus, 4004@emacsbugs.donarmstrong.com,
	emacs-devel

> and I don't see any difference (Tramp gets loaded when I hit : and no
> earlier).  Could you show me another example where I can see
> the difference, so I can better understand the tradeoffs?

When : is hit? That or something close to it might explain a bug I see
sometimes on w32. Tramp gets loaded when doing local file name
completion. Though it has something to do with my customization too,
it does not happen for "emacs -Q". I have not had time  to track it
down.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-10 20:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <nqvdl5e1vm.fsf@alcatel-lucent.de>
2009-08-01 16:36 ` bug#4004: filename completion Colin Williams
2009-08-03  3:13   ` Michael Albinus
2009-08-03 18:37     ` Stefan Monnier
2009-08-03 18:46       ` Michael Albinus
2009-08-06 18:37         ` Stefan Monnier
2009-08-07 12:04           ` Michael Albinus
     [not found]           ` <nqprb7vnhr.fsf@alcatel-lucent.de>
2009-08-10 19:53             ` Stefan Monnier
     [not found]             ` <jwvfxbzla87.fsf-monnier+emacsbugreports@gnu.org>
2009-08-10 20:06               ` Lennart Borgman
2009-08-03  8:40   ` bug#4004: marked as done (filename completion) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).