From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#5840: 24.0.50; wrong tramp-file-name-regexp Date: Mon, 12 Apr 2010 06:41:11 +0200 Message-ID: <878w8tmgew.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> References: <87d3ydw1wr.fsf@tux.homenetwork> <87tyri53r7.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271081180 9559 80.91.229.12 (12 Apr 2010 14:06:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Apr 2010 14:06:20 +0000 (UTC) Cc: 5840@debbugs.gnu.org, Thierry Volpiatto To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 12 16:06:18 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 1O1KHJ-0004vR-TR for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 16:06:18 +0200 Original-Received: from localhost ([127.0.0.1]:34006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1KDP-0005Qx-TM for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 10:02:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1CFd-0007VG-Sr for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 01:32:02 -0400 Original-Received: from [140.186.70.92] (port=49927 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1CFc-0007Ui-BO for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 01:32:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1CFa-0005JO-TS for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 01:32:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56000) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1CFa-0005JK-RV for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 01:31:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O1C44-0001fR-V9; Mon, 12 Apr 2010 01:20:04 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d3ydw1wr.fsf@tux.homenetwork> Resent-From: Michael Albinus 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 05:20:04 +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 5840-submit@debbugs.gnu.org id=B5840.12710496036400 (code B ref 5840); Mon, 12 Apr 2010 05:20:04 +0000 Original-Received: (at 5840) by debbugs.gnu.org; 12 Apr 2010 05:20:03 +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 1O1C42-0001f5-MD for submit@debbugs.gnu.org; Mon, 12 Apr 2010 01:20:03 -0400 Original-Received: from p4fc00a02.dip0.t-ipconnect.de ([79.192.10.2] helo=detlef) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1BSW-0001RS-ML for 5840@debbugs.gnu.org; Mon, 12 Apr 2010 00:41:17 -0400 Original-Received: by detlef (Postfix, from userid 1000) id EC7A820889; Mon, 12 Apr 2010 06:41:11 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Mailman-Approved-At: Mon, 12 Apr 2010 01:19:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Apr 2010 01:20:04 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 12 Apr 2010 10:00:17 -0400 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:36201 Archived-At: 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. --8<---------------cut here---------------start------------->8--- === 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 --8<---------------cut here---------------end--------------->8--- > Stefan Best regards, Michael.