all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Leo Liu <sdl.web@gmail.com>
Cc: 16928@debbugs.gnu.org
Subject: bug#16928: 24.3.50; file _flymake not deleted on remote hosts
Date: Tue, 04 Mar 2014 14:14:14 +0100	[thread overview]
Message-ID: <87iorugl7d.fsf@gmx.de> (raw)
In-Reply-To: <m1r46jgwal.fsf@gmail.com> (Leo Liu's message of "Mon, 03 Mar 2014 23:02:26 +0800")

Leo Liu <sdl.web@gmail.com> writes:

> 1. emacs -q
> 2. (add-hook 'find-file-hook 'flymake-find-file-hook)
> 3. make sure the php executable is available
> 4. save https://github.com/drupal/drupal/raw/7.x/update.php in a remote
>    host
> 5. open it in emacs
>
> And I see update_flymake.php not being deleted (cleaned up). So it seems
> at the time flymake-simple-cleanup was called, (file-exists-p
> "/host:/path/to/update_flymake.php") returned false.

Yes, I could reproduce it. The problem is, that flymake starts an
asynchronous process. It's sentinel calls then flymake-simple-cleanup,
which fires file-exists-p to an unpredictable time.

After serving flymake-find-file-hook, find-file has continued with the
other functions in find-file-hook. When the file-exists-p call from the
sentinel happened, Tramp was busy with requests from
vc-find-file-hook. And since Tramp is designed to work sequentially, it
couldn't serve promptly :-(

As temporary workaround, you could try

(add-hook 'find-file-hook 'flymake-find-file-hook 'append)

I will check, whether Tramp could be enabled to handle such asynchronous
calls. 

> Leo

Best regards, Michael.





  reply	other threads:[~2014-03-04 13:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 15:02 bug#16928: 24.3.50; file _flymake not deleted on remote hosts Leo Liu
2014-03-04 13:14 ` Michael Albinus [this message]
2014-03-04 14:20   ` Leo Liu
2014-03-04 14:53     ` Michael Albinus
2014-03-07 14:19       ` Michael Albinus
2014-03-07 15:21         ` Leo Liu
2019-09-30  3:54 ` Stefan Kangas
2019-10-02 13:00   ` Michael Albinus
2019-10-02 13:03     ` Stefan Kangas

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=87iorugl7d.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=16928@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /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.