I have an idea of something that I think would be very useful in emacs. What I would like to have is something that can loop through all overlays and/or textproperties that has a certain property, and then perform any of the millions of commants that can work on the region in emacs.
Example of uses:
I think you see where I’m going. My guess is that this should not be hard to do at all, I would just want to see if this already exists before I try to implement it myself.
This now has several implementations. Find more here: ApplyFunctionOnMultipleRegions.