From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Creating an empty file Date: Tue, 23 Jan 2007 20:19:24 -0500 Message-ID: References: <86bqkphiyj.fsf@lola.quinscape.zz> <87odopr8ga.fsf@lrde.org> <87veixu2ep.fsf@vh213602.truman.edu> <861wllheo9.fsf@lola.quinscape.zz> <87y7ntd5jq.fsf@vh213602.truman.edu> <87r6tlpqwi.fsf@lrde.org> <853b619u24.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169601584 26704 80.91.229.12 (24 Jan 2007 01:19:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2007 01:19:44 +0000 (UTC) Cc: belanger@truman.edu, =?iso-8859-1?Q?Micha=EBl?= Cadilhac , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 24 02:19:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H9Wnd-00005E-Qh for ged-emacs-devel@m.gmane.org; Wed, 24 Jan 2007 02:19:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9Wnd-0003DX-9H for ged-emacs-devel@m.gmane.org; Tue, 23 Jan 2007 20:19:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9WnR-0003B3-0J for emacs-devel@gnu.org; Tue, 23 Jan 2007 20:19:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9WnO-00038P-8b for emacs-devel@gnu.org; Tue, 23 Jan 2007 20:19:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9WnO-00038M-4J for emacs-devel@gnu.org; Tue, 23 Jan 2007 20:19:26 -0500 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9WnM-0003Kg-V9; Tue, 23 Jan 2007 20:19:25 -0500 Original-Received: from pastel.home ([74.12.211.125]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070124011924.BIKV12977.tomts16-srv.bellnexxia.net@pastel.home>; Tue, 23 Jan 2007 20:19:24 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3F8257F3D; Tue, 23 Jan 2007 20:19:24 -0500 (EST) Original-To: David Kastrup In-Reply-To: <853b619u24.fsf@lola.goethe.zz> (David Kastrup's message of "Wed\, 24 Jan 2007 00\:56\:03 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:65436 Archived-At: > I don't think this a good idea since it will also cause Emacs to > refuse deleting the buffer without confirmation, and it will cause > autosaving to occur. Good point. > I think the current behavior is perfectly fine with regard to setting > the modification flag (or rather not setting it). The problem rather > is that C-x C-s consults nothing except the modification flag before > deciding not to save at all, and not asking a question about it. And > the prefix flag is already used for a different purpose, so we can't > use that to signal "I really mean it". So maybe save-buffer should first check to see if the file exists, and if not, it should save, even if there are no changes. Stefan