all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Alan Third <alan@idiocy.org>
Cc: Christian Johansson <christian@cvj.se>, 33135@debbugs.gnu.org
Subject: bug#33135: 27.0.50; (make-thread) TRAMP interactive freeze macOS 10.14
Date: Wed, 24 Oct 2018 13:12:36 +0200	[thread overview]
Message-ID: <871s8fd2e3.fsf@gmx.de> (raw)
In-Reply-To: <20181024105344.GB40431@breton.holly.idiocy.org> (Alan Third's message of "Wed, 24 Oct 2018 11:53:44 +0100")

Alan Third <alan@idiocy.org> writes:

>> Hi!

Hi,

>> Steps to reproduce:
>> 1. Open Emacs without any configuration: src/emacs -Q
>> 2. Make sure you are in *scratch* buffer
>> 3. Paste following Emacs Lisp code:
>> 
>> ;; FTP URL: ftp.dlptest.com or ftp://ftp.dlptest.com/
>> ;; FTP User: dlpuser@dlptest.com
>> ;; Password: e73jzTRTNqCN9PYAAjjn
>> (make-thread (lambda()
>>                (message "Listing directory files..")
>>                (let ((files (directory-files
>> "/ftp:dlpuser@dlptest.com@ftp.dlptest.com:/")))
>>                  (message "Opened directory")
>>                  (message "Directory files: %s" files))))
>> 
>> 4. Run M-x eval-buffer
>> 5. Emacs asks for FTP password, paste in mini-buffer: e73jzTRTNqCN9PYAAjjn
>> 6. Emacs now hangs, asks for password again and you can't stop it using C-g.
>> You get error in terminal:
>
> The NS port currently doesn’t handle interactive functions from
> threads very well. I suspect the problem is being caused by displaying
> a message from the background thread.

It's not only the NS port. There is a git branch
feature/tramp-thread-safe dedicated to make Tramp thread-safe. However,
this doesn't work well yet, see for example bug#25214 / bug#32426.

Furthermore, the "ftp" method navigates from Tramp to Ange-FTP. I
haven't tested this for being thread-safe; given that nobody has worked
on this I would expect even more problems.

Anyway, if you intend to continue to test this functionality, I
recommend you to use the said branch. There are changes which make file
visiting commands async aware, via a prefix command.  "C-x & C-x C-f ..."
is supposed to visit files asynchronously. This works for both local
files and remote files; but for local files you'll see the difference
for large files only.

Best regards, Michael.





  reply	other threads:[~2018-10-24 11:12 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-24 10:15 bug#33135: 27.0.50; (make-thread) TRAMP interactive freeze macOS 10.14 Christian Johansson
2018-10-24 10:53 ` Alan Third
2018-10-24 11:12   ` Michael Albinus [this message]
2018-10-25  5:08     ` Christian Johansson
2018-10-25  8:35       ` Michael Albinus
2018-11-05  6:03         ` Christian Johansson
2018-11-05 13:49           ` Michael Albinus
2018-11-05 15:39             ` Christian Johansson
2018-11-06 17:50               ` Christian Johansson
2018-11-07  7:48                 ` Michael Albinus
2018-11-08 15:42                   ` Christian Johansson
2018-11-09 10:12                     ` Michael Albinus
2018-11-09 12:08                       ` Christian Johansson
2018-11-11  8:53                         ` Michael Albinus
2018-11-11 16:00                           ` Christian Johansson
2018-11-14  7:59                           ` Christian Johansson
2018-11-14  8:03                             ` Christian Johansson
2018-11-14  8:08                               ` Michael Albinus
2018-11-16 11:16                                 ` Christian Johansson
2018-11-16 11:53                                   ` Michael Albinus
2018-11-16 13:13                                     ` Christian Johansson
2018-11-16 13:45                                       ` Michael Albinus
2018-11-19 11:56                                         ` Christian Johansson
2018-11-14  8:05                             ` Michael Albinus
2018-10-25  5:03   ` Christian Johansson
2022-04-24 14:22 ` Lars Ingebrigtsen
2022-04-24 15:00   ` Christian Johansson

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=871s8fd2e3.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=33135@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=christian@cvj.se \
    /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.