From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#5840: 24.0.50; wrong tramp-file-name-regexp Date: Mon, 12 Apr 2010 17:14:01 +0200 Organization: ThierryVolpiatto Message-ID: <87sk703dqe.fsf@tux.homenetwork> References: <87d3ydw1wr.fsf@tux.homenetwork> <87tyri53r7.fsf@gmx.de> <878w8tmgew.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271086228 31255 80.91.229.12 (12 Apr 2010 15:30:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Apr 2010 15:30:28 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 12 17:30:27 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O1Lag-00009R-Ep for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 17:30:23 +0200 Original-Received: from localhost ([127.0.0.1]:55643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1Laf-0005Cz-8j for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 11:30:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1LZg-0004jH-8q for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:29:20 -0400 Original-Received: from [140.186.70.92] (port=35739 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1LZb-0004gn-PT for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:29:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1LZa-00080c-CL for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:29:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39641) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1LZY-00080V-KW for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:29:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O1LPi-0007eY-IN; Mon, 12 Apr 2010 11:19:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d3ydw1wr.fsf@tux.homenetwork> Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Apr 2010 15:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127108549229407 (code B ref -1); Mon, 12 Apr 2010 15:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Apr 2010 15:18:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1LOu-0007eG-01 for submit@debbugs.gnu.org; Mon, 12 Apr 2010 11:18:12 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1LOq-0007e1-4y for submit@debbugs.gnu.org; Mon, 12 Apr 2010 11:18:09 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:34870) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O1LOk-0005k8-Py for submit@debbugs.gnu.org; Mon, 12 Apr 2010 11:18:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1LOk-0007Jy-9x for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:18:02 -0400 Original-Received: from [140.186.70.92] (port=50313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1LOh-0007J3-HG for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:18:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1LOe-0005nz-O3 for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:17:59 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37738) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1LOe-0005nL-AE for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 11:17:56 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O1LOX-0002lL-O4 for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 17:17:49 +0200 Original-Received: from 162.211.85-79.rev.gaoland.net ([79.85.211.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Apr 2010 17:17:49 +0200 Original-Received: from thierry.volpiatto by 162.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Apr 2010 17:17:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 75 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 162.211.85-79.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ebFYpCgmeAJPohW/l6psfm9p5v0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Apr 2010 11:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36211 Archived-At: Michael Albinus writes: > Stefan Monnier 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/