From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#25295: Acknowledgement (26.0.50; Represent eieio objects using object-print in backtraces and edebug) Date: Fri, 30 Dec 2016 11:14:49 -0800 Message-ID: <01696DFE-7C0E-4FAC-8893-B6826DF7BCA8@ericabrahamsen.net> References: <87pokampa4.fsf@ericabrahamsen.net> <8760m2mmlq.fsf@ericabrahamsen.net> <87bmvu84lj.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1483125317 28658 195.159.176.226 (30 Dec 2016 19:15:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2016 19:15:17 +0000 (UTC) User-Agent: K-9 Mail for Android Cc: 25295@debbugs.gnu.org To: npostavs@users.sourceforge.net,Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 20:15:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cN2dv-0006F5-9D for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2016 20:15:07 +0100 Original-Received: from localhost ([::1]:41212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN2e0-00068T-67 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2016 14:15:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN2dr-00066x-JH for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 14:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cN2dq-0002Gq-7H for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 14:15:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cN2dq-0002GS-43 for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 14:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cN2dp-00082o-St for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 14:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Dec 2016 19:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25295 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25295-submit@debbugs.gnu.org id=B25295.148312529730897 (code B ref 25295); Fri, 30 Dec 2016 19:15:01 +0000 Original-Received: (at 25295) by debbugs.gnu.org; 30 Dec 2016 19:14:57 +0000 Original-Received: from localhost ([127.0.0.1]:60613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cN2dl-00082H-5Y for submit@debbugs.gnu.org; Fri, 30 Dec 2016 14:14:57 -0500 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:39594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cN2di-000827-Oe for 25295@debbugs.gnu.org; Fri, 30 Dec 2016 14:14:55 -0500 Original-Received: from [10.252.101.143] (unknown [198.134.93.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 25094BC903; Fri, 30 Dec 2016 19:14:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1483125292; bh=ULppsvl00BXSvMPepwbf3kO3rOlj8wIrqhZzz90yh04=; h=In-Reply-To:References:Subject:From:Date:To:CC:From; b=X34JokQYy/GkYWjiMonZrDlmd5buRJe3+RiJ6wMwHTNkqMxxmIgHYeRPOMwV8jLRn fLGvvNkfiofxOartJsFQicTKGsud4B6FFTiWsiDROIGvBzArMazA//+mQmfR2LBXCQ Vb8E5F7BbnvmTpCHVhhz9khp+1jZjabsZRFWn0F4= In-Reply-To: <87bmvu84lj.fsf@users.sourceforge.net> (npostavs's message of "Thu, 29 Dec 2016 22:42:48 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127591 Archived-At: On 12/29/16 22:42 PM, npostavs@users.sourceforge.net wrote: > You mean print_object? I thought the idea would be to change edebug and > backtrace code to (optionally?) use object-print instead of print. I do mean print_object, sorry. (And sorry I keep replying to you only!) On 12/30/16 09:51 AM, Eli Zaretskii wrote: >> From: Eric Abrahamsen >> Date: Thu, 29 Dec 2016 13:50:09 -0800 >> >> I guess this would require going into print.c and adding another branch >> under the Lisp_Vectorlike case statement of object_print. >> >> Is this sort of C code allowed to call back up to the lisp object-print >> function? > > If that Lisp function will then call print.c again, that's not a good > idea, since print.c internally uses a buffer by a certain fixed name. `object-print' ends up using `format', which looks like it calls print.c functions, so I guess that's out. I don't know the right level at which to intervene. All other lisp objects get a hard-coded #