unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Benjamin Slade <slade@lambda-y.net>
Cc: 39489@debbugs.gnu.org
Subject: bug#39489: 28.0.50; On Emacs 27, 28, tramp hangs indefinitely
Date: Mon, 10 Feb 2020 10:11:24 +0100	[thread overview]
Message-ID: <87zhdq4xj7.fsf@gmx.de> (raw)
In-Reply-To: <87r1z3fac8.fsf@lambda-y.net> (Benjamin Slade's message of "Sun,  09 Feb 2020 19:24:39 -0700")

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

Benjamin Slade <slade@lambda-y.net> writes:

> Hi Michael,

Hi Benjamin,

>> I don't know why `auth-source-search' needs to expand ".". Could it
>> be, that it is part of your `exec-path'?
>
> It turns out my $PATH variable had an 'empty' field
> (e.g. =/usr/local/bin::/home/slade/.guix-profile/bin=),
> eliminating that fixed the tramp issue I described in the bug
> report. (it's interesting that this only manifested was 27+)

An empty entry in $PATH is taken as `default-directory', implemented as
"." in `exec-path'. And this is a problem, if `call-process' searches
for the gpg command, and `default-directory' is remote. I have no idea
why this problem has uncovered in Emacs 27 only, though.

You have fixed it yourself I guess. But since it happens also for other
people, could you pls check whether the appended patch would have
solved it for you, keeping the empty field in your $PATH?

> [There is still an issue with the =em-tramp= package on Emacs 27+,
> which causes a complete lock-up (i.e. C-g won't work), but that
> should likely be a separate bug report.]

Please do.

> best wishes,
>   —Ben

Best regards, Michael.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 547 bytes --]

diff --git a/lisp/tramp.el b/lisp/tramp.el
index 7e68b639..4c057703 100644
--- a/lisp/tramp.el
+++ b/lisp/tramp.el
@@ -4868,7 +4868,8 @@ verbosity of 6."
   "Read a password from user (compat function).
 Consults the auth-source package.
 Invokes `password-read' if available, `read-passwd' else."
-  (let* ((case-fold-search t)
+  (let* ((default-directory (tramp-compat-temporary-file-directory))
+	 (case-fold-search t)
 	 (key (tramp-make-tramp-file-name
 	       ;; In tramp-sh.el, we must use "password-vector" due to
 	       ;; multi-hop.

  reply	other threads:[~2020-02-10  9:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 18:40 bug#39489: 28.0.50; On Emacs 27, 28, tramp hangs indefinitely Benjamin Slade
2020-02-07 21:34 ` Michael Albinus
2020-02-07 21:48   ` Benjamin Slade
2020-02-08  9:31     ` Michael Albinus
     [not found]       ` <87zhds4wpv.fsf@lambda-y.net>
2020-02-09 13:14         ` Michael Albinus
2020-02-10  2:24           ` Benjamin Slade
2020-02-10  9:11             ` Michael Albinus [this message]
2020-02-16 19:00               ` Benjamin Slade
2020-02-16 19:27                 ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zhdq4xj7.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=39489@debbugs.gnu.org \
    --cc=slade@lambda-y.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).