From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#24469: undo-tree and ... when printing objects Date: Mon, 19 Sep 2016 20:40:06 +0200 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11407fce4d7530053ce0a5ad X-Trace: blaine.gmane.org 1474310602 12338 195.159.176.226 (19 Sep 2016 18:43:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2016 18:43:22 +0000 (UTC) Cc: 24469@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 19 20:43:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bm3X8-0002CL-11 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Sep 2016 20:43:14 +0200 Original-Received: from localhost ([::1]:57618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm3X5-0000jA-Sg for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Sep 2016 14:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm3V5-0007XP-3k for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2016 14:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm3V0-0002tu-5f for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2016 14:41:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm3V0-0002tf-2Y for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2016 14:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bm3Uz-0001LJ-Ok for bug-gnu-emacs@gnu.org; Mon, 19 Sep 2016 14:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Sep 2016 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24469-submit@debbugs.gnu.org id=B24469.14743104345117 (code B ref 24469); Mon, 19 Sep 2016 18:41:01 +0000 Original-Received: (at 24469) by debbugs.gnu.org; 19 Sep 2016 18:40:34 +0000 Original-Received: from localhost ([127.0.0.1]:35344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bm3UY-0001KT-Dw for submit@debbugs.gnu.org; Mon, 19 Sep 2016 14:40:34 -0400 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:36333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bm3UW-0001KG-TE for 24469@debbugs.gnu.org; Mon, 19 Sep 2016 14:40:33 -0400 Original-Received: by mail-oi0-f52.google.com with SMTP id t83so79515159oie.3 for <24469@debbugs.gnu.org>; Mon, 19 Sep 2016 11:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OgwUB+uw1BQO5GDAcMsHHA8N0kodVjs/joMmI2aH/ew=; b=u+h31Qwzaj0ksA3TqxEtcpM4y2p8coqdHgG4YbUGfhbTGM6ZcTzI+kuSHgvTODS6GP PFTwf3sXtRevskAiohzn0Uts/1vrIMS+BwQmwj4tcbR4cGUwq3uWmOUu8iEQoJKQJwN/ S519hClhvWQAXYATOlTmYHe3nUagWYu/pqciKBfqXv03hJwv8PbnlpHLHE6cABO9UOdi FJVcO3X4+3s7LhN08BE17jTm+o6bO6gz5nqsk/tjb1CPhg+WSpMGOYmiZgZCoTTmHlHP sCw310PkJ39/KkyvfRK8R4SvhUgjqdZaCFQbRtk4WIxl2aVFxG/INp2yUmkZ7DByct98 D6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OgwUB+uw1BQO5GDAcMsHHA8N0kodVjs/joMmI2aH/ew=; b=a1tci+Vz3GyTi4us8zs5ExxdNL/L30OcvuVr9ih57LWqqMgbBcn4HOVl0hWcXMbJhw 41EcidBLLKQ3DmFtjg/OiwmqaljHm8amq+RuEC9Hq46w8/QxuNC7mIc8E2qID8CcxAhK mOueGBrjlzHD9aSve0pXkWyFOnPV/Ui5Lr0PwcRm5neCpuOJdfDRC+D/q3gcqE9NKpWt Ijn2rwvSPUG+MYgvlNmCc8bIuTi4kWKrzvIEN48p/SWaXMHuUgrKhmtcSxWGNrkt2DOL Q0zZQDQ9rooX67HH5GsjkLSbstlVuFt11DlDhsOxgzjoofCn8QkroQ+XJzWS1DCdvQCV 3ulA== X-Gm-Message-State: AE9vXwP1mlsUR9KTr6XwYI420eroBaOHmth2hq7eeqJXckDm1V+L72Gnz6KcKbjMlazP6CXONrWbcm7WA5urTQ== X-Received: by 10.202.106.143 with SMTP id f137mr30965916oic.165.1474310427201; Mon, 19 Sep 2016 11:40:27 -0700 (PDT) Original-Received: by 10.202.180.194 with HTTP; Mon, 19 Sep 2016 11:40:06 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123448 Archived-At: --001a11407fce4d7530053ce0a5ad Content-Type: text/plain; charset=UTF-8 2016-09-19 15:57 GMT+02:00 Noam Postavsky : > On Mon, Sep 19, 2016 at 9:29 AM, Fabrice Popineau > wrote: > > > > Recently, Emacs started to dump "..." in undo-tree savefiles. For each > > file which is opened under Emacs, the undo-tree mode automatically saves > > the undo tree in a separate file and this undo tree is loaded back when > > the file is reloaded. The problem is in the way objects are printed. > > Obviously, no "..." string should appear in the undo-tree file and it > > started > > to happen only a few weeks ago. > > > > Thanks for any help / explanation on what's happening. > > It sounds like maybe `print-level' and/or `print-length' is bound to a > non-nil value while the tree is being printed? Can you show an example > of a problematic undo-tree file? > Here is what grep found for me : /c/temp/.!drive_c!Home!Org!AlgoCS!code!priorityQueue.specif.~undo-tree~:[cl-struct-undo-tree [nil ([nil ([nil ([nil ([nil ... ... nil ... 0 nil]) ((444 . 465) (t 22484 14555 0 0)) nil (22484 14590 286032 100000) 0 nil]) ((443 . 444)) nil (22484 14554 987413 0) 0 nil]) ((423 . 443) (t 22031 59305 0 0)) nil (22484 14554 987413 0) 0 nil]) nil nil (22484 14554 987413 0) 0 nil] #1=[nil nil ((415 . 417)) nil (22484 14641 640006 0) 0 nil] 3892 21 nil] Maybe the problem is in undo-tree because the package binds print-circle to t before printing its object, and it does not bind print-level and print-lenght. However, in my session, both print-level and print-length are nil. So I wonder why suddenly, they should change when undo-tree does its job. I'll try to trace the problem. Fabrice --001a11407fce4d7530053ce0a5ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2016-09-19 15:57 GMT+02:00 Noam Postavsky <npostavs@users= .sourceforge.net>:
On Mon, Sep 19, 2016 at 9:29 AM, Fabrice Popineau
<fabrice.popineau@gmail.co= m> wrote:
>
> Recently, Emacs started to dump "..." in undo-tree savefiles= .=C2=A0 For each
> file which is opened under Emacs, the undo-tree mode automatically sav= es
> the undo tree in a separate file and this undo tree is loaded back whe= n
> the file is reloaded. The problem is in the way objects are printed. > Obviously, no "..." string should appear in the undo-tree fi= le and it
> started
> to happen only a few weeks ago.
>
> Thanks for any help / explanation on what's happening.

It sounds like maybe `print-level' and/or `print-length' is bound t= o a
non-nil value while the tree is being printed? Can you show an example
of a problematic undo-tree file?

Here i= s what grep found for me :=C2=A0

/c/temp/.!drive_c= !Home!Org!AlgoCS!code!priorityQueue.specif.~undo-tree~:[cl-struct-undo-tree= [nil ([nil ([nil ([nil ([nil ... ... nil ... 0 nil]) ((444 . 465) (t 22484= 14555 0 0)) nil (22484 14590 286032 100000) 0 nil]) ((443 . 444)) nil (224= 84 14554 987413 0) 0 nil]) ((423 . 443) (t 22031 59305 0 0)) nil (22484 145= 54 987413 0) 0 nil]) nil nil (22484 14554 987413 0) 0 nil] #1=3D[nil nil ((= 415 . 417)) nil (22484 14641 640006 0) 0 nil] 3892 21 nil]=C2=A0
=
Maybe the problem is in undo-tree because the package binds = print-circle to t before printing its object, and it does not bind print-le= vel and print-lenght.
However, in my session, both print-level an= d print-length are nil. So I wonder why suddenly, they should change when u= ndo-tree does its job.

I'll try to trace the p= roblem.

Fabrice

--001a11407fce4d7530053ce0a5ad--