emacs-devel
[Top][All Lists]
Advanced

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

Re: Text property searching


From: Eli Zaretskii
Subject: Re: Text property searching
Date: Mon, 16 Apr 2018 22:48:49 +0300

> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Mon, 16 Apr 2018 21:01:08 +0200
> 
> The existing primitives are really awkward to work with.  Whenever I
> have to implement something that picks out data based on text
> properties, it's an awful experience.  There's so much you have to do by
> hand based on whether you're already in a region, or after it, and
> getting all the details right with `next-single-property-change' is so
> enervating that I usually resort to just looping over all the characters
> in the region and examine them one by one.
> 
> The new function allows a method of working that's natural if you've
> ever worked on Emacs before (i.e., `search-forward').

If this is a convenience function, we don't need to discuss it so
much.  Just whip up whatever you need and see if it makes things
easier for you.  Given enough time, we can see if it's time-proven
enough to be honored into subr.el and.or to be extended.



reply via email to

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