[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Added inotify support.
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] Added inotify support. |
Date: |
Mon, 01 Oct 2012 12:27:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
>> I think the cleaner option is to define a new object type for it.
>> It could be either a new Lisp_Misc type, so you can make them print as
>> something like "#<file-watcher NNN>" (take a look at "enum
>> Lisp_Misc_Type" and "union Lisp_Misc" in src/lisp.h for starters; adding
>> a new type will require adding corresponding branches to the switch
>> statements in alloc.c and in print.c).
> That sounds like the best option. I haven't implemented it yet. Is it
> possible to make the Lisp_Misc_Type comparable with `equal'?
It could be done (fairly easily), but I'd rather not.
> Because the watch-descriptor has to be comparable.
It's comparable with `eq'. Why would you need two different
#<file-watcher...> objects for the same C-level `wd'?
Stefan
- Re: [PATCH] Added basic file system watching support., Stefan Monnier, 2012/10/01
- Re: [PATCH] Added basic file system watching support., Eli Zaretskii, 2012/10/01
- [PATCH] Added inotify support., Rüdiger Sonderfeld, 2012/10/01
- Re: [PATCH] Added inotify support.,
Stefan Monnier <=
- Re: [PATCH] Added inotify support., Eli Zaretskii, 2012/10/02
- Re: [PATCH] Added inotify support., Óscar Fuentes, 2012/10/02
- Re: [PATCH] Added inotify support., Stefan Monnier, 2012/10/02
- Re: [PATCH] Added inotify support., Eli Zaretskii, 2012/10/02
- Re: [PATCH] Added inotify support., Stefan Monnier, 2012/10/03
- Re: [PATCH] Added inotify support., Eli Zaretskii, 2012/10/03
- Re: [PATCH] Added inotify support., Stefan Monnier, 2012/10/03
- Re: [PATCH] Added inotify support., Eli Zaretskii, 2012/10/03
- Re: [PATCH] Added inotify support., Stefan Monnier, 2012/10/03
- Re: [PATCH] Added inotify support., Eli Zaretskii, 2012/10/12