From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthieu Moy Newsgroups: gmane.emacs.devel Subject: Re: saveplace prevent me from quitting if ~/.emacs-places is write-protected Date: Sat, 08 Mar 2003 13:19:49 +0100 Organization: Verimag Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <873cm1w6pj.fsf@floss.red-bean.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047126220 2941 80.91.224.249 (8 Mar 2003 12:23:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2003 12:23:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 08 13:23:39 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rdMZ-0000lD-00 for ; Sat, 08 Mar 2003 13:23:39 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18rdhq-0003vv-00 for ; Sat, 08 Mar 2003 13:45:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rdLW-0006Wi-04 for emacs-devel@quimby.gnus.org; Sat, 08 Mar 2003 07:22:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rdKf-0006L4-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 07:21:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rdKJ-0005c1-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 07:21:24 -0500 Original-Received: from imag.imag.fr ([129.88.30.1]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rdIu-0004gB-00; Sat, 08 Mar 2003 07:19:52 -0500 Original-Received: from ecrins (ecrins.imag.fr [129.88.43.124]) by imag.imag.fr (8.12.8/8.12.8) with ESMTP id h28CJnCD029631; Sat, 8 Mar 2003 13:19:49 +0100 (CET) Original-Received: from moy by ecrins with local (Exim 3.35 #1) id 18rdIr-0002Zv-00; Sat, 08 Mar 2003 13:19:49 +0100 Original-To: rms@gnu.org X-Face: %xEb27l:C~bcH,tGGRk8m'o_}XBMb*NoIbS$sp(:3s+l@PwMH+C*7Vf@Y_]%rP)*/'`Lpt[O9C;jbVo?Qp X-Url: http://www-verimag.imag.fr/~moy/ Mail-Copies-To: never In-Reply-To: (Richard Stallman's message of "Fri, 07 Mar 2003 14:40:23 -0500") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Original-cc: kfogel@red-bean.com X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12173 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12173 Richard Stallman writes: > Assuming we can reproduce this, what is the right solution? Is there > already a policy for how Emacs should behave when there's an error > saving a file at exit time, and that file is managed by Emacs (i.e., > is not just a regular file visited for editing by the user)? > > It may as well ignore the error. I don't see a better alternative. > The user wants to exit and should not be impeded. I don't remember if it is possible to catch an (error "...") with something like (condition-case ...), but if it is, then, the best solution would be to catch it, and then ask the user : "Some errors occured during saving. Quit anyway ? (y/n)" A bit like what happens when you refuse to save a buffer. ("Modified buffers exist, exit anyway ?") Note that this would cover any kind of errors during saving. Or we can consider that my configuration is an exotic one and say that the bug is not serious enough ... -- Matthieu