From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#17090: desktop.el saves unusable register data in register-alist Date: Mon, 24 Mar 2014 21:31:30 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1395693181 31818 80.91.229.3 (24 Mar 2014 20:33:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 20:33:01 +0000 (UTC) To: 17090@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 21:33:09 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WSBYS-0000Z5-9H for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 21:33:08 +0100 Original-Received: from localhost ([::1]:38258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBYR-0004xX-Ue for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 16:33:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBYO-0004um-0p for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSBYN-0000QD-8W for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:33:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBYN-0000Q9-6G for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WSBYM-0008GO-Ja for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.139569313931694 (code B ref -1); Mon, 24 Mar 2014 20:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Mar 2014 20:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:47999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSBXe-0008F3-5Q for submit@debbugs.gnu.org; Mon, 24 Mar 2014 16:32:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WSBXa-0008Et-NT for submit@debbugs.gnu.org; Mon, 24 Mar 2014 16:32:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSBXZ-0008Lw-6u for submit@debbugs.gnu.org; Mon, 24 Mar 2014 16:32:14 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBXZ-0008Ln-3x for submit@debbugs.gnu.org; Mon, 24 Mar 2014 16:32:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBXX-0004cO-Sm for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:32:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSBXX-0008L9-1Y for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:32:11 -0400 Original-Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]:35583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBXW-0008L3-Tj for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 16:32:10 -0400 Original-Received: by mail-yk0-f171.google.com with SMTP id q9so16091522ykb.2 for ; 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) Original-Received: by 10.170.163.3 with HTTP; Mon, 24 Mar 2014 13:31:30 -0700 (PDT) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87331 Archived-At: Package: Emacs Severity: minor emacs -Q -f desktop-save-mode C-x r w a C-x C-x y 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?