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: Sat, 31 Mar 2012 14:36:15 +0200 Message-ID: <87y5qhne0w.fsf@gmx.de> References: <87ty5yu6or.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333197431 10765 80.91.229.3 (31 Mar 2012 12:37:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2012 12:37:11 +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 Sat Mar 31 14:37:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SDxYF-0001Va-AY for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 14:37:03 +0200 Original-Received: from localhost ([::1]:56077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDxYE-0001Zo-Kf for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 08:37:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDxYB-0001Yu-NK for bug-gnu-emacs@gnu.org; Sat, 31 Mar 2012 08:37:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDxY9-0005FC-Um for bug-gnu-emacs@gnu.org; Sat, 31 Mar 2012 08:36:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDxY9-0005F4-R5 for bug-gnu-emacs@gnu.org; Sat, 31 Mar 2012 08:36:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDxYD-0002UE-Ni for bug-gnu-emacs@gnu.org; Sat, 31 Mar 2012 08:37:01 -0400 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: Sat, 31 Mar 2012 12:37: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.13331973869513 (code B ref 10085); Sat, 31 Mar 2012 12:37:01 +0000 Original-Received: (at 10085) by debbugs.gnu.org; 31 Mar 2012 12:36:26 +0000 Original-Received: from localhost ([127.0.0.1]:60250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDxXe-0002TO-2b for submit@debbugs.gnu.org; Sat, 31 Mar 2012 08:36:26 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:43952) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SDxXb-0002TF-KN for 10085@debbugs.gnu.org; Sat, 31 Mar 2012 08:36:24 -0400 Original-Received: (qmail invoked by alias); 31 Mar 2012 12:36:17 -0000 Original-Received: from p57BB94EB.dip0.t-ipconnect.de (EHLO arthur.gmx.de) [87.187.148.235] by mail.gmx.net (mp030) with SMTP; 31 Mar 2012 14:36:17 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+nV+VS1NOn52lV5KADBPGrmDDLkGxl/nopLU/lt+ zLD+MpKzspjnFO In-Reply-To: (Stefan Monnier's message of "Fri, 30 Mar 2012 14:28:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:58380 Archived-At: Stefan Monnier writes: > Still trying to figure out what's really going on inside Tramp. > Something I bumped into along the way (still doesn't quite explain it) is: > > (let ((non-essential t)) (file-name-nondirectory "/sudo:")) -> "sudo:" > (let ((non-essential nil)) (file-name-nondirectory "/sudo:")) -> "" > > I think it's wrong for those two to return different values. That's an error, and must be fixed, for sure. The correct result must be "". I could apply a simple fix in `tramp-find-foreign-file-name-handler', but this breaks other functionality. Grrrr. I fear it will take some days, until I have puzzled it out. > `non-essential' should prevent connecting to the remote host, but here > neither operation needs to contact the remote host. And of course, > things are made worse because it's not only `non-essential' that > controls the behavior but also `last-input-event' which makes debugging > that much more .... interesting. Hmm, yes. This is a heuristic for older Emacsen, which don't give Tramp a `non-essential' value. Maybe I shall change it, that in case `non-essential' does exist, no other check is needed. But I don't know, whether all completion packages outside core Emacs care about `non-essential' already. We shall postpone this change to 24.2, at least. > Stefan Best regards, Michael.