all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Glenn Morris <rgm@gnu.org>
Cc: 18891@debbugs.gnu.org
Subject: bug#18891: Doesn't handle pwd = /C: very well
Date: Tue, 04 Nov 2014 13:48:58 +0100	[thread overview]
Message-ID: <87d293dtc5.fsf@gmx.de> (raw)
In-Reply-To: <sw38a6k5jk.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 29 Oct 2014 16:02:55 -0400")

Glenn Morris <rgm@gnu.org> 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.





  reply	other threads:[~2014-11-04 12:48 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29 20:02 bug#18891: Doesn't handle pwd = /C: very well Glenn Morris
2014-11-04 12:48 ` Michael Albinus [this message]
2014-11-04 16:47   ` Glenn Morris
2014-11-04 17:06     ` Eli Zaretskii
2014-11-04 17:36       ` Glenn Morris
2014-11-04 18:47         ` Michael Albinus
2014-11-04 18:58           ` Glenn Morris
2014-11-04 19:30             ` Michael Albinus
2014-11-04 19:11           ` Glenn Morris
2014-11-04 19:36             ` Michael Albinus
2014-11-04 20:24       ` Stefan Monnier
2014-11-05 11:25         ` Michael Albinus
2014-11-05 19:43           ` Glenn Morris
2014-11-05 19:45             ` Glenn Morris
2014-11-05 19:53               ` Eli Zaretskii
2014-11-05 20:07                 ` Michael Albinus
2014-11-05 19:56               ` Michael Albinus
2014-11-05 22:44                 ` Stefan Monnier
2014-11-06  3:50                   ` Eli Zaretskii
2014-11-06  8:33                     ` Michael Albinus
2014-11-06 15:39                       ` Stefan Monnier
2014-11-06 15:50                         ` Michael Albinus
2014-11-06 23:30                           ` Stefan Monnier
2014-11-07 10:38                             ` Andreas Schwab
2014-11-07 15:06                               ` Stefan Monnier
2014-11-07 18:54                                 ` Andreas Schwab
2014-11-08  4:35                                   ` Stefan Monnier
2014-11-08  8:13                                     ` Michael Albinus
2014-11-08  8:14                                     ` Andreas Schwab
2014-11-08 15:33                                       ` Stefan Monnier
2014-11-08 16:13                                         ` Andreas Schwab
2014-11-08 18:01                                           ` Stefan Monnier
2014-11-08 18:13                                             ` Andreas Schwab
2014-11-08 20:30                                               ` Stefan Monnier
2014-11-08 20:57                                                 ` Andreas Schwab
2014-11-08 22:03                                                   ` Stefan Monnier
2014-11-08 22:09                                                     ` Andreas Schwab
2014-11-08 22:25                                                       ` Stefan Monnier
2014-11-08 22:31                                                         ` Andreas Schwab
2014-11-09  3:26                                                           ` Stefan Monnier
2014-11-09  9:13                                         ` Michael Albinus
2014-11-09 14:23                                           ` Stefan Monnier
2014-11-09 19:50                                             ` Michael Albinus
2014-11-10 15:29                                               ` Stefan Monnier
2014-11-10 15:55                                                 ` Michael Albinus
2014-11-10 22:30                                                   ` Stefan Monnier
2014-11-11  8:42                                                     ` Michael Albinus
2014-11-11 17:09                                                       ` Stefan Monnier
2014-11-11 21:13                                                         ` Michael Albinus
2014-11-12  1:46                                                           ` Stefan Monnier
2014-11-12  7:50                                                             ` Michael Albinus
2014-11-15 19:21                                                               ` Glenn Morris
2014-11-16 10:19                                                                 ` Michael Albinus
2014-11-05 20:04             ` Michael Albinus
2014-11-05 20:22               ` Glenn Morris
2014-11-07 14:52             ` Michael Albinus
2014-11-07 15:14               ` Eli Zaretskii
2014-11-07 16:58                 ` Michael Albinus
2014-11-07 19:56                   ` Eli Zaretskii
2014-11-07 20:10                     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d293dtc5.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=18891@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.