all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: How about text-property-functions using `equal' rather than `eq'?
Date: Tue, 05 Feb 2008 03:04:22 -0500	[thread overview]
Message-ID: <E1JMIn0-0007ZQ-NH@fencepost.gnu.org> (raw)
In-Reply-To: <20080204205358.GA2747@muc.de> (message from Alan Mackenzie on Mon, 4 Feb 2008 20:53:58 +0000)

    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	other threads:[~2008-02-05  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 20:53 How about text-property-functions using `equal' rather than `eq'? Alan Mackenzie
2008-02-05  8:04 ` Richard Stallman [this message]
2008-02-05  8:48   ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1JMIn0-0007ZQ-NH@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.