[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text property searching
From: |
Lars Ingebrigtsen |
Subject: |
Re: Text property searching |
Date: |
Mon, 16 Apr 2018 22:40:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
I've done some testing.
(progn
(insert "foo bar zot")
(put-text-property 2 3 'face nil)
(put-text-property 5 6 'face 'bold)
(goto-char (point-min))
(goto-char (next-single-property-change (point) 'face)))
This goes to 5, not to 2, so `next-single-property-change' doesn't seem
to consider a nil value to be different from a missing value, either.
So I think it might make sense to just leave that complication out of
this function, because it's rather obscure (categories and stuff that
sounds way too complicate :-)).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Text property searching, (continued)
- Re: Text property searching, Eli Zaretskii, 2018/04/16
- Re: Text property searching, Clément Pit-Claudel, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- Re: Text property searching, João Távora, 2018/04/16
- Re: Text property searching, Clément Pit-Claudel, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- Re: Text property searching, Eli Zaretskii, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- RE: Text property searching, Drew Adams, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- Re: Text property searching,
Lars Ingebrigtsen <=
- Re: Text property searching, Stefan Monnier, 2018/04/16
- Re: Text property searching, João Távora, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- Message not available
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- Re: Text property searching, Alan Mackenzie, 2018/04/17
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/17
- Re: Text property searching, Alan Mackenzie, 2018/04/17
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/17
- Re: Text property searching, Alan Mackenzie, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16