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: Wed, 14 Mar 2018 20:09:46 +0000 (UTC) Message-ID: <2f8ba042-de03-4b34-9141-5fc11e9cb231@default> References: <87k1uhnehk.fsf@mail.linkov.net> <87o9jsydtz.fsf@gmail.com> <877eqfabjv.fsf@mail.linkov.net> <87vadzwffx.fsf@gmail.com> 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 1521058090 20079 195.159.176.226 (14 Mar 2018 20:08:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2018 20:08:10 +0000 (UTC) Cc: 30786@debbugs.gnu.org, Juri Linkov To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 21:08: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 1ewCgu-00056h-9O for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 21:08:04 +0100 Original-Received: from localhost ([::1]:48117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewCix-00051c-D9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 16:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewCir-00050m-HA for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 16:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewCio-0005Vw-Bk for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 16:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewCio-0005Vl-7H for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 16:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ewCio-0003Rk-0d for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 16:10: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 20:10:01 +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.152105819713234 (code B ref 30786); Wed, 14 Mar 2018 20:10:01 +0000 Original-Received: (at 30786) by debbugs.gnu.org; 14 Mar 2018 20:09:57 +0000 Original-Received: from localhost ([127.0.0.1]:33672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewCii-0003RN-Ti for submit@debbugs.gnu.org; Wed, 14 Mar 2018 16:09:57 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:38596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewCig-0003R7-7u for 30786@debbugs.gnu.org; Wed, 14 Mar 2018 16:09:54 -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 w2EK7QJx120946; Wed, 14 Mar 2018 20:09:48 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=7nhL4YsYcoxVWY3FY5ilrtymNE2TZw9ReROn0paeKLU=; b=AhuAQE1sleXHSRyi/zFQdw/FXkl75AEuv8vg6i5SC/zrs1qTde7lwq3bOKozh+loIvwd uPtHELGsgcbCYcjk5IfjVdD5K56rpGVeYpdY3xn7Lc5Pp6ZCt1+rsUodIhi8xDJ1e+Qo Jwqeu2XE9HifxG8wMQcIu7Dmq7EgB3hnwdIdxnctXFsoAr4apmgs1hwbQeILgwLTix0E JnAsKnabqLkXreU6gbgvX5HTyZFiFeWbWQ9vvV0E6Wq1FQIAjpscTZlXDdtyQYVH6jec I2oglGiizNlajr3O91Z+mnldbHSXkZmLAnAMIgY9ZXsDucCVkZp/195jVP5bJVmd342S yQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2gq81srrnm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Mar 2018 20:09:48 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2EK9lol031726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Mar 2018 20:09:47 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2EK9lij014908; Wed, 14 Mar 2018 20:09:47 GMT In-Reply-To: <87vadzwffx.fsf@gmail.com> 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=8832 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=771 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803140217 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:144283 Archived-At: > >> > 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. > > > > 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. >=20 > You mean the print syntax changes to become readable? But not that > Emacs can later read some unreadable #<...> syntax, right? I mean what I said further down: a given syntax is not readable in Emacs version N (e.g. 20), and so raises an error there, but it is readable in Emacs N+M (e.g. 22). If we had provided a way in version N of ignoring such error raising then that would let you read the rest of a file (for example), ignoring syntax that is illegal in Emacs N. > > 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). >=20 > `condition-case' works for read errors too, afaik, Can you specify a particular read error to handle/ignore? > but you're suggesting a different kind of control is needed. > Something more like Common Lisp restart-case, I guess? Dunno. I actually am not familiar with CL `restart-case', or else I've forgotten it. Perhaps it was added after CLTL1? > That could be useful in general, but solving this particular bug by > avoiding writing unreadable objects as Juri suggests seems okay too (and > much less work, hence more likely to actually happen instead of just > sitting for years). It's fine not to write unreadable objects here. It's better to provide a simple way to not provoke a read error for such objects. It's a read problem, not a write problem.