GNU bug report logs - #17090
desktop.el saves unusable register data in register-alist

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Juanma Barranquero <lekktu@HIDDEN>; dated Mon, 24 Mar 2014 20:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Mar 2014 20:32:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 24 16:32:19 2014
Received: from localhost ([127.0.0.1]:47999 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WSBXe-0008F3-5Q
	for submit <at> debbugs.gnu.org; Mon, 24 Mar 2014 16:32:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37210)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <lekktu@HIDDEN>) id 1WSBXa-0008Et-NT
 for submit <at> debbugs.gnu.org; Mon, 24 Mar 2014 16:32:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lekktu@HIDDEN>) id 1WSBXZ-0008Lw-6u
 for submit <at> debbugs.gnu.org; Mon, 24 Mar 2014 16:32:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38356)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lekktu@HIDDEN>) id 1WSBXZ-0008Ln-3x
 for submit <at> debbugs.gnu.org; Mon, 24 Mar 2014 16:32:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38918)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lekktu@HIDDEN>) id 1WSBXX-0004cO-Sm
 for bug-gnu-emacs@HIDDEN; Mon, 24 Mar 2014 16:32:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lekktu@HIDDEN>) id 1WSBXX-0008L9-1Y
 for bug-gnu-emacs@HIDDEN; Mon, 24 Mar 2014 16:32:11 -0400
Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]:35583)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lekktu@HIDDEN>) id 1WSBXW-0008L3-Tj
 for bug-gnu-emacs@HIDDEN; Mon, 24 Mar 2014 16:32:10 -0400
Received: by mail-yk0-f171.google.com with SMTP id q9so16091522ykb.2
 for <bug-gnu-emacs@HIDDEN>; Mon, 24 Mar 2014 13:32:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to:content-type;
 bh=WvZUtigzI4IiLRozFWekSG/1o5Qye49RJlCahP29OjM=;
 b=UDNJwweaAdlPqTCatZNorpOF7r/UuI+s6pLyObLFi6BzpGBtH5CAr8qHsj5/G+UoeI
 QFc/WjEkJJXoRS+gZ4fXN0pfYfqdteUYi2vs8Pv8lEU8XMMZE6Wv/jqYIWCt2Mr94zZ5
 F2rjKYZto/9QXWVSdgzKSFpDxvjyGOss+Fhj/0JIkVp0m1OISAP3BJfq1ZYEZr1AQ0Rh
 fnd7sX4alqzRuk90LaCcZ1LGTVmjGHDS1FyQV4RuTARcNInHQopLkJcdmAczodvqwr3O
 SFxN0nKfHoTnAGd3HhT3LHNR1Ns2R3MRba2O/dpVXuYQTE+RtNZB1W6o2Iip71YQt/ur
 BO5w==
X-Received: by 10.236.172.33 with SMTP id s21mr91677376yhl.71.1395693130355;
 Mon, 24 Mar 2014 13:32:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.170.163.3 with HTTP; Mon, 24 Mar 2014 13:31:30 -0700 (PDT)
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Mon, 24 Mar 2014 21:31:30 +0100
Message-ID: <CAAeL0SSMj6bAwTACqj+y23qt5k8Z2HfOiG+LLoUyusNVx3AkwA@HIDDEN>
Subject: desktop.el saves unusable register data in register-alist
To: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Package: Emacs
Severity: minor

emacs -Q -f desktop-save-mode
C-x r w a
C-x C-x
y <RET>
emacs -Q -f desktop-read
C-x r j

=> a: rectangle starting with Unprintable entity

and similarly, when using
C-x r f a

restoring and then C-x r j  brings

Error running timer: (invalid function "Unprintable entity")

register-alist is in desktop-globals-to-save by default, so it should
work out of the box. but any fix is going to be ugly.

Possibilities:

- Cleaning register-alist from desktop-save-hook. Not a good idea
because the session does not necessarily end on desktop-saving (and
even less now, with timer-based saving).

- Modify desktop-outvar to skip anything whose serialization matches
"Unprintable entity".

- Modify desktop-outvar with register-alist specific knowledge, so it
filters out only some entries when serializing.

- Design a more generic mechanism to allow variables to have cleaning
specific functions.

The first three options are horribly hackish, and the last one is a
bit overkill if we only want to avoid the register-alist issue (the
mechanism would be generally useful, but no one has ever asked for
it...)

Ideas?




Acknowledgement sent to Juanma Barranquero <lekktu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17090; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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