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#18891: Doesn't handle pwd = /C: very well Date: Tue, 04 Nov 2014 13:48:58 +0100 Message-ID: <87d293dtc5.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415105430 2548 80.91.229.3 (4 Nov 2014 12:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 12:50:30 +0000 (UTC) Cc: 18891@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 13:50:23 2014 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 1XldZ1-0005wr-9a for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 13:50:23 +0100 Original-Received: from localhost ([::1]:40266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XldZ0-00066l-Ff for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2014 07:50:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XldYn-0005qX-Nn for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2014 07:50:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XldYh-0002Yw-HK for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2014 07:50:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XldYh-0002YR-DM for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2014 07:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XldYg-0003aC-Ql for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2014 07:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Nov 2014 12:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18891-submit@debbugs.gnu.org id=B18891.141510534613697 (code B ref 18891); Tue, 04 Nov 2014 12:50:02 +0000 Original-Received: (at 18891) by debbugs.gnu.org; 4 Nov 2014 12:49:06 +0000 Original-Received: from localhost ([127.0.0.1]:48343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XldXm-0003Yr-Bl for submit@debbugs.gnu.org; Tue, 04 Nov 2014 07:49:06 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:56133) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XldXj-0003Yh-IY for 18891@debbugs.gnu.org; Tue, 04 Nov 2014 07:49:04 -0500 Original-Received: from detlef.gmx.de ([87.146.57.22]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MPDaC-1XhFox3SJU-004VTP; Tue, 04 Nov 2014 13:48:59 +0100 In-Reply-To: (Glenn Morris's message of "Wed, 29 Oct 2014 16:02:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:bYBWfTwTMFFOEe5fFj5LLItpcvThL2gDefbXI+OWPUqyBR1hAIK rghxMG9Lw/YrRq8FEKw3IB2eNrRvO5VSwymIA+x99kYTaW4t32y2/FqZB3uPZcwtqiXJmqR +nnPk4NmjR4hND1uNqsKT8/ctM7jVy3oPMpV10AwMtDkf2EbC/n0mpVdSgawn4qcMRtvlWI T/PrxF3RWc/3ecw498lhw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:95470 Glenn Morris writes: > On a GNU/Linux system: > > mkdir -p /C: > cd /C: > emacs-24.4 -Q > > -> > > Tramp: Opening connection for C using scp... > Opening connection for C using scp... \ > Tramp: Sending command `exec ssh -e none C' > Tramp: Waiting for prompts from remote shell... > Waiting for prompts from remote shell... \ > Tramp failed to connect. If this happens repeatedly, try > `M-x tramp-cleanup-this-connection' > [waits for ~ 30 seconds] > Wrote /home/rgm/.emacs.d/tramp > > and Emacs never actually starts. 1. The Lisp backtrace reads like this: ... apply(tramp-sh-file-name-handler expand-file-name ("/C:./." nil)) tramp-file-name-handler(expand-file-name "/C:./." nil) file-attributes("/C:./.") normal-top-level() "/C:" as default directory is wrong. It triggers Tramp to start, which fails. Maybe one could prevent this problem by giving the default directory the prefix "/:". 2. If I wrap the call of `file-attributes' in `normal-top-level' with `ignore-errors', Emacs starts up after claiming the Tramp error. However, the docstring of `file-attributes' says "Value is nil if specified file cannot be opened.". Therefore, `file-attributes' itself must suppress errors even in such calls like dired.c:912: filename = Fexpand_file_name (filename, Qnil); 3. The 30 sec delay is caused by Tramp, which tries to show the connection buffer in order to give the user the possibility to know what's up. This is not useful in this case, because Emacs hasn't started yet. I would like to suppress this pause at this stage; however I didn't find a way, how I could check whether Emacs is able to show a buffer to the user (startup finished). A hint for this kind of check would be helpful for me. > cf: http://lists.gnu.org/archive/html/bug-gnu-emacs/2001-09/msg00154.html 13 years old ... it's time to fix it. Best regards, Michael.