From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: A few questions about desktop.el Date: Tue, 26 Jul 2005 10:27:56 +0200 Message-ID: References: Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1122367803 10320 80.91.229.2 (26 Jul 2005 08:50:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2005 08:50:03 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 26 10:50:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DxL7t-0001Hm-OA for ged-emacs-devel@m.gmane.org; Tue, 26 Jul 2005 10:49:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxLAE-0006Aj-Jl for ged-emacs-devel@m.gmane.org; Tue, 26 Jul 2005 04:51:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DxKpf-00060i-I1 for emacs-devel@gnu.org; Tue, 26 Jul 2005 04:30:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DxKpd-0005zZ-Dw for emacs-devel@gnu.org; Tue, 26 Jul 2005 04:30:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxKpc-0005z6-G7 for emacs-devel@gnu.org; Tue, 26 Jul 2005 04:30:32 -0400 Original-Received: from [64.233.182.199] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DxKxq-0005sI-5O for emacs-devel@gnu.org; Tue, 26 Jul 2005 04:39:02 -0400 Original-Received: by nproxy.gmail.com with SMTP id i2so171283nfe for ; Tue, 26 Jul 2005 01:27:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PiiVZWF+FbRYK98dD4xsES133zzp6pLKo7YfAhvFJaKetWiuEuR99+eT0aJph3FaXwMyqnQFKQcAv/tdiY9nW9o6DPbhoeXztGuY7lAE1MBWKU8dDs/NtA+X34FaxW/dsnxHUAV+jS6gzomTNvTftBugN3IHRzg7DWpMHk6nDL4= Original-Received: by 10.48.250.16 with SMTP id x16mr5145nfh; Tue, 26 Jul 2005 01:27:56 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Tue, 26 Jul 2005 01:27:56 -0700 (PDT) Original-To: Emacs Devel In-Reply-To: Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41216 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41216 Regarding this code in `desktop-save': > (setq default-directory dirname) > (when (file-exists-p filename) (delete-file filename)) > (let ((coding-system-for-write 'emacs-mule)) > (write-region (point-min) (point-max) filename nil 'nomessage)))) No one, not even the original author (I've just asked him), knows for sure whether the `delete-file' call is needed or why, and I know for certain it can produce some unexpected results in Windows ("unexpected" including data loss, meaning losing the .emacs.desktop file). So, if no one objects, in a few days I'm gonna delete that line. As we're not even in pretesting, we'll have plenty of time to know whether it causes problems in some environment or other, and reintroduce it (conditional to non-Windows, or not) if needed. --=20 /L/e/k/t/u