From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Xu Chunyang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2019 21:33:37 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 38365@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157468656321058 (code B ref -1); Mon, 25 Nov 2019 21:33:37 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2019 12:56:03 +0000 Received: from localhost ([127.0.0.1]:47833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZDuN-0005TS-9I for submit@debbugs.gnu.org; Mon, 25 Nov 2019 07:56:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:49370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZDqc-0005JQ-UV for submit@debbugs.gnu.org; Mon, 25 Nov 2019 07:52:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56831) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYtXn-0007Bk-UI for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2019 10:11:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYtXm-0006pe-PT for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2019 10:11:23 -0500 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:36299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iYtXm-0006pJ-Kw for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2019 10:11:22 -0500 Received: by mail-ot1-x336.google.com with SMTP id f10so10397846oto.3 for ; Sun, 24 Nov 2019 07:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=K9gygnXmP3Gh0zlP6NXIUq0i1fsn89AsbNeItxMbShU=; b=gRbGz9IZEDhJk8W1ZT27cyQGzfIz7HvEDFzZg+PrfRIfZlsTQ9oxJCu/OZTs9yaggv 9OoZ1JDwPYYWh4x26PrgbkvYuYWHydvNLXxyJZUzK5KCQyozK9MdwLzaURropKA3MGsp 6ZqYjvsAjjsTxDV9u3amb/25DR/koUYqfUjHBmckhsw6HiVOB9xTldeq3ozkKyx1b78Y nU8YUwdDCP1HParQ+ZyBDCSlOaTnTWsHOwjxIZD4t7L2a1bXEr7EYFdGpfL88Y7n5SeC eB9fBr6SdgZV4h++i2xm+wpIAwC7gJWSmrvj4Z2oq5IXTHuiPUXiuGcjaBj4b00z1Gme kDCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=K9gygnXmP3Gh0zlP6NXIUq0i1fsn89AsbNeItxMbShU=; b=TX9lS66QEnWvhZxxdDVdcdjVbCc3UVZ1N7+xVdgRdhmK93s0mOjHNuKMPNgZfBEp8G M182NebaCuliQkvuvxvgX8IhtETP3XTLOQlZaXawo1wREaTcg+IdjbmS8h4VPk0AJZfN dNG9SuUL823F8fDhxAn2OqS0ydH2b25JCyBtzDoxrx3qInV2R8M3lIH6D8dwwkCakXJC X9AAIrR76Aq1Nho5hACYcE/1Sccr7rz/r0m07afgc1Orj2d6lR5l6E+/OFXPqFeSEBV/ sn3Ii886LO7kQu4JpFkeFI405RM+I4BNMS1oVY942pn+cpJjv3Lh55Yl4tHdYEdHZ9qD Z6pw== X-Gm-Message-State: APjAAAVSXelGTG7cAJHiJ/4aVQWohP8ugp5ShQSjTcIld+D1akvNTump swVH1aGnhJqp2QUjE+j6hyst4Zer9ffuGRM38xyNWS26bSIB/A== X-Google-Smtp-Source: APXvYqy3J6M2k4gRHfTad/9N5z9WKm1IchVSI2p17pc007eY37Q1wrVIoFxCSYsb6v7VkXWOVOw6xsuCd+GvJBqyzxI= X-Received: by 2002:a9d:7419:: with SMTP id n25mr16330612otk.193.1574608281357; Sun, 24 Nov 2019 07:11:21 -0800 (PST) MIME-Version: 1.0 From: Xu Chunyang Date: Sun, 24 Nov 2019 23:11:10 +0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::336 X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) (info "(eieio) Predicates") mentions -- Function: eieio-class-name class Return a string of the form =E2=80=98#=E2=80=99 whi= ch should look similar to other Lisp objects like buffers and processes. Printing a class results only in a symbol. but it is not right, the value is not string at all, it's a symbol (defclass my-class () ()) ;; =3D> my-class (eieio-class-name 'my-class) ;; =3D> my-class (type-of (eieio-class-name 'my-class)) ;; =3D> symbol The git master produced the same result as Emacs 26.3. I notice Emacs 24.3's class-name produces the expected result and the function is replaced by eieio-class-name since 24.4 (define-obsolete-function-alias 'class-name #'eieio-class-name "24.4") however, these two functions are different. It seems eieio-class-name contains a bug, the name suggests its value is a string, but it returns a symbol. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 25 18:05:44 2019 Received: (at control) by debbugs.gnu.org; 25 Nov 2019 23:05:44 +0000 Received: from localhost ([127.0.0.1]:49906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZNQO-0004Tp-D7 for submit@debbugs.gnu.org; Mon, 25 Nov 2019 18:05:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZNQM-0004Td-9U for control@debbugs.gnu.org; Mon, 25 Nov 2019 18:05:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iZNQH-0000NH-69 for control@debbugs.gnu.org; Mon, 25 Nov 2019 18:05:37 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1iZNQG-0007Ll-RV for control@debbugs.gnu.org; Mon, 25 Nov 2019 18:05:36 -0500 Subject: control message for bug 38374 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 25 Nov 2019 18:05:36 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 38365 38374 From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 01:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Xu Chunyang Cc: 38365@debbugs.gnu.org, Stefan Monnier Received: via spool by 38365-submit@debbugs.gnu.org id=B38365.157473210014559 (code B ref 38365); Tue, 26 Nov 2019 01:35:01 +0000 Received: (at 38365) by debbugs.gnu.org; 26 Nov 2019 01:35:00 +0000 Received: from localhost ([127.0.0.1]:50040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZPkp-0003mj-V0 for submit@debbugs.gnu.org; Mon, 25 Nov 2019 20:35:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZPko-0003mR-5r for 38365@debbugs.gnu.org; Mon, 25 Nov 2019 20:34:58 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZPkf-0008G6-45; Tue, 26 Nov 2019 02:34:51 +0100 From: Lars Ingebrigtsen References: Date: Tue, 26 Nov 2019 02:34:48 +0100 In-Reply-To: (Xu Chunyang's message of "Sun, 24 Nov 2019 23:11:10 +0800") Message-ID: <87o8wzifnr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Xu Chunyang writes: > (info "(eieio) Predicates") mentions > > -- Function: eieio-class-name class > Return a string of the form =?UTF-8?Q?=E2=80=98#=E2=80=99?= which should > look similar to other Lisp objects like buffers a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Xu Chunyang writes: > (info "(eieio) Predicates") mentions > > -- Function: eieio-class-name class > Return a string of the form =E2=80=98#=E2=80=99 w= hich should > look similar to other Lisp objects like buffers and processes. > Printing a class results only in a symbol. > > but it is not right, the value is not string at all, it's a symbol > > (defclass my-class () ()) > ;; =3D> my-class > > (eieio-class-name 'my-class) > ;; =3D> my-class > > (type-of (eieio-class-name 'my-class)) > ;; =3D> symbol > > The git master produced the same result as Emacs 26.3. I notice Emacs > 24.3's class-name produces the expected result and the function is > replaced by eieio-class-name since 24.4 > > (define-obsolete-function-alias 'class-name #'eieio-class-name "24.4") > > however, these two functions are different. It seems eieio-class-name > contains a bug, the name suggests its value is a string, but it > returns a symbol. My guess is that the documentation in the manual just wasn't updated when this stuff was rewritten back in 2014, and that the return value is correct. Stefan? Currently we have (defun eieio--class-print-name (class) "Return a printed representation of CLASS." (format "#" (eieio-class-name class))) (defun eieio-class-name (class) "Return a Lisp like symbol name for CLASS." (setq class (eieio--class-object class)) (cl-check-type class eieio--class) (eieio--class-name class)) (define-obsolete-function-alias 'class-name #'eieio-class-name "24.4") but eieio--class-print-name is only used as a fallback in one of the prin1 cases. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 38365@debbugs.gnu.org, Xu Chunyang Received: via spool by 38365-submit@debbugs.gnu.org id=B38365.157480109115887 (code B ref 38365); Tue, 26 Nov 2019 20:45:02 +0000 Received: (at 38365) by debbugs.gnu.org; 26 Nov 2019 20:44:51 +0000 Received: from localhost ([127.0.0.1]:53064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZhhb-00048B-Ci for submit@debbugs.gnu.org; Tue, 26 Nov 2019 15:44:51 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:18385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZhhZ-00047y-A5 for 38365@debbugs.gnu.org; Tue, 26 Nov 2019 15:44:49 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A7A86449A6E; Tue, 26 Nov 2019 15:44:43 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 786EA449119; Tue, 26 Nov 2019 15:44:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1574801082; bh=BiU9Euj+94nF1WjstFF/fLAmz3K/DQidjpJwMqg70zU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IFubfvi5EfhtWEBoEwCzYq2jwsxTD4poel+JfwY3AoHWJCPGSZygXsdPqSeqTvfd1 kSVrhgHE+cNEkWQY92LTCx9l9GIOC4OurbGWilKd1uAsFu5wo2WcJliRfsQ9X+Q1/4 UGjSmuFA0ePO9Ej5Wg6ZWuaKyV0Vm6Z4r5XJK++HI1yh+jdzd+EvWcdbjYs5r/HFYG tSkgqT9ZvXaOTRV1A298keY/C9Ev/LGN0hSnc4p7QgsHXWucpb8wzGdnCZ8MGakRPj e4a93J4tQWsZTFel3nSpJOgSVIhsn+TuDzRxF77ZJZAho2ODkM+Jwxdc+7ww8iVx5b 6zKSimXUnThZA== Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 37238121180; Tue, 26 Nov 2019 15:44:42 -0500 (EST) From: Stefan Monnier Message-ID: References: <87o8wzifnr.fsf@gnus.org> Date: Tue, 26 Nov 2019 15:44:38 -0500 In-Reply-To: <87o8wzifnr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 26 Nov 2019 02:34:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.070 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> however, these two functions are different. It seems eieio-class-name >> contains a bug, the name suggests its value is a string, but it >> returns a symbol. FWIW, here a class's name is indeed a symbol: the "not a name" version would be the class object itself (a struct). Stefan From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2019 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 38365@debbugs.gnu.org, Xu Chunyang Received: via spool by 38365-submit@debbugs.gnu.org id=B38365.15748568294521 (code B ref 38365); Wed, 27 Nov 2019 12:14:02 +0000 Received: (at 38365) by debbugs.gnu.org; 27 Nov 2019 12:13:49 +0000 Received: from localhost ([127.0.0.1]:53577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZwCa-0001Ar-W3 for submit@debbugs.gnu.org; Wed, 27 Nov 2019 07:13:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:55394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZwCZ-0001AX-V2 for 38365@debbugs.gnu.org; Wed, 27 Nov 2019 07:13:48 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZwCQ-0001OX-8f; Wed, 27 Nov 2019 13:13:40 +0100 From: Lars Ingebrigtsen References: <87o8wzifnr.fsf@gnus.org> Date: Wed, 27 Nov 2019 13:13:37 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 26 Nov 2019 15:44:38 -0500") Message-ID: <87woblecum.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >>> however, these two functions are different. It seems eieio-class-name >>> contains a bug, the name suggests its value is a string, but it >>> returns a symbol. > > FWIW, here a class's name is ind [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: >>> however, these two functions are different. It seems eieio-class-name >>> contains a bug, the name suggests its value is a string, but it >>> returns a symbol. > > FWIW, here a class's name is indeed a symbol: the "not a name" version > would be the class object itself (a struct). I've now updated the manual to say what it really returns now, but it's not a very useful function. :-) (I mean, it just returns its argument.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 27 07:13:59 2019 Received: (at control) by debbugs.gnu.org; 27 Nov 2019 12:13:59 +0000 Received: from localhost ([127.0.0.1]:53580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZwCk-0001BG-9f for submit@debbugs.gnu.org; Wed, 27 Nov 2019 07:13:59 -0500 Received: from quimby.gnus.org ([95.216.78.240]:55410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZwCi-0001B1-Ii for control@debbugs.gnu.org; Wed, 27 Nov 2019 07:13:56 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZwCb-0001Og-3t for control@debbugs.gnu.org; Wed, 27 Nov 2019 13:13:51 +0100 Date: Wed, 27 Nov 2019 13:13:48 +0100 Message-Id: <87v9r5ecub.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38365 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 38365 fixed close 38365 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 38365 fixed close 38365 27.1 quit From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2019 13:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 38365@debbugs.gnu.org, Xu Chunyang Received: via spool by 38365-submit@debbugs.gnu.org id=B38365.15748627655788 (code B ref 38365); Wed, 27 Nov 2019 13:53:01 +0000 Received: (at 38365) by debbugs.gnu.org; 27 Nov 2019 13:52:45 +0000 Received: from localhost ([127.0.0.1]:53679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZxkK-0001VI-SN for submit@debbugs.gnu.org; Wed, 27 Nov 2019 08:52:45 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZxkI-0001V1-LD for 38365@debbugs.gnu.org; Wed, 27 Nov 2019 08:52:43 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C95B583700; Wed, 27 Nov 2019 08:52:36 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1316581815; Wed, 27 Nov 2019 08:52:35 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1574862755; bh=m+wnRRUppbw1VySJMEFqHDzYTmpJLwkAG47JsETmsq8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JTYEAvAvkKq0Ot2rGJMzCtixto0DLV1u3B7k8V26XuGseoHMa7MSjqr28UJIk9Leb dY3YWdBVNpmZmZMxl+bpIJ0sFcLFItucfF02w8x3925JXld4q05rCUoLh2yWrDIk1L YOJ/ru3qRXQotSpuKLWyBFrusBlZ4bQhhuH8dyl1g33Lk9hChnrRpfi/TzdEe4rx9i xKaBlQLlz/faAjOq9XDuVFwxWdqouRHLmjkK4VhUDuzxWBHKqx1ITL9ctbP2yH+HKh zJmYCtFSP70LHt43UJetuuj6md36gAQ6wRl5boa5gwccV3YMNepRQpWuTPghUVdHHj xvT21dpXpl4mg== Received: from pastel (unknown [45.72.167.118]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C865012080E; Wed, 27 Nov 2019 08:52:34 -0500 (EST) From: Stefan Monnier Message-ID: References: <87o8wzifnr.fsf@gnus.org> <87woblecum.fsf@gnus.org> Date: Wed, 27 Nov 2019 08:52:33 -0500 In-Reply-To: <87woblecum.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 27 Nov 2019 13:13:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.004 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I've now updated the manual to say what it really returns now, but it's > not a very useful function. :-) (I mean, it just returns its argument.) It returns its argument only if its argument was a class name. It's more useful when its argument is a class object (or when you don't know which of the two it will be). Stefan From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2019 13:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: 38365@debbugs.gnu.org, Xu Chunyang Received: via spool by 38365-submit@debbugs.gnu.org id=B38365.15748629116077 (code B ref 38365); Wed, 27 Nov 2019 13:56:01 +0000 Received: (at 38365) by debbugs.gnu.org; 27 Nov 2019 13:55:11 +0000 Received: from localhost ([127.0.0.1]:53683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZxmh-0001Zw-9J for submit@debbugs.gnu.org; Wed, 27 Nov 2019 08:55:11 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZxmg-0001Zf-IN for 38365@debbugs.gnu.org; Wed, 27 Nov 2019 08:55:11 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZxmW-0002Ek-Vi; Wed, 27 Nov 2019 14:55:03 +0100 From: Lars Ingebrigtsen References: <87o8wzifnr.fsf@gnus.org> <87woblecum.fsf@gnus.org> Date: Wed, 27 Nov 2019 14:55:00 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 27 Nov 2019 08:52:33 -0500") Message-ID: <87a78he85n.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> I've now updated the manual to say what it really returns now, but it's >> not a very useful function. :-) (I mean, it just returns its argument.) > > It returns its argument only if its argument w [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: umontreal.ca] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: >> I've now updated the manual to say what it really returns now, but it's >> not a very useful function. :-) (I mean, it just returns its argument.) > > It returns its argument only if its argument was a class name. > It's more useful when its argument is a class object (or when you don't > know which of the two it will be). (eieio-class-name (make-instance 'my-class)) => Debugger entered--Lisp error: (wrong-type-argument eieio--class # class) signal(wrong-type-argument (eieio--class # class)) eieio-class-name(#) eval((eieio-class-name (make-instance 'my-class)) t) On the other hand: (eieio-object-class-name (make-instance 'my-class)) => my-class -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:48:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2019 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: 38365@debbugs.gnu.org, Xu Chunyang Received: via spool by 38365-submit@debbugs.gnu.org id=B38365.15748630346332 (code B ref 38365); Wed, 27 Nov 2019 13:58:01 +0000 Received: (at 38365) by debbugs.gnu.org; 27 Nov 2019 13:57:14 +0000 Received: from localhost ([127.0.0.1]:53692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZxof-0001e3-Sf for submit@debbugs.gnu.org; Wed, 27 Nov 2019 08:57:14 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZxoe-0001dm-6B for 38365@debbugs.gnu.org; Wed, 27 Nov 2019 08:57:12 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZxoV-0002FK-VO; Wed, 27 Nov 2019 14:57:06 +0100 From: Lars Ingebrigtsen References: <87o8wzifnr.fsf@gnus.org> <87woblecum.fsf@gnus.org> Date: Wed, 27 Nov 2019 14:57:03 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 27 Nov 2019 08:52:33 -0500") Message-ID: <875zj5e828.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > It returns its argument only if its argument was a class name. > It's more useful when its argument is a class object (or when you don't > know which of the two it will be). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > It returns its argument only if its argument was a class name. > It's more useful when its argument is a class object (or when you don't > know which of the two it will be). Oh, class object, not object. Never mind. :-) (eieio-class-name (eieio--class-object 'my-class)) => my-class -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no