From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#30786: Save text properties in desktop Date: Tue, 13 Mar 2018 23:52:04 +0200 Organization: LINKOV.NET Message-ID: <877eqfabjv.fsf@mail.linkov.net> References: <87k1uhnehk.fsf@mail.linkov.net> <87o9jsydtz.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520978469 5970 195.159.176.226 (13 Mar 2018 22:01:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2018 22:01:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 30786@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 13 23:01:05 2018 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 1evryj-0001RU-6c for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 23:01:05 +0100 Original-Received: from localhost ([::1]:43138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evs0l-0002Ri-VM for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 18:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evrxo-000095-GS for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 18:00:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evrxj-0005VP-31 for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 18:00:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52205) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evrxj-0005VJ-01 for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 18:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evrxi-0002IV-OW for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 18:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Mar 2018 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30786-submit@debbugs.gnu.org id=B30786.15209783468736 (code B ref 30786); Tue, 13 Mar 2018 22:00:02 +0000 Original-Received: (at 30786) by debbugs.gnu.org; 13 Mar 2018 21:59:06 +0000 Original-Received: from localhost ([127.0.0.1]:60102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evrwo-0002Go-Fu for submit@debbugs.gnu.org; Tue, 13 Mar 2018 17:59:06 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:40781 helo=homiemail-a18.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evrwn-0002GG-1e for 30786@debbugs.gnu.org; Tue, 13 Mar 2018 17:59:05 -0400 Original-Received: from homiemail-a18.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a18.g.dreamhost.com (Postfix) with ESMTP id BF9A8258067; Tue, 13 Mar 2018 14:59:03 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-107-5.cust.tele2.ee [91.129.107.5]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a18.g.dreamhost.com (Postfix) with ESMTPSA id DA850258066; Tue, 13 Mar 2018 14:59:02 -0700 (PDT) In-Reply-To: <87o9jsydtz.fsf@gmail.com> (Noam Postavsky's message of "Mon, 12 Mar 2018 21:16:40 -0400") 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:144218 Archived-At: >> Why does desktop.el not save text properties? >> Maybe for some historical reasons? >> This is required for bug#22479. >> I can't find a problem while trying this patch: > >> - (let ((copy (copy-sequence value))) >> - (set-text-properties 0 (length copy) nil copy) >> - ;; Get rid of text properties because we cannot read them. > > I guess this comment is relevant, you can easily have non-readable > property values, e.g.: (put-text-property 1 2 'foo (point-marker)). If the only problem is with non-readable property values then we could check for such values and not to write them to the desktop file. > Maybe solving Bug#24982 would help? This would help on reading the desktop, but maybe better not to save non-readable values in the first place.