GNU bug report logs - #24469
undo-tree and ... when printing objects

Previous Next

Package: emacs;

Reported by: Fabrice Popineau <fabrice.popineau <at> gmail.com>

Date: Mon, 19 Sep 2016 13:31:02 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 24469 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Fabrice Popineau <fabrice.popineau <at> gmail.com>
Cc: toby-undo-tree <at> dr-qubit.org, 24469 <at> debbugs.gnu.org
Subject: Re: bug#24469: undo-tree and ... when printing objects
Date: Wed, 19 Aug 2020 14:01:07 +0200
Fabrice Popineau <fabrice.popineau <at> gmail.com> writes:

> Following-up to this bug report.
>
> I think this patch may fix the problem.
>
> diff --git a/undo-tree.el b/undo-tree.el
> index 57bbaa0..4ac4fa5 100644
> --- a/undo-tree.el
> +++ b/undo-tree.el
> @@ -3105,7 +3105,9 @@ without asking for confirmation."
>                 (with-temp-buffer
>                    (prin1 (sha1 buff) (current-buffer))
>                    (terpri (current-buffer))
> -                 (let ((print-circle t)) (prin1 tree (current-buffer)))
> +                  (let ((print-circle t)
> +                        (print-length nil)
> +                        (print-level nil)) (prin1 tree (current-buffer)))
>                    (write-region nil nil filename))))

Looks obviously correct, so I've applied this without testing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 274 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.