GNU bug report logs - #35921
26.2; Clarify how does equal-including-properties compare text properties

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Xu Chunyang <mail@HIDDEN>; Keywords: easy confirmed; merged with #6581; dated Mon, 27 May 2019 05:06:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 6581 35921. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 35921 <at> debbugs.gnu.org:


Received: (at 35921) by debbugs.gnu.org; 27 May 2019 11:13:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 27 07:13:17 2019
Received: from localhost ([127.0.0.1]:52803 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hVDZ7-000472-Hx
	for submit <at> debbugs.gnu.org; Mon, 27 May 2019 07:13:17 -0400
Received: from mail-it1-f171.google.com ([209.85.166.171]:36521)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1hVDZ3-00046f-2v; Mon, 27 May 2019 07:13:13 -0400
Received: by mail-it1-f171.google.com with SMTP id e184so23605772ite.1;
 Mon, 27 May 2019 04:13:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=hfsnZeEEVg0w9x/8eXiHGNGeQkLivmbnuEcSIcVuoBY=;
 b=VuWQWxBWklWY3iH9UtqocOr2EW7QYGCyqMbWRGoufl6ZmTJpVfXuu/834/ZGOu8zNk
 St2ycQUDcLivQAE+wRPOILNt2Amp/zMvzg8pbEWWIrEfAIWY/Z22hF/bnSeb4TiSlkyB
 htll5jE/vAYmL3was7gwHW7UBp59A9Rjs3iSrdISfQ4hicglnfwWP0EhU+LPaFgHnrxj
 z7QDAi3NIm465Yr1FsiAmMnqASW3aSfIAvg6iwyAEkb1msdWRGs2sRNMCrmrb6FfFfh4
 d9quRV21OvDTHE1vDsD2hYxOWbe7WRjzpfR//Ej5Bt117JTI+h6u+w4Lq6fOXGhUirCb
 o7pQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=hfsnZeEEVg0w9x/8eXiHGNGeQkLivmbnuEcSIcVuoBY=;
 b=dzCnn21a+wwGddiIrFHzqf240HVXRHvyBbzE1QbyazzJwhG/DQknQR4Pv5YEq/64+F
 8cXiblhRoWFVOh4TMUo6sFn2v6F+aqCEXUJAFyUkV2q/+8Q9WzLGPJQzH7q81UK6ffR5
 wDUKEhfu2m9UKYCkXWqz8lJK9tV/2XUxB4NQRonq695cNWa8A7wlPt3DYEYVAPcARYNg
 UGPYJGBja/u2Rq12buYclgA/Ag9GNF5aDxLxcCQNd3w61eAaNnPlUMoCw0Hg78QMTSlE
 Xl9D9Sp2Ja7hs8IOzPR3zNOPQ2Dq2h/IYlOLOY+Yes4CJpkxxedFVhgbF8X3UuFf4tMC
 TXRw==
X-Gm-Message-State: APjAAAWgGOPGNmJKkW+7b5cfxw9l3LF1N+fcANZQevSkOrCTQi0uQS8I
 qz98r11xjIPu5tSgsm5YwI0mnR/V
X-Google-Smtp-Source: APXvYqxRSJk2uCc6PlNCE/yNLjax3KSGUDWJtA7p9lm4zWJCgdGvTwEvWXMoqi1rw1/XU5nkTk9AiA==
X-Received: by 2002:a24:fd41:: with SMTP id m62mr28217585ith.67.1558955587332; 
 Mon, 27 May 2019 04:13:07 -0700 (PDT)
Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.gmail.com with ESMTPSA id
 s6sm462206ioo.31.2019.05.27.04.13.05
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 27 May 2019 04:13:05 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Xu Chunyang <mail@HIDDEN>
Subject: Re: bug#35921: 26.2;
 Clarify how does equal-including-properties compare text properties
References: <m2a7f8fpx1.fsf@HIDDEN>
Date: Mon, 27 May 2019 07:13:05 -0400
In-Reply-To: <m2a7f8fpx1.fsf@HIDDEN> (Xu Chunyang's message of "Mon, 27
 May 2019 13:05:14 +0800")
Message-ID: <871s0k881q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35921
Cc: 35921 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 35921 6581 
quit

Xu Chunyang <mail@HIDDEN> writes:

> it seems equal-including-properties uses `eq` to compare text properties
> instead of `equal`, but the docstring doesn't mention this and the info
> manual doesn't say this very clearly

It's a bug.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35921; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 May 2019 05:05:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 27 01:05:35 2019
Received: from localhost ([127.0.0.1]:52433 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hV7pH-0001YY-Eo
	for submit <at> debbugs.gnu.org; Mon, 27 May 2019 01:05:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40417)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1hV7pD-0001YH-H4
 for submit <at> debbugs.gnu.org; Mon, 27 May 2019 01:05:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:39013)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1hV7p8-0000jR-F6
 for submit <at> debbugs.gnu.org; Mon, 27 May 2019 01:05:26 -0400
Received: from eggs.gnu.org ([209.51.188.92]:54794)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1hV7p7-0001Sd-Fc
 for bug-gnu-emacs@HIDDEN; Mon, 27 May 2019 01:05:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1hV7p6-0000gA-Bz
 for bug-gnu-emacs@HIDDEN; Mon, 27 May 2019 01:05:25 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:58671)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1hV7p6-0000bI-2a
 for bug-gnu-emacs@HIDDEN; Mon, 27 May 2019 01:05:24 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.west.internal (Postfix) with ESMTP id C6FEF203
 for <bug-gnu-emacs@HIDDEN>; Mon, 27 May 2019 01:05:20 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Mon, 27 May 2019 01:05:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xuchunyang.me;
 h=from:to:subject:date:message-id:mime-version:content-type; s=
 fm1; bh=xfL3qTxgyFb5818niDEBxZsMGLbh2uiNkRBM8TyeFCg=; b=Zzldk+pi
 lXejpE+1tvwOmB1RgeB3ObJBGE4z544GW3DB6nX/VMYflF9REpKgHrdTVcyXULAH
 NUzEGpAfwJ3jPaKe1hlTp7CsFNTvjSBPd2aHQZXmiazjfHc+n156+EgqXJ5vduWe
 +LzTFHlkiHB6vjSMCOMmxnX6EgnWc0lTaaGgJD8NSZPOGcxZT6vde9aUdoTLskXn
 5XVx2skfQugScq0ru/uLgbtYrg4E9HLyqn9k5v7LTTtrfGwMRrdVnP7rgW4M/Hyx
 6AoMhcnu42RyK09iJiZv07LqqZakQ7RI1lsCx8X7JOu9ipRqufxA7aUIUKw1uv21
 vUjqLCUPi1aXzg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:message-id
 :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm2; bh=xfL3qTxgyFb5818niDEBxZsMGLbh2
 uiNkRBM8TyeFCg=; b=IeWzdlG3abokdoMIu+1AW4BjXicS6RH++gKWR9q+bucPo
 Q/cElRLSNycmDJJJk/lVmwoSoar1cG1+jB376ibjjgXVQ1VKPfAlpEObbb7AmHbg
 V84cvfvKAYjdCOsoUhUVJjHF6B+JZBSXEOIO2bOeEAqZOOBa2Egs/+s8SSHI7PJv
 Ea4qHWE43KygjxcLCRNzzQR4zjCPMBAibn5xEyD1UMOpfYk54Kh/AyfKG0qI3GLa
 SAoJidqTk5St2HsVJtpM9E3vDUCcsE2cSwD/Hc8JVE2AHVAwVlVQP8PdZI7hKMXh
 XN/buUM9gpgTD80XyL4nETNR9/klNJcOsBfRJ/xwA==
X-ME-Sender: <xms:D3DrXIY535msG2uTGLlwbJrK8DCv2iFKTheSw1knzD0HyVN2P1dr-w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddvuddgkeelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufgffkfggtgesthdtredttd
 ertdenucfhrhhomhepighuucevhhhunhihrghnghcuoehmrghilhesgihutghhuhhnhigr
 nhhgrdhmvgeqnecukfhppeduudejrdelfedrvddttddrvdeinecurfgrrhgrmhepmhgrih
 hlfhhrohhmpehmrghilhesgihutghhuhhnhigrnhhgrdhmvgenucevlhhushhtvghrufhi
 iigvpedt
X-ME-Proxy: <xmx:D3DrXIlwgHUBiDafWtcINjOmoAdZRP-2D0dnebR8xvgDEmKqIQuicw>
 <xmx:D3DrXD3-ztn0BS6AyJpxuoEOjZQPZsibQcVy-JhR_VsUiJo6Bakp0w>
 <xmx:D3DrXI1ejH5JhTC72AZ45aPIXWYUG1qXM7U3uIMwdCYxiG-edwpN5Q>
 <xmx:EHDrXAWKrgF7rGPYZUFkg_lx3Go3Zu3qXlo8N0yJB9FP4gZ8dWtFUQ>
Received: from Chunyangs-MacBook-Air.local (unknown [117.93.200.26])
 by mail.messagingengine.com (Postfix) with ESMTPA id CE92B380086
 for <bug-gnu-emacs@HIDDEN>; Mon, 27 May 2019 01:05:18 -0400 (EDT)
From: Xu Chunyang <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.2;
 Clarify how does equal-including-properties compare text properties
User-Agent: Emacs/26.2
Date: Mon, 27 May 2019 13:05:14 +0800
Message-ID: <m2a7f8fpx1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 64.147.123.20
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hi,

I expect the following returns t, however it doesn't

    (equal-including-properties
     #("a" 0 1 (face (:foreground "#bcc201")))
     #("a" 0 1 (face (:foreground "#bcc201"))))
    ;; => nil

it seems equal-including-properties uses `eq` to compare text properties
instead of `equal`, but the docstring doesn't mention this and the info
manual doesn't say this very clearly, maybe it's worth improving?




Acknowledgement sent to Xu Chunyang <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#35921; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 27 May 2019 11:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.