unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Leo Liu <sdl.web@gmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: file watch feature missing on darwin
Date: Wed, 22 Jan 2014 10:00:49 +0100	[thread overview]
Message-ID: <52DF88C1.7090606@swipnet.se> (raw)
In-Reply-To: <87bnzastap.fsf@gmx.de>

Michael Albinus skrev 2014-01-17 13:10:
> Michael Albinus <michael.albinus@gmx.de> writes:
>
>> Jan Djärv <jan.h.d@swipnet.se> writes:
>>
>>> Hello.
>
> Hi Jan,
>
>>> AFAIK, using Glib and NS just means calling xg_select instead of
>>> pselect in one place.  It is not done, because there has been no need
>>> for it.
>>
>> Ah, thanks for the hint. I'll take it into account when I integrate that
>> code. In case of problems I'll ask you :-)
>
> Here I am already ...
>
> I'm just checking how to receive file notification events in batch
> mode. It works fine when inotify.c is linked with Emacs, using
> (read-event ...), but I'm not able to receive events when gfilenotify.c
> is linked.
>
> No problem when Emacs runs interactively. Do you know, how I could
> retrieve events in that case?

The select in the NS port runs in another thread.  So just switching to 
xg_select will not do.  You have to explicitly check if in batch mode, 
then check if GLib has file descriptors we don't know about, and then 
call xg_select in the main thread.

	Jan D.





  reply	other threads:[~2014-01-22  9:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30  1:45 file watch feature missing on darwin Leo Liu
2013-12-30  9:08 ` Michael Albinus
2013-12-30 14:44   ` Jan Djärv
2013-12-30 15:12     ` Michael Albinus
2013-12-30 15:30       ` Jan Djärv
2013-12-30 16:56         ` Michael Albinus
2014-01-17 12:10           ` Michael Albinus
2014-01-22  9:00             ` Jan D. [this message]
2014-01-22  9:56               ` Michael Albinus
2013-12-31  0:22         ` Leo Liu
2013-12-31 11:37       ` Rüdiger Sonderfeld

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=52DF88C1.7090606@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    --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 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).