From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: eieio Date: Mon, 17 Jun 2019 00:44:03 +0200 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="251927"; 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: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 00:54:43 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 1hce2s-0013Oj-KF for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 00:54:42 +0200 Original-Received: from localhost ([::1]:43270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hce2r-0006aN-KA for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 18:54:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54428) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hce2V-0006Sk-Lq for emacs-devel@gnu.org; Sun, 16 Jun 2019 18:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcdse-0003vv-3v for emacs-devel@gnu.org; Sun, 16 Jun 2019 18:44:09 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:56936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcdsd-0003uq-U0 for emacs-devel@gnu.org; Sun, 16 Jun 2019 18:44:08 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcdsZ-0006wm-6Y; Mon, 17 Jun 2019 00:44:05 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXoDwD+XQD+VQD+QwD+ lwT+TAD+OAD+awKIWcxFAAACcklEQVQ4jW1TQW4bMQzkKXeqNXQWDcHnLiG9wEDOlsD4GlSwet5i AX2/o7XbpEkEY9fgkBpyOEvb+b/zvI41uNh/0of44BCLHHt7B2zjeQx2tbaU+43eJY8VcbHc23Fe 9SBB2DmOtWrvTXHVeIRxS5RoyAeQUTG2f4CJmOZZYOkHjeftDNYVrFrtZRZ01XKlMTaEVw4c0Yvu QH65ehr7+c3sijZT1Z61uNNGvM58Fo+rdKmaVRP7dSPh4RgIc+yKCsC34DdU8GBxIQRXkdy09ZzC GGcS71EiwQmGSwr2qtcdCH4VJxc8akqIt6wntAoAt0OiVSr61zrn8+iTXCxewCASNZnOCRNCg4LI 2LsKUrVY1taSMHsqIbAbcmD5ltErxNW2SPQELfyKLbiAdkuFurlLcifi4udwBSutfdllT1IPngy9 CrtDMFMzqxnIYrKRLSVWzIcmLLkdKRbDRjHPHla/8upO7DHRUiATgHq9K49dDT+fkJUhYtICpSAJ SynCK56gRUUyWCDEiytiJgU9WBHnz2QJAdMSIIlOjcvBPBxCqQi81FKxpHZBsnOBJ9Bsegb6Wa0L 5ImGeWE2UiuxwRgZu0iogAar3wFNsefW5071EgTU2BMAaH2cnmy/5HCcvsZvmhMAcqfJNNUENcF+ 2SsMyFwnbrtVLzDMzn2mCAkN2dOEcprxMXagwZAYEF7r2YQDPpI7kG+p1NzAg69lqiXhDvQb5kNT oO9wCbqVOwfMlLU/Dng0Fd4H7G/n8b+lOeFfgOiJiPrrjmAtG71F6fF6hRXjdyTRx/PUlL/T5zg9 dazqc3hSlZP/GrDrIP0SWbY/XrkPcDa+1HsAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Sun, 16 Jun 2019 18:39:38 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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:237755 Archived-At: Stefan Monnier writes: >> +(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 > > # (eieio-object-name obj) => "#" and it just appends whatever string you give to it after the object... > 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). No, we probably don't care much in this particular instance, but it was a really simple one to use as a test case. If you otherwise think it looks like a sensible transform, I can start doing the other ones (and some of them have better printed representations, if I recall correctly from skimming them). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no