From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: no empty (zero) string predicate in Elisp Date: Sat, 16 May 2015 16:22:16 +0300 Message-ID: References: <87h9s4rhx5.fsf@debian.uxu> <87wq107e40.fsf@petton.fr> <87a8x4ub83.fsf@blueberry.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11342c2c7b2446051632d9b9 X-Trace: ger.gmane.org 1431782556 2538 80.91.229.3 (16 May 2015 13:22:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2015 13:22:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emanuel Berg , emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 16 15:22:35 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ytc31-0002fp-2a for ged-emacs-devel@m.gmane.org; Sat, 16 May 2015 15:22:35 +0200 Original-Received: from localhost ([::1]:34611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytc30-00071c-BH for ged-emacs-devel@m.gmane.org; Sat, 16 May 2015 09:22:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytc2n-00071S-VX for emacs-devel@gnu.org; Sat, 16 May 2015 09:22:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ytc2m-00078y-U2 for emacs-devel@gnu.org; Sat, 16 May 2015 09:22:21 -0400 Original-Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:33238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytc2k-0006zm-Dg; Sat, 16 May 2015 09:22:18 -0400 Original-Received: by lagr1 with SMTP id r1so78512478lag.0; Sat, 16 May 2015 06:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=2rK+q+hkLgnCsCPIHvmlGMKjx4UlaBkETEM1A4KuK7s=; b=w1tdFMVlAj6/BaabXy1Tv4Ppn35zdSn2Sv8bx/HVrp1B8dzIko4FucUzWPnO48P9V5 U7lMkYrfvvsoIVluycBYiKmgU5qiM/HldR5ZtobYRsYOTjQBcZeS1om6RifvJKLSd8Sc xu8DXxQRYlmVexkVPUlyOzOPpf9KvbuXe6OPz4yRuzEFcDK7qpEyoysqf+xKZpdCzOLx lab5oDVdWHGGQI2J2hmhrsVsxdrqnWm/THYJumcMPh6D9/8dXC6imprO/+EVhBkbWXVz cy62th5TxQbvACKDlqUSxggGBT+zV2NdjJFxgZ4EGKq8XMkgONZfUTR2HygmYYmvX6aU Jg6Q== X-Received: by 10.152.243.9 with SMTP id wu9mr10592219lac.63.1431782536453; Sat, 16 May 2015 06:22:16 -0700 (PDT) Original-Received: by 10.112.25.7 with HTTP; Sat, 16 May 2015 06:22:16 -0700 (PDT) In-Reply-To: <87a8x4ub83.fsf@blueberry.home> X-Google-Sender-Auth: xMCyll0wOAKGas9JpGKqFWpFMj4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186531 gmane.emacs.help:104465 Archived-At: --001a11342c2c7b2446051632d9b9 Content-Type: text/plain; charset=UTF-8 I'd advise against this, as my intuition would always be to search for something starting with `string-` when dealing with strings. On 16 May 2015 at 12:23, Nicolas Petton wrote: > > Nicolas Petton writes: > > > You can use `string-empty-p' from subr-x.el or `seq-empty-p' from > > seq.el (which works on all sequence data types). > > > > seq.el will be included in Emacs 25.1, but in the meantime you can > > install it from GNU Elpa. > > BTW, would it be wise to obsolete `string-reverse' and `string-empty-p' > From subr-x in favor of `seq-reverse' and `seq-empty-p' which are much > more generic? > > Nico > -- > Nicolas Petton > http://nicolas-petton.fr > --001a11342c2c7b2446051632d9b9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'd advise against this, as my intuition would always = be to search for something starting with `string-` when dealing with string= s.=C2=A0

On = 16 May 2015 at 12:23, Nicolas Petton <nicolas@petton.fr> wro= te:

Nicolas Petton writes:

> You can use `string-empty-p' from subr-x.el or `seq-empty-p' f= rom
> seq.el (which works on all sequence data types).
>
> seq.el will be included in Emacs 25.1, but in the meantime you can
> install it from GNU Elpa.

BTW, would it be wise to obsolete `string-reverse' and `string-empty-p&= #39;
>From subr-x in favor of `seq-reverse' and `seq-empty-p' which are m= uch
more generic?

Nico
--
Nicolas Petton
http://nicolas-petto= n.fr

--001a11342c2c7b2446051632d9b9--