unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5840: 24.0.50; wrong tramp-file-name-regexp
Date: Mon, 12 Apr 2010 17:14:01 +0200	[thread overview]
Message-ID: <87sk703dqe.fsf@tux.homenetwork> (raw)
In-Reply-To: <87d3ydw1wr.fsf@tux.homenetwork>

Michael Albinus
<albinus@detlef.i-did-not-set--mail-host-address--so-tickle-me> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> (For the records, I also dislike Tramp's syntactic ambiguity. But this is
>>> history, I guess we cannot change it anymore.)
>>
>> Everything can be changed.
>
> Maybe we can discuss it in another thread.
>
>>> In order to fix this problem, one could tweak
>>> `minibuffer-completion-predicate' in `minibuffer-completion-help',
>>> which is `file-exists-p' in the given case.
>>
>> I think we somehow need to make the error a bit more quiet.
>> Most of it needs to be done on Tramp's side, but maybe we can help it by
>> having the completion code warn Tramp that this is only used
>> for completion.  Or maybe the completion code can catch the error and
>> just display it calmly.
>
> Thanks for reminding me! We have had the same problem in ido.el (and
> icycles.el, IIRC), and I have introduced `tramp-completion-mode' exactly
> for this purpose.
>
> The appended patch shall fix it; Thierry, could you, please, test? You
> need a `make bootstrap', because minibuffer.el is dumped into the binary.
Just tested your patch.
Yes it work fine. :-)
It propose similar completion on /su: than `anything-create-tramp-name'.

,----
| Possible completions are:
| su:localhost:
| su:root@
| su:my.network:
`----

Thank you.

> === modified file 'lisp/minibuffer.el'
> *** lisp/minibuffer.el	2010-03-24 18:02:56 +0000
> --- lisp/minibuffer.el	2010-04-12 03:48:02 +0000
> ***************
> *** 1028,1034 ****
>     "Display a list of possible completions of the current minibuffer contents."
>     (interactive)
>     (message "Making completion list...")
> !   (let* ((start (field-beginning))
>            (string (field-string))
>            (completions (completion-all-completions
>                          string
> --- 1028,1035 ----
>     "Display a list of possible completions of the current minibuffer contents."
>     (interactive)
>     (message "Making completion list...")
> !   (let* ((tramp-completion-mode t)
> ! 	 (start (field-beginning))
>            (string (field-string))
>            (completions (completion-all-completions
>                          string
>
>>         Stefan
>
> Best regards, Michael.
>
>
>
>
>

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/








  reply	other threads:[~2010-04-12 15:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06  6:06 bug#5840: 24.0.50; wrong tramp-file-name-regexp Thierry Volpiatto
2010-04-11 16:54 ` Michael Albinus
2010-04-11 18:53   ` Stefan Monnier
2010-04-11 20:12     ` Thierry Volpiatto
2010-04-12  5:20       ` Michael Albinus
2010-04-12  6:02         ` Thierry Volpiatto
2010-04-12  4:41     ` Michael Albinus
2010-04-12 15:14       ` Thierry Volpiatto [this message]
2010-04-12 18:20         ` Stefan Monnier
2010-04-12 19:08           ` Michael Albinus
2010-04-12 20:51             ` Stefan Monnier
2010-04-13  4:32               ` Michael Albinus
2010-04-13  6:25                 ` Thierry Volpiatto
2010-04-13 12:31                 ` Stefan Monnier
2010-04-13 13:09                 ` Stefan Monnier
2010-04-13 13:28                   ` Michael Albinus
2010-04-14 15:31                     ` Stefan Monnier
2010-04-14 22:11                       ` Michael Albinus
2010-04-15  5:01                         ` Stefan Monnier
2010-04-15 13:06                           ` Michael Albinus
2010-04-15 18:59                             ` Stefan Monnier
2010-04-15 19:22                             ` Stefan Monnier
2010-04-15 22:32                               ` Michael Albinus
2010-04-16  0:32                                 ` Stefan Monnier
2010-04-21 19:52                                   ` Michael Albinus
2011-11-20 16:15                                     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sk703dqe.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).