From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30786: Save text properties in desktop Date: Mon, 12 Mar 2018 21:16:40 -0400 Message-ID: <87o9jsydtz.fsf@gmail.com> References: <87k1uhnehk.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520903716 12042 195.159.176.226 (13 Mar 2018 01:15:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2018 01:15:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30786@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 13 02:15:12 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 1evYX0-0002yT-7g for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 02:15:10 +0100 Original-Received: from localhost ([::1]:36480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evYZ2-00040L-Tn for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 21:17:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evYYr-0003zo-Tr for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 21:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evYYo-00049r-PM for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 21:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evYYo-00049j-L6 for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 21:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evYYo-0001gx-Ae for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2018 21:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Mar 2018 01:17: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.15209038086477 (code B ref 30786); Tue, 13 Mar 2018 01:17:02 +0000 Original-Received: (at 30786) by debbugs.gnu.org; 13 Mar 2018 01:16:48 +0000 Original-Received: from localhost ([127.0.0.1]:57864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evYYZ-0001gP-TF for submit@debbugs.gnu.org; Mon, 12 Mar 2018 21:16:48 -0400 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:37687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evYYZ-0001gC-2k for 30786@debbugs.gnu.org; Mon, 12 Mar 2018 21:16:47 -0400 Original-Received: by mail-it0-f44.google.com with SMTP id k79-v6so14066152ita.2 for <30786@debbugs.gnu.org>; Mon, 12 Mar 2018 18:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QQSEyeJpiwhvEJysaTBf7O9t+rxK69hKj1Rl6sJWooo=; b=Qq44aXGC7g9+r8nwfoH5Z2ncYJtcphcDq5q3z+IZeJ6UQ8mA4F4z1cQytRHN1Zv8BK cRqUmHDqqc4W8TVp/pEXQkCWD2JBttJ6gF4rXT0CYiZhHLyWBzKWvlzTzIbkvKVHq0sf tFtR90aYEymHqqi7M0aa7vOMBHAz5OLBr8/F2K8VqVS0q47La/qxfl0HpOKzILLdnBYQ eel5SzOX8q8jMvjoKWVmPTJ3nl79QksWBec/8Y2rzA4oHvB7xpQHp7m+evdVaMjq+9ep 96Q9dW+qDTXNBHYV+xnCjBp2vk/eT3jDxESxj4bQkz2mJGlJZm1Zg/uplMLXbfiMNlqg Bs/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QQSEyeJpiwhvEJysaTBf7O9t+rxK69hKj1Rl6sJWooo=; b=QbxGMqM1F7Wr8aGsOLGSr1L7MbXN9EJ86IYAr3j1GYw0+WeFkwA2OLO8OcCn1AGBRo d1lD2iWYj5RgywQYR28UBGJE7WxAH8dxwGdEdlAvxP5bmiS7Zwe2uJ1vnGhJbz8M30rP +doNm7PIbfqxzZ7YiPQzCKLCZG6KE4fR/Znj7B3367jvHls0wqiF5LrlpuCJyh/L2HHb RjEoc0X4NaFMwhKENqM7KssAxNefnyGlYquM0gvZdq0BPP2sG0HAPiZfZE5yD31wCXuW wQwfXS0XOUA9OCXtm5VYS1NXAM58sg5POY0ztXgGHqnfVhKFdOepvnZDFRZbadDpliSD pX6Q== X-Gm-Message-State: AElRT7FNtz4xycocJuuWwbL4TrjeV92PDX1nHYUIzzwBDxNmjGKDmifJ YA+nuMO8z/KyyGXPXhQPDC1Otg== X-Google-Smtp-Source: AG47ELsOiIYrAMdKm99DnPrhB9eFnF27b9Suib37iTRnHPYmze8pjzON32aYnmj9OkNyhI2/9uNXxQ== X-Received: by 10.36.166.10 with SMTP id q10mr2192101ite.132.1520903801483; Mon, 12 Mar 2018 18:16:41 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id c139sm5917050ioe.5.2018.03.12.18.16.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Mar 2018 18:16:40 -0700 (PDT) In-Reply-To: <87k1uhnehk.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 12 Mar 2018 23:57:59 +0200") 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:144172 Archived-At: Juri Linkov writes: > 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)). Maybe solving Bug#24982 would help?