From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.devel Subject: Re: string> missing? Date: Thu, 4 Jun 2015 10:08:48 +0200 Message-ID: References: <87oakxkvqw.fsf@petton.fr> <83zj4grgkc.fsf@gnu.org> <87sia8n8b5.fsf@petton.fr> <87zj4gu821.fsf@gnu.org> <83sia8rdkm.fsf@gnu.org> <83pp5crbfd.fsf@gnu.org> <83mw0gr4eh.fsf@gnu.org> <87y4jzudd8.fsf@members.fsf.org> Reply-To: thibaut.verron@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1433405368 25309 80.91.229.3 (4 Jun 2015 08:09:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 08:09:28 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Nicolas Richard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 04 10:09:27 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 1Z0QDK-0001Lc-86 for ged-emacs-devel@m.gmane.org; Thu, 04 Jun 2015 10:09:22 +0200 Original-Received: from localhost ([::1]:41000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0QDE-0000bA-CX for ged-emacs-devel@m.gmane.org; Thu, 04 Jun 2015 04:09:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0QD9-0000al-Cw for emacs-devel@gnu.org; Thu, 04 Jun 2015 04:09:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0QD7-00022g-Fb for emacs-devel@gnu.org; Thu, 04 Jun 2015 04:09:11 -0400 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:34902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0QD7-00022W-8j for emacs-devel@gnu.org; Thu, 04 Jun 2015 04:09:09 -0400 Original-Received: by wgme6 with SMTP id e6so27271748wgm.2 for ; Thu, 04 Jun 2015 01:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=gqz7czplP0m2q8uDjx6V4GjaKx2gQIlZRYMPRC2ZU4E=; b=myV99pzLIeIVqXF6Tv7W5Z7lIAJr8SRT63RCHOOjz/ZqthNTUL3KH8uSTICf4QxVWk TC51BCaNCHLUANMiRNgwYh7MbwYoAMTzLmxNsRP3IVXDuI51glVHvWfJDKdb4e7PXMsO MamkbyJBAgZXbLOD71/cG10ed8NaSdjI5Pb6CpX9Q6CaYzvUMjWi8VpuBSMvHQPWd2AT vXFsluYCiyxrC0vBAmYLF6A9lPKjt3R1O8NSMfEJ+GnK1jkaNMYmMmLlAn/yw/nJj0iY 3SJ6oE4nNjuSpzMkWOSbzJWCOHsxOwkTM2r0KYi/gjRjY8oMpuzxByab8fGmzW6gtKLw VKIg== X-Received: by 10.180.77.193 with SMTP id u1mr9778974wiw.50.1433405348733; Thu, 04 Jun 2015 01:09:08 -0700 (PDT) Original-Received: by 10.27.11.166 with HTTP; Thu, 4 Jun 2015 01:08:48 -0700 (PDT) In-Reply-To: <87y4jzudd8.fsf@members.fsf.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22c 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:187015 Archived-At: 2015-06-04 9:44 GMT+02:00 Nicolas Richard : > > Thibaut Verron writes: > > Mostly to this: > > > > (setq str1 "foo") > > (setq str2 "foo") > > (setq str3 str1) > > (= str1 str2) ;;==> *error* > > (eq str1 str2) ;;==> nil > > (eq str1 "foo") ;;==> nil > > (eq str1 str3) ;;==> nil > > If that is not a typo, then it is a bug. I get t. I am 99% sure that it wasn't a typo, but indeed I get t now. I was at home on windows the first time, and now at work on linux, so I'll need to retry it tonight to be sure. > > > > (string= str1 str2) ;;==> t > > And also: > (equal str1 str2) ;;==> t Oh, I didn't know this one. And then it opens up a whole new world of equality functions, equalp for case-insensitive comparison, equal-including-properties... But indeed, it looks like equal is a good candidate for type-agnostic, dwim-style equality testing. Thibaut