From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Mon, 01 Oct 2012 12:27:36 -0400 Message-ID: References: <2181827.T3JxG88qQt@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349109241 4911 80.91.229.3 (1 Oct 2012 16:34:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 16:34:01 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: =?iso-8859-1?Q?R=FCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 18:34:06 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TIisL-00045A-N3 for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 18:29:45 +0200 Original-Received: from localhost ([::1]:41639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIiqU-00065I-FT for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 12:27:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIiqO-00064I-Gh for emacs-devel@gnu.org; Mon, 01 Oct 2012 12:27:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIiqI-00083b-Og for emacs-devel@gnu.org; Mon, 01 Oct 2012 12:27:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:11288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIiqI-00083X-KQ for emacs-devel@gnu.org; Mon, 01 Oct 2012 12:27:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLT4/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200391780" Original-Received: from 69-196-180-248.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.180.248]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Oct 2012 12:27:37 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BD3DDAE1FB; Mon, 1 Oct 2012 12:27:36 -0400 (EDT) In-Reply-To: <2181827.T3JxG88qQt@descartes> (=?iso-8859-1?Q?=22R=FCdiger?= Sonderfeld"'s message of "Mon, 01 Oct 2012 16:09:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153853 Archived-At: >> 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 "#" (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 # objects for the same C-level `wd'? Stefan