[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-
From: |
Lars Ingebrigtsen |
Subject: |
bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward' |
Date: |
Fri, 27 Sep 2019 16:15:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> But that's not what the code seems to do. It just compares the value
> of property in the found region with that at point. In this example,
> they both are "o", so the code will reject the "oo" region at the end,
> and try to find the next one (and fail, because there's none).
No. Once again, you can test this behaviour with this simple code:
(insert "This is "
(propertize "bold1" 'face 'bold)
" and this is "
(propertize "italic1" 'face 'italic)
(propertize "bold2" 'face 'bold)
(propertize "italic2" 'face 'italic)
" at the end")
Put point inside the first bold text and see the difference between
(text-property-search-forward 'face 'bold t t)
(text-property-search-forward 'face 'bold t nil)
>> >> > I don't understand how this answers my questions.
>> >>
>> >> Try (text-property-search-forward 'face) on the example. It'll give you
>> >> all regions that has a face property.
>> >
>> > That's a weird way to get to the result, if someone wants it.
>>
>> Seems like the obvious way to me.
>
> The obvious one would be to call next-single-property-change.
That doesn't give you the region matched.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', (continued)
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Lars Ingebrigtsen, 2019/09/25
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/25
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Lars Ingebrigtsen, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Lars Ingebrigtsen, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Lars Ingebrigtsen, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward',
Lars Ingebrigtsen <=
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/27
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Lars Ingebrigtsen, 2019/09/27
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/28
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Michael Heerdegen, 2019/09/26
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Eli Zaretskii, 2019/09/26