all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 72888@debbugs.gnu.org, 麻枝忠 <maedaqu@gmail.com>
Subject: bug#72888: Confusing descriptive text
Date: Sat, 31 Aug 2024 14:37:26 +0200	[thread overview]
Message-ID: <32535B11-34CF-4159-B791-5B5AD63CDA89@gmail.com> (raw)
In-Reply-To: <CAEhDdq-C3S=OdDMdSmQR=H=nAD0wU0qyXRA53Pj577Y=7i-hBg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

Thank you for making this text better. It can be made even more accurate: neither integers nor strings or bool-vectors are actually compared recursively in a useful sense so we shouldn't claim that they are, and nowadays both byte-compiled and interpreted closures are compiled but we should note the usual intensionality problems when comparing functions.

Here is a proposed amendment.


[-- Attachment #2: equal-doc.diff --]
[-- Type: application/octet-stream, Size: 797 bytes --]

diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 399a1d169c2..58577ed06c4 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -2414,9 +2414,9 @@ Equality Predicates
 @end example
 
 The @code{equal} function recursively compares the contents of objects
-if they are integers, strings, markers, lists, cons cells, vectors,
-bool-vectors, byte-code function objects, char-tables, records, or font
-objects.
+if they are lists, cons cells, vectors, records, markers, char-tables,
+font objects, or function objects (closures)@footnote{However, equality
+of distinct function objects cannot be guaranteed in general.).
 
 Comparison of strings is case-sensitive, but does not take account of
 text properties---it compares only the characters in the strings.

  parent reply	other threads:[~2024-08-31 12:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-30  6:58 bug#72888: Confusing descriptive text 麻枝忠
2024-08-30 10:59 ` Eli Zaretskii
2024-08-31 12:37 ` Mattias Engdegård [this message]
2024-08-31 12:58   ` Eli Zaretskii
2024-08-31 14:37     ` Mattias Engdegård
2024-08-31 16:07       ` Eli Zaretskii
2024-08-31 16:47         ` Mattias Engdegård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32535B11-34CF-4159-B791-5B5AD63CDA89@gmail.com \
    --to=mattias.engdegard@gmail.com \
    --cc=72888@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=maedaqu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.