From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#30786: Save text properties in desktop Date: Tue, 13 Mar 2018 18:09:55 -0700 (PDT) Message-ID: References: <87k1uhnehk.fsf@mail.linkov.net> <87o9jsydtz.fsf@gmail.com> <877eqfabjv.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520989755 31609 195.159.176.226 (14 Mar 2018 01:09:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 01:09:15 +0000 (UTC) Cc: 30786@debbugs.gnu.org To: Juri Linkov , Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 02:09:11 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 1evuui-00082o-HP for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 02:09:08 +0100 Original-Received: from localhost ([::1]:43870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evuwj-0006fe-R3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Mar 2018 21:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evuwd-0006fM-Rb for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evuwY-0001Do-Sf for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:11:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evuwY-0001Dc-O8 for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evuwY-0007YW-7h for bug-gnu-emacs@gnu.org; Tue, 13 Mar 2018 21:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Mar 2018 01:11: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.152098980728959 (code B ref 30786); Wed, 14 Mar 2018 01:11:02 +0000 Original-Received: (at 30786) by debbugs.gnu.org; 14 Mar 2018 01:10:07 +0000 Original-Received: from localhost ([127.0.0.1]:60178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evuvf-0007X1-BP for submit@debbugs.gnu.org; Tue, 13 Mar 2018 21:10:07 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:46972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evuvc-0007WQ-Ul for 30786@debbugs.gnu.org; Tue, 13 Mar 2018 21:10:05 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2E16sbn070872; Wed, 14 Mar 2018 01:09:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=wQPQWBMTyaxwRNL93BO2Zy1/9bPuBeyJUt7JtoiqmJM=; b=eEnkf8cEPiryGKtgjCNhHraxg6WzvMb5W5IsWvrSpqgMEM2WlPDr1UOihJ3K26nw6/vY 3NwnsQSjdePPtzWHjV+qpfAQm6FVosGdRKlkdIH9SqnQJzATaeWdndSfNYa+pjcoDZXQ NCvZr9h6Xb7O06secok0lZNN9JotGgDLZcueJsk2zaBdia6vL8xaYLpmgcSaEvpDq/5J vFvk/RuklJqTE+93rLRGBIU5thGBD+vx3Zyp5jK1radoL5BXPvd8JlEUcBqokBaevy9Y tuqoW+nl2eSgzZABOLkIVl2v36yR83H5+hiBhbDSzmQBia8QH4Y5Y38obmK1BzXryzqu AQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2gprh4r6c6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Mar 2018 01:09:58 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2E19voN019057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Mar 2018 01:09:58 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2E19vpt017987; Wed, 14 Mar 2018 01:09:57 GMT In-Reply-To: <877eqfabjv.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8831 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=955 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803140009 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:144226 Archived-At: > > I guess this comment is relevant, you can easily have non-readable > > property values, e.g.: (put-text-property 1 2 'foo (point-marker)). >=20 > 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. >=20 > > Maybe solving Bug#24982 would help? >=20 > This would help on reading the desktop, but maybe better not to save > non-readable values in the first place. No. If the problem is reading then that's where the solution should be located - not writing. It has happened quite a few times that something unreadable by Emacs has later become readable. One of the important motivations behind bug #24982 is to let Emacs version N be able to read (by ignoring) constructs that it finds are unreadable but that are readable in Emacs version N + M. The sooner we get that bug fixed, the more versions of Emacs will be able to benefit from it. Users and code should be able to make Emacs tolerant of read errors (by ignoring them). We have `condition-case' for most errors. We have little or no control over read errors. Dunno whether we need a complete read-error-handling construct a la `condition-case', but we at least need a way to let Emacs ignore all read errors. And preferably within some scope (e.g. let-bind a variable).