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: File menu changes (suggestions) Date: Tue, 28 Jun 2005 23:39:54 -0400 Message-ID: <87br5p7s48.fsf-monnier+emacs@gnu.org> References: <87psu7xdgo.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120017405 11645 80.91.229.2 (29 Jun 2005 03:56:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2005 03:56:45 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 05:56:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnTgi-0002va-7v for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2005 05:56:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnTog-0000rY-Fy for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2005 00:04:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DnTk7-0006yC-Nc for emacs-devel@gnu.org; Wed, 29 Jun 2005 00:00:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DnTic-0006QR-Sz for emacs-devel@gnu.org; Tue, 28 Jun 2005 23:58:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnTiS-00060K-T5 for emacs-devel@gnu.org; Tue, 28 Jun 2005 23:58:24 -0400 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DnTV2-0006pV-1S; Tue, 28 Jun 2005 23:44:32 -0400 Original-Received: from alfajor ([70.49.80.233]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050629033948.OKGO2981.tomts43-srv.bellnexxia.net@alfajor>; Tue, 28 Jun 2005 23:39:48 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 6731AD732C; Tue, 28 Jun 2005 23:39:54 -0400 (EDT) Original-To: snogglethorpe@gmail.com In-Reply-To: (Miles Bader's message of "Wed, 29 Jun 2005 06:36:25 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:39854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39854 >> Yet another variety would be to create a buffer which does have a >> file, call it "Unnamed" or some such (i.e., in the default directory), >> and if such a file already exists, modify it by attaching something >> like a number. > I think the default emacs behavior (if the buffer doesn't have a name, > ask for one when saving) is far better. You could create new > _buffer_ names like "unnamed" or whatever, but actually setting the > _file_ name to that seems harmful. It all depends on whether other parts of the code would be adjusted or not. The important issues about the behavior of "new files" (whose file name has not yet been set): - make sure C-x C-s prompts for a file name. - make sure autosave works. - make sure the auto-save-list includes the new files. - there might be more. Of course the other option of prompting for a file name before creating the new buffer solves all the above problems (along with the others that have to do with the choice of major mode, ...), which is why I'm in favor of that one, even if it's a bit less CUA-ish. Stefan