From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Text property searching Date: Tue, 17 Apr 2018 20:31:14 +0000 Message-ID: <20180417203114.GB4739@ACM> References: <87in8r16b0.fsf@mouse.gnus.org> <87d0yz15a3.fsf@mouse.gnus.org> <87604r143y.fsf@mouse.gnus.org> <87604qx4tj.fsf@mouse.gnus.org> <20180417191024.GA4739@ACM> <87muy1iqy2.fsf@mouse.gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1523997181 9155 195.159.176.226 (17 Apr 2018 20:33:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2018 20:33:01 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) Cc: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= , emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 22:32:56 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8XHc-0002HL-9b for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2018 22:32:56 +0200 Original-Received: from localhost ([::1]:33035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8XJj-00018F-0r for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2018 16:35:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8XIr-000160-G2 for emacs-devel@gnu.org; Tue, 17 Apr 2018 16:34:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8XIm-0007yq-Am for emacs-devel@gnu.org; Tue, 17 Apr 2018 16:34:13 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:10844 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1f8XIm-0007Kc-0Q for emacs-devel@gnu.org; Tue, 17 Apr 2018 16:34:08 -0400 Original-Received: (qmail 48305 invoked by uid 3782); 17 Apr 2018 20:34:02 -0000 Original-Received: from acm.muc.de (p5B146E15.dip0.t-ipconnect.de [91.20.110.21]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 17 Apr 2018 22:34:01 +0200 Original-Received: (qmail 6827 invoked by uid 1000); 17 Apr 2018 20:31:14 -0000 Content-Disposition: inline In-Reply-To: <87muy1iqy2.fsf@mouse.gnus.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224712 Archived-At: Hello, Lars. On Tue, Apr 17, 2018 at 21:16:37 +0200, Lars Ingebrigtsen wrote: > Alan Mackenzie writes: > > If you fail to do this, people will curse you. The functions, instead > > of being correct, will merely be functions which sort-of work most of > > the time. And the correct advice given to hackers wishing to write > > correct programs would be to avoid the new functions altogether and use > > the currently existing text property searching functions instead. > But as the experiment shows, the new function (dis)regards the same > subset of things (i.e., nil and the absence of a value) as the old > functions. So that doesn't seem likely to happen. Why did you distort my message by snipping essential context? The "this" I was talking about was the correct handling of category properties in the new functions, not the distinction between an absent property and a value of nil. Let me put it to you again: you need to deal with category text properties properly. If you don't, the things I listed in the paragraph above will surely happen. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).