From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Subtle bugs in interval code. Date: Fri, 23 Mar 2007 16:42:20 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1174664629 27244 80.91.229.12 (23 Mar 2007 15:43:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 15:43:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 23 16:43:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HUlvV-0007Qe-Jn for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 16:43:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUlxQ-0000bF-4v for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 10:45:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUlwK-0000EX-Ko for emacs-devel@gnu.org; Fri, 23 Mar 2007 11:44:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUlwJ-0000Dx-7s for emacs-devel@gnu.org; Fri, 23 Mar 2007 11:44:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUlwI-0000Dp-SO for emacs-devel@gnu.org; Fri, 23 Mar 2007 10:44:26 -0500 Original-Received: from pfepa.post.tele.dk ([195.41.46.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HUluN-0002Cr-Bd for emacs-devel@gnu.org; Fri, 23 Mar 2007 11:42:27 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 969C1FAC002 for ; Fri, 23 Mar 2007 16:42:26 +0100 (CET) In-Reply-To: ("Johan =?utf-8?Q?B?= =?utf-8?Q?ockg=C3=A5rd=22's?= message of "Fri\, 23 Mar 2007 15\:59\:39 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68404 Archived-At: bojohan+news@dd.chalmers.se (Johan Bockg=C3=A5rd) writes: > storm@cua.dk (Kim F. Storm) writes: > >> Note that we cannot just use plist-get instead of memq, as we then >> cannot differentiate between "property is on list with nil value" >> and "property is not on list". > > plist-member is a built-in function in `src/fns.c'. > (plist-member plist prop) > > Return non-nil if plist has the property prop. > plist is a property list, which is a list of the form > (PROP1 VALUE1 PROP2 VALUE2 ...). prop is a symbol. > Unlike `plist-get', this allows you to distinguish between a missing > property and a property with the value nil. > The value is actually the tail of plist whose car is prop. Brilliant!! Thanks. I have installed a fix using this. -- Kim F. Storm http://www.cua.dk