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#10085: 24.0.91; completion-pcm--find-all-completions returns wrong remote file names Date: Tue, 22 Nov 2011 23:13:11 +0100 Message-ID: <8739df3ix4.fsf@gmx.de> References: <87ty5yu6or.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322000034 24659 80.91.229.12 (22 Nov 2011 22:13:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2011 22:13:54 +0000 (UTC) Cc: 10085@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 22 23:13:49 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RSyb4-0004PH-JV for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Nov 2011 23:13:47 +0100 Original-Received: from localhost ([::1]:60414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSyb4-0005Wo-1W for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Nov 2011 17:13:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSyb0-0005Us-DU for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 17:13:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSyay-0007MV-7G for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 17:13:42 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSyay-0007MR-5d for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 17:13:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RSycH-0006gA-Kg for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2011 17:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2011 22:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10085 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10085-submit@debbugs.gnu.org id=B10085.132200007925624 (code B ref 10085); Tue, 22 Nov 2011 22:15:01 +0000 Original-Received: (at 10085) by debbugs.gnu.org; 22 Nov 2011 22:14:39 +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 1RSybv-0006fF-8q for submit@debbugs.gnu.org; Tue, 22 Nov 2011 17:14:39 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RSybt-0006f8-5m for 10085@debbugs.gnu.org; Tue, 22 Nov 2011 17:14:38 -0500 Original-Received: (qmail invoked by alias); 22 Nov 2011 22:13:13 -0000 Original-Received: from p57BB96F0.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.240] by mail.gmx.net (mp002) with SMTP; 22 Nov 2011 23:13:13 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/L7IkMbI/LpKP6gu/Qhp/UbGdrUiDdUiLiszz40w eqLK6DLlscZ1Dc In-Reply-To: (Stefan Monnier's message of "Tue, 22 Nov 2011 12:04:23 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 22 Nov 2011 17:15:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54184 Archived-At: Stefan Monnier writes: >> Start "emacs -Q". Apply "C-x C-f /sudo:: TAB". This results in >> "/sudo:sudo:root@". A correct expansion would be "/sudo:root@". > > I haven't tracked this down yet, but while trying to I bumped into the > following problem: > > emacs -Q > (completion-try-completion "/sudo::" 'completion-file-name-table nil t) I get Debugger entered--Lisp error: (wrong-type-argument integerp t) completion-try-completion("/sudo::" completion-file-name-table nil t) eval((completion-try-completion "/sudo::" (quote completion-file-name-table) nil t) nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) > C-g at the prompt > C-x C-f /sudo:: TAB > > and at that point Emacs is frozen solid. The backtrace (shown after my > sig) shows that rfn-eshadow (run with inhibit-quit) ends up waiting for > a process that never replies. > > Can you look into it, while I try to solve the other problem? `expand-file-name' seems to access the remote host. This can be suppressed by let-binding of `non-essential' to t. Could you, please, try this patch: --8<---------------cut here---------------start------------->8--- === modified file 'lisp/net/tramp.el' --- lisp/net/tramp.el 2011-11-17 09:09:20 +0000 +++ lisp/net/tramp.el 2011-11-22 22:04:16 +0000 @@ -1609,7 +1609,9 @@ (ignore-errors (let ((end (or (tramp-compat-funcall 'overlay-end (symbol-value 'rfn-eshadow-overlay)) - (tramp-compat-funcall 'minibuffer-prompt-end)))) + (tramp-compat-funcall 'minibuffer-prompt-end))) + ;; We do not want to send any remote command. + (non-essential t)) (when (file-remote-p (tramp-compat-funcall --8<---------------cut here---------------end--------------->8--- > Stefan Best regards, Michael.