From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky 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 17:20:08 -0400 Message-ID: References: <20180521171019.GA5750@ACM> <83sh6keu9n.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1526937501 16888 195.159.176.226 (21 May 2018 21:18:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 May 2018 21:18:21 +0000 (UTC) Cc: Alan Mackenzie , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 23:18:17 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 1fKsC6-0004EL-8O for ged-emacs-devel@m.gmane.org; Mon, 21 May 2018 23:18:14 +0200 Original-Received: from localhost ([::1]:52486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKsEC-0005sn-9U for ged-emacs-devel@m.gmane.org; Mon, 21 May 2018 17:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKsDz-0005si-WB for emacs-devel@gnu.org; Mon, 21 May 2018 17:20:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKsDz-0003UT-1x for emacs-devel@gnu.org; Mon, 21 May 2018 17:20:11 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:45482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKsDx-0003Sk-Gv; Mon, 21 May 2018 17:20:09 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id b130-v6so14282077oif.12; Mon, 21 May 2018 14:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=W1VKUmHFLPZs0XaDFd5QTxhisWV67BSZ72p58PEXrG0=; b=Q2ox3xCK+JfwOhFBX3053k6rzEQS28bMY9uwdyG5qE0eV63CMIAk8iVpia0x9aER/V it2IjpXLSAm6AQbJtMzfcz/Y1gcfLplB+HYj8lIynsBmLWCndg0mwQPOBbn3KvIE/Hv7 DQn/LFOq01OjxLpy6ZjwLmKuoM0QCZIL0f46UlGl7BvfYGqnWenghEl4fJCWjUeGrjPa rlL14VDS627tuB7/5wkZtPhW2ktwG3ZNmgW0y3QnKED8ufryY2TDOGHs6RH35yhpZ2Wq 3lvAaFfN02pVViAh0sipuhl72qZlUkmKPuwwXzAKxQidjAiH3EBQKPexFwLZ3JjG44on QgZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=W1VKUmHFLPZs0XaDFd5QTxhisWV67BSZ72p58PEXrG0=; b=mdpYbgoR6ffhZLYoacNKnq7ZbC5VX46tF2XrbkOyUGtbQvTMAKcGyC5U5jDS6tYix2 JO5vjrgfqrxKDBqvvESv/ZeId9i6hxgcw/Sdv1b5a+okR6QMtlgOQHnCLoTijQFhNSN8 eXM04J3/8tG1qchf8dflW6FYbG7T8mVZIB4VjTOv7DbsWMNbIbKZ6nzZ1vwQTivd0yfG PJRDfxZlUXjoyniKfrMtjRAix96eLET9JVD5qj/6iPouk3/2BpdGuIIsDsdE1khCvp+w fJL+P6Vo0ixT6zfJm0sX9h+e1js+yHTlmeQlRc6YZ78VNsRYZrdADHHZeAoLZ2kRPJ9B 85EQ== X-Gm-Message-State: ALKqPwetcC2wvMXOPk+A2vfOVYLJRS2aqfPHxZpnIgoasqbRnLZocEO/ t/ZSr/P8qytXCoHuFaEY/qE8lBYzbTDCs2cnl4ZlcA== X-Google-Smtp-Source: AB8JxZpmtraOlAf4iBWCJlsludBfI8mLrZYA4x3baW/z2kmhLqalo91w3oOUKKVBH5l2kkT2lh94Tk/1qVisxr0edY8= X-Received: by 2002:aca:508f:: with SMTP id e137-v6mr12915621oib.22.1526937608681; Mon, 21 May 2018 14:20:08 -0700 (PDT) Original-Received: by 10.74.5.135 with HTTP; Mon, 21 May 2018 14:20:08 -0700 (PDT) In-Reply-To: <83sh6keu9n.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::233 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:225529 Archived-At: On 21 May 2018 at 14:30, Eli Zaretskii wrote: >> 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 Alternatively (setq cl-print-readably t) has the same (though it affects non-edebug usage of cl-print as well). >> >> 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.) I think it was due to overly verbose output for EIEIO objects (e.g., Bug#25295). > 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? Yup, done. [1: d65430f6cb]: 2018-05-21 17:11:29 -0400 * etc/NEWS: Mention change in `edebug-prin1-to-string'. https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d65430f6cb48d009c28cc27c5171f6fc82c79663