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: Mon, 12 Mar 2018 23:57:59 +0200 Organization: LINKOV.NET Message-ID: <87k1uhnehk.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520891890 27671 195.159.176.226 (12 Mar 2018 21:58:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2018 21:58:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 30786@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 22:58:06 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 1evVSI-00077M-4h for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 22:58:06 +0100 Original-Received: from localhost ([::1]:35677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evVUL-0002CJ-2j for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 18:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evVUE-0002BR-Lc for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 18:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evVUB-0005FB-9C for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 18:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evVUB-0005Ev-2d for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 18:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evVUA-00050z-Rh for bug-gnu-emacs@gnu.org; Mon, 12 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: Mon, 12 Mar 2018 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152089197219206 (code B ref -1); Mon, 12 Mar 2018 22:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2018 21:59:32 +0000 Original-Received: from localhost ([127.0.0.1]:57743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evVTe-0004zc-C7 for submit@debbugs.gnu.org; Mon, 12 Mar 2018 17:59:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evVTc-0004zO-Aw for submit@debbugs.gnu.org; Mon, 12 Mar 2018 17:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evVTW-0004lY-BU for submit@debbugs.gnu.org; Mon, 12 Mar 2018 17:59:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1evVTW-0004lM-7s for submit@debbugs.gnu.org; Mon, 12 Mar 2018 17:59:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evVTV-0001zB-7f for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 17:59:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evVTS-0004ip-4r for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 17:59:21 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:53552 helo=homiemail-a15.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1evVTR-0004hq-VJ for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 17:59:18 -0400 Original-Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 5F76676C06B for ; Mon, 12 Mar 2018 14:59:16 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-108-46.cust.tele2.ee [91.129.108.46]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPSA id BCA4F76C065 for ; Mon, 12 Mar 2018 14:59:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:144160 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: diff --git a/lisp/desktop.el b/lisp/desktop.el index 8bd4465..a7e549f 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -852,10 +852,7 @@ desktop--v2s ((or (numberp value) (null value) (eq t value) (keywordp value)) (cons 'may value)) ((stringp value) - (let ((copy (copy-sequence value))) - (set-text-properties 0 (length copy) nil copy) - ;; Get rid of text properties because we cannot read them. - (cons 'may copy))) + (cons 'may value)) ((symbolp value) (cons 'must value)) ((vectorp value)