From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: edebug: regrettable loss of information in Emacs 26.1 when printing a variable's value. Date: Mon, 21 May 2018 21:30:28 +0300 Message-ID: <83sh6keu9n.fsf@gnu.org> References: <20180521171019.GA5750@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1526927401 21415 195.159.176.226 (21 May 2018 18:30:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 May 2018 18:30:01 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 20:29:57 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fKpZE-0005SD-KT for ged-emacs-devel@m.gmane.org; Mon, 21 May 2018 20:29:56 +0200 Original-Received: from localhost ([::1]:51907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKpbL-0008Tw-OY for ged-emacs-devel@m.gmane.org; Mon, 21 May 2018 14:32:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKpZl-0007SW-Tn for emacs-devel@gnu.org; Mon, 21 May 2018 14:30:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKpZg-00077p-RS for emacs-devel@gnu.org; Mon, 21 May 2018 14:30:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKpZg-00077b-K2; Mon, 21 May 2018 14:30:24 -0400 Original-Received: from [176.228.60.248] (port=3291 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fKpZg-0000UI-1X; Mon, 21 May 2018 14:30:24 -0400 In-reply-to: (message from Noam Postavsky on Mon, 21 May 2018 13:47:53 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:225524 Archived-At: > From: Noam Postavsky > Date: Mon, 21 May 2018 13:47:53 -0400 > Cc: Emacs developers > > > So, can I get edebug to print out the contents of a variable containing > > a function? If so how? > > (fset 'edebug-prin1-to-string #'prin1-to-string) ; gives Emacs 25 behaviour > > Or > > (setq cl-print-compiled 'static) ; shows constants array, but not bytecode It's IMO not nice to have this customizable on such a low level, let alone in a different package. I think we will need Edebug defcustom's for tailoring this behavior. (And given the terse output of the current default in this case, I wonder why we changed the default behavior from what it was in Emacs 25.) Maybe it's too late to introduce defcustom's before 26.1 is released, but in any case, this should be called out in NEWS. Could you please add an entry about this? Thanks.