From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5840: 24.0.50; wrong tramp-file-name-regexp Date: Sun, 11 Apr 2010 14:53:49 -0400 Message-ID: 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 1271012338 7859 80.91.229.12 (11 Apr 2010 18:58:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Apr 2010 18:58:58 +0000 (UTC) Cc: 5840@debbugs.gnu.org, Thierry Volpiatto To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 11 20:58:55 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 1O12Mv-00087O-PX for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Apr 2010 20:58:54 +0200 Original-Received: from localhost ([127.0.0.1]:43659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O12Mv-0003Lx-Co for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Apr 2010 14:58:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O12Mq-0003Jx-7t for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 14:58:48 -0400 Original-Received: from [140.186.70.92] (port=52024 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O12Mo-0003Hn-VK for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 14:58:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O12Mn-0001dp-FZ for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 14:58:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58198) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O12Mn-0001dj-DM for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 14:58:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O12IE-0005i8-4K; Sun, 11 Apr 2010 14:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Apr 2010 18:54: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 5840-submit@debbugs.gnu.org id=B5840.127101203621946 (code B ref 5840); Sun, 11 Apr 2010 18:54:02 +0000 Original-Received: (at 5840) by debbugs.gnu.org; 11 Apr 2010 18:53:56 +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 1O12I8-0005hv-15 for submit@debbugs.gnu.org; Sun, 11 Apr 2010 14:53:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O12I6-0005hq-PD for 5840@debbugs.gnu.org; Sun, 11 Apr 2010 14:53:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAC+3wUtMCqWu/2dsb2JhbACbRXK1ZIUMBItG X-IronPort-AV: E=Sophos;i="4.52,185,1270440000"; d="scan'208";a="60630668" Original-Received: from 76-10-165-174.dsl.teksavvy.com (HELO ceviche.home) ([76.10.165.174]) by ironport2-out.pppoe.ca with ESMTP; 11 Apr 2010 14:53:49 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7EA15660BF; Sun, 11 Apr 2010 14:53:49 -0400 (EDT) In-Reply-To: <87tyri53r7.fsf@gmx.de> (Michael Albinus's message of "Sun, 11 Apr 2010 18:54:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Apr 2010 14:54: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:36190 Archived-At: >> with these settings: >> >> ,---- >> | (add-hook 'minibuffer-setup-hook >> | (lambda () (add-hook 'post-command-hook >> | 'minibuffer-completion-help nil t))) >> `---- >> >> If you do: >> C-x C-f ==> /su: >> >> You have not the time to type the second ":" and tramp fail. >> (same for ssh/ftp) While I do get a Tramp failure, indeed, this does not prevent me from typing the second :. I think the problem is more that the Tramp error is very loud and makes you think it's the end of the world, whereas in reality Emacs is still there waiting for you keep on typing. >> This could be fixed by modifying tramp-file-name-regexp like this: >> (tramp-file-name-regexp "\\`/\\([^[/:]+\\|[^/]+]\\):.*:") > This would be wrong. "/hostname:/path" is a valid remote file name, which > would not be catched by your regexp. > (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. > 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. I wonder, tho: why is Tramp so loud? Shouldn't it just call `signal' with appropriate parameters to indicate an error, without popping up any window? Stefan