From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: eieio Date: Sun, 16 Jun 2019 18:39:38 -0400 Message-ID: References: <83a7eo9nsh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="252885"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 00:54:58 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hce37-0013VY-9h for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 00:54:58 +0200 Original-Received: from localhost ([::1]:43276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hce2y-0006gz-5q for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 18:54:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54588) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hce2e-0006UT-Gl for emacs-devel@gnu.org; Sun, 16 Jun 2019 18:54:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcdoN-0000Ep-Db for emacs-devel@gnu.org; Sun, 16 Jun 2019 18:39:45 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43447) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcdoN-0000CX-74 for emacs-devel@gnu.org; Sun, 16 Jun 2019 18:39:43 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B5091811BA; Sun, 16 Jun 2019 18:39:40 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BE5E180D86; Sun, 16 Jun 2019 18:39:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1560724779; bh=Pi3EUHSQJ48RagfOEkyUNEQ1rFZJ/v64KiE/OOqBLtk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=N8zYC8eMfva//5KuEzSrNJMuBnugyiUo0OsB+h6a0FjqhHmdP5CtQh3B5DvGre59a pqQODlKtrYvhAEYCmkziTJ3yUyh3tzLOJfMX3Ma1t/6/2MT/aPnKLY+6SV4t4AL10w ZWCxn+NNRtvCfNOTC7iPDvDcwtoCcLEXbcPcwjqfH+krGLzlVBnIuIU/5FGufEM6LB Tvgrl46pr3HRFny0oDeB5eDTZxEnwIlLx/j9JH3/jf3jqLa5inBG1QrjlpR9aQCWuP JALGCFqnzjIo68qzg55a1Rg1spQ8OyMa14DQnP+aK0fcW2yigebcJAPz278ppPUo6m 8kSnYK/WzC5PQ== Original-Received: from alfajor (unknown [157.52.10.58]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8DBFF120D49; Sun, 16 Jun 2019 18:39:39 -0400 (EDT) In-Reply-To: (Lars Ingebrigtsen's message of "Sun, 16 Jun 2019 18:41:29 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:237756 Archived-At: > So that's the way it is with an object-print method on the object. If I > apply the following patch, I then get identical output: > > (cl-print-object obj (current-buffer)) > # [...] > +(cl-defmethod cl-print-object ((obj semanticdb-table-emacs-lisp) stream) > + "Pretty printer extension for `semanticdb-table-emacs-lisp'." > + (princ (eieio-object-name obj " (proxy)") stream)) Hmm... how does this code result in # ? This said, I'm not sure why we should care very much about preserving the detailed output in this particular case, since I don't think the rest of code will ever do much with it (it's only for human consumption and it's not particularly good at it). Stefan