[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: edebug: regrettable loss of information in Emacs 26.1 when printing

From: Noam Postavsky
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

On 21 May 2018 at 14:30, Eli Zaretskii <address@hidden> wrote:
>> From: Noam Postavsky <address@hidden>
>> Date: Mon, 21 May 2018 13:47:53 -0400
>> Cc: Emacs developers <address@hidden>
>> > 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'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]