emacs-devel
[Top][All Lists]
Advanced

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

Re: How about text-property-functions using `equal' rather than `eq'?


From: Richard Stallman
Subject: Re: How about text-property-functions using `equal' rather than `eq'?
Date: Tue, 05 Feb 2008 03:04:22 -0500

    All the built in text property functions which compare properties appear
    to use `eq' for the comparison.  Some of these actually say this in
    their doc-strings or the pertinent manual page, some of them might
    actually say it in both.  ;-(

`eq' is faster, and a priori I see no reason to think that `equal'
is better in general.

    I would dearly love to use text-property-any to locate such a buffer
    position, but unfortunately (eq '(1) '(1)) => nil.  :-(  So I've had to
    code up a clumsy equivalent which will certainly be much slower.

You can write code which uses the primitives to find the next non-eq
property, then comparing it with equal and looping so that you find
the next non-equal property.




reply via email to

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