[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: |
Eli Zaretskii |
Subject: |
bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward' |
Date: |
Wed, 25 Sep 2019 18:05:21 +0300 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Eli Zaretskii <eliz@gnu.org>, lekktu@gmail.com, 37488@debbugs.gnu.org
> Date: Wed, 25 Sep 2019 15:17:11 +0200
>
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> >> > note that PREDICATE -> nil means "not equal", so with VALUE -> nil this
> >> > actually searches for non-nil values of the text property, which is a
> >> > reasonable (and the expected) default behavior.
> >>
> >> Is it? IME, we usually search for a specific value, not for any
> >> value.
> >
> > For me, yes, the function fills a certain gap. But I'm not an expert on
> > that matter.
>
> In my experience, we almost never search for a specific value for a text
> property, but any text that has that property. That's why I added the
> nil PREDICATE to avoid having to supply that awkward lambda into every
> function I wrote...
We have different experiences, then.
In any case, the API uses double negation in the default case (find
text whose value of PROPERTY does NOT match no-value), which is
baaad...
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Michael Heerdegen, 2019/09/23
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Juanma Barranquero, 2019/09/23
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward', Michael Heerdegen, 2019/09/23
- 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', Michael Heerdegen, 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', Michael Heerdegen, 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', Lars Ingebrigtsen, 2019/09/25
- bug#37488: 27.0.50; Inconsistent naming of arg of `text-property-search-forward' and `-backward',
Eli Zaretskii <=
- 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/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, 2019/09/27