From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73505: EIEIO manual out of date, doesn't reflect current functionality Date: Fri, 27 Sep 2024 08:48:07 -0400 Message-ID: References: <93_8XMSOOu0_kIfElCZTcNDPXyZ0rUh6CXkKtDd-CGAYsSFXcWMggsZyqtlqrYmDQOVMziu5T8CIQ4zL0VrnpKVl85vZ4pCE-cXyL3rHL9Q=@proton.me> <86setl8tue.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8303"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: zyd , 73505@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 27 14:55:52 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1suAVj-0001xe-Ih for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Sep 2024 14:55:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suAVV-0000hF-LL; Fri, 27 Sep 2024 08:55:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suAVS-0000f6-Qa for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2024 08:55:35 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suAVS-0000eU-GX for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2024 08:55:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=M8JKi2psRxlkQhue+tR+/iFJ/nDuIieC1D/F0H7qXeI=; b=c4hktoMKlzvFHezixjV3tXpSqgelPgojpkDux+fuS8Io4XN2CEmaTi60RnsrNgFBWacRdIwsyvjqumytUn1d1qzPqiFqDMvYKK27/uMfhUgCaVzdC+0aLNBkWC9qatHv2oMuYPzPQ0Z29iuEZbHxaQ2zmO2LU194WMBNr29GCAgpyqIs0nOqHYblIz8rV72tN1bEy2l4udE1FODTGVzrWPAM+SZXpjpaYGDNxbK/eNLsmpwKrm8WTLC631t37p9292L64WxJXhAcCvHuuGuvlDGtXhN6e8CsxdcdJ+zkmo7cm6vhrkaoqUO9qV6dy6td6JsEiqo3IHjCQ6HvPgVhMA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suAVu-0000nx-Q0 for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2024 08:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Sep 2024 12:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73505 X-GNU-PR-Package: emacs Original-Received: via spool by 73505-submit@debbugs.gnu.org id=B73505.17274417272486 (code B ref 73505); Fri, 27 Sep 2024 12:56:02 +0000 Original-Received: (at 73505) by debbugs.gnu.org; 27 Sep 2024 12:55:27 +0000 Original-Received: from localhost ([127.0.0.1]:59361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suAVJ-0000e0-P9 for submit@debbugs.gnu.org; Fri, 27 Sep 2024 08:55:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suAOq-0000Co-S3 for 73505@debbugs.gnu.org; Fri, 27 Sep 2024 08:48:45 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CEE4F100182; Fri, 27 Sep 2024 08:48:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1727441288; bh=8oVEkVuUL2+xtsXsEF8MOAWFTpuScljb1uidoHDeaHg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RxI/hG/3fszUww/01yyaoV3WwUvvoYJigsKJZPpRtulVSN+ZY8Py58PxTVKQGG0YK r/UG0RQrjzJE8SqTz/gt3U0KT60D7uIicROUByRGzbhCjLirHPNreWxzV4M+zyxkNQ xMaRel/JEX4UcA4rt5Du+LI2iV2lT/OFJFYiOkMZicMVyZ3s8L/+AtUNCU4B4PIFid HGG1Yr5WX8JMvJ6t6pGa6R3LuZcGHGiUK3z/cLrAJQybrEHIIcvnn6l4YY2Vy23lw2 JUFxxIvCKE7WO3VCbD8SsRtUIdY7Bvcfq9V56p/kkGyRYvWexzBLE3nqIRgv9cNvL9 AxFnTx2tAOPDA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E2728100044; Fri, 27 Sep 2024 08:48:08 -0400 (EDT) Original-Received: from pastel (unknown [216.154.18.220]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B4DD6120490; Fri, 27 Sep 2024 08:48:08 -0400 (EDT) In-Reply-To: <86setl8tue.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 27 Sep 2024 09:59:53 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292511 Archived-At: > But this isn't true at all, EIEIO has both of these features fully > functional in fact. It's both true and false: - EIEIO "has" none of those things because the defmethod stuff is now provided by something else than EIEIO. EIEIO only provides `defclass` and associated functions (e.g. `slot-value`). - But yes, the text is out of date because you can now use these features (with EIEIO objects, with defstruct objects, with oclosure objects, ...). > The EIEIO manual states that it provides method functionality for > Emacs Lisp. The manual has whole sections devoted to both > cl-defmethod and cl-defgeneric and refers to them as part of its > corpus. It has documentation for both. > > (info "(eieio) Generics") > (info "(eieio) Methods") This structure is a left-over from when generics were provided by EIEIO. We should clarify. > And as far as I can tell there is no eieio-specific defmethod or > defgeneric macros that aren't cl-defmethod and cl-defgeneric. > So I really doubt that I'm in error here. Actually, `eieio-compat` still provides the old `defmethod` and `defgeneric` (without `cl-`) Stefan