emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subtle bugs in interval code.


From: Kim F. Storm
Subject: Re: Subtle bugs in interval code.
Date: Fri, 23 Mar 2007 16:42:20 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux)

address@hidden (Johan Bockgård) writes:

> address@hidden (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 <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]