From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simen =?iso-8859-1?q?Heggest=F8yl?= Newsgroups: gmane.emacs.devel Subject: Re: seq-some-p and nil Date: Thu, 10 Sep 2015 19:46:10 +0200 Message-ID: <1441907170.4222.0@smtp.gmail.com> References: <1441295429.4215.0@smtp.gmail.com> <87vbbrl2ai.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-9Z/W3iS3WonUjVLzCWQ+" X-Trace: ger.gmane.org 1441907313 28958 80.91.229.3 (10 Sep 2015 17:48:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 17:48:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 19:48:18 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 1Za5wr-0003xb-2I for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 19:47:49 +0200 Original-Received: from localhost ([::1]:50795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za5wq-0002w8-7I for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 13:47:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za5vP-0001WS-Nv for emacs-devel@gnu.org; Thu, 10 Sep 2015 13:46:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za5vK-0007Cb-LB for emacs-devel@gnu.org; Thu, 10 Sep 2015 13:46:19 -0400 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:33494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za5vK-0007CM-Ep for emacs-devel@gnu.org; Thu, 10 Sep 2015 13:46:14 -0400 Original-Received: by lamp12 with SMTP id p12so32367505lam.0 for ; Thu, 10 Sep 2015 10:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version:content-type; bh=Btkb2IrkV8fEtZYy2PusaB7OX4g3+YY8qecheVijohE=; b=AX7mdcW4iIWHNBRaVf8TXmpz21zx5HpQ96mXXUViWPYH/+mZs9l3Pc/Ybl4PIefqwi rIgZkeJMumYlrrAqH5kluVw0OkfEmExY+DfAN9OBd0xwyoKmIggjPMM5aXNgcllUX7rZ SP2tVAnnWjo3hyAUkOHXTZ4mliDBweF4pSmYuL+q52rE+0EibWIESJ36AKSNri3tg79Q qDGTIClJSSPWF1D09Q6qgH1s8iu8LYzQ8NgKRQ/uq95lb8te4NnOp1phg4pujrsB0E2G 4q7CWiULwGUMRCzLh9xoZ/J4Z+iwvOZZKuB2N6+Ca5qnCdgzjtybZ1vWDR9einePK30y ZgXQ== X-Received: by 10.152.18.194 with SMTP id y2mr37505161lad.88.1441907172360; Thu, 10 Sep 2015 10:46:12 -0700 (PDT) Original-Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id w3sm2861106lag.13.2015.09.10.10.46.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 10:46:11 -0700 (PDT) In-Reply-To: <87vbbrl2ai.fsf@petton.fr> X-Mailer: geary/0.10.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e 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:189815 Archived-At: --=-9Z/W3iS3WonUjVLzCWQ+ Content-Type: text/plain; charset=utf-8; format=flowed On Thu, Sep 3, 2015 at 9:40 PM, Nicolas Petton wrote: > This is definitely a bug, I will fix it! (I will copy the behavior of > `some' in CL). Thanks Nicolas, the fix looks good! While we're on it, wouldn't seq-some be even more powerful if it guaranteed to return the value from the first matched element? Or would that somehow be difficult for some kinds of seqs? (By the way, I saw your presentation about seq.el on en EmacsConf. It was interesting, thanks for holding it. That was also how I spotted the bug in the first place.) -- Simen --=-9Z/W3iS3WonUjVLzCWQ+ Content-Type: text/html; charset=utf-8 On Thu, Sep 3, 2015 at 9:40 PM, Nicolas Petton <nicolas@petton.fr> wrote:
This is definitely a bug, I will fix it! (I will copy the behavior of `some' in CL).

Thanks Nicolas, the fix looks good!

While we're on it, wouldn't seq-some be even more powerful if it
guaranteed to return the value from the first matched element? Or
would that somehow be difficult for some kinds of seqs?

(By the way, I saw your presentation about seq.el on en EmacsConf. It
was interesting, thanks for holding it. That was also how I spotted
the bug in the first place.)

-- Simen
--=-9Z/W3iS3WonUjVLzCWQ+--