bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#21717: 24.5; describe-variable performances


From: Andreas Schwab
Subject: bug#21717: 24.5; describe-variable performances
Date: Tue, 20 Oct 2015 10:03:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> @@ -763,7 +763,9 @@ it is displayed along with the global value."
>                 (if (< (+ (length print-rep) (point) (- line-beg)) 68)
>                     (insert print-rep)
>                   (terpri)
> -                 (pp val)
> +                 (if (listp val)
> +                        (progn (insert "(") (mapc 'pp val) (insert ")"))

The problem with that is that it breaks printing cyclic structures.  If
val itself is a cycle you are stuck here.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

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