GNU bug report logs - #10387
CODE wishlist: search-prop.el

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Wed, 28 Dec 2011 08:03:02 UTC

Severity: wishlist

Tags: patch

Found in version 23.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Olson <mwolson <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 10387 <at> debbugs.gnu.org, Jari Aalto <jari.aalto <at> cante.net>
Subject: bug#10387: CODE wishlist: search-prop.el
Date: Thu, 12 Apr 2012 20:29:13 -0700
[Message part 1 (text/plain, inline)]
On Thu, Apr 12, 2012 at 2:55 PM, Stefan Monnier <monnier <at> iro.umontreal.ca>wrote:

> > I like this.  Gnus uses text properties extensively, and searching for
> > them using the standard functions (`next-property-change' and friends)
> > is a hassle.
> > `search-property' looks like what I have needed in the past.
>
> text-property-any (and t-p-not-all) seems to do the same, except it only
> searches forward.  Is there some other difference I'm missing (other
> than the `cycle' which doesn't seem tremendously useful)?
>

Differences compared to text-property-any:

 - Includes helper functions 'search-property-forward' and
'search-property-backward' which move point and closely match the interface
and behavior of 'search-forward' and 'search-backward'.  (Except for
'count'.)  The interactive use is nice: when you need it, you really need
it.

 - I don't remember what the original use case was for 'cycle'.  Possibly
to emulate the effect of hitting TAB in Emacs Muse to go to the next URL
(behavior that I would remove if I was starting again from scratch).

 - In the initial release of the file to gnu.emacs.sources, I wrote this
blurb.  Maybe there was a related shortcoming in text-property-any at the
time.

Blurb: "It should work perfectly well both in the case where consecutive
characters have the property, and in that where a single character has
the property."

-- 
Michael Olson  |  http://mwolson.org/
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.