bug-gnu-emacs
[Top][All Lists]
Advanced

[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 13:26:14 +0300

> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: lekktu@gmail.com,  larsi@gnus.org,  37488@debbugs.gnu.org
> Date: Wed, 25 Sep 2019 12:16:30 +0200
> 
> 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.

Regardless, I think your and my surprise at the default is already a
good sign that the API is sub-optimal.  After all, passing nil as a
mandatory argument is not an issue.





reply via email to

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