From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: [jidanni@deadspam.com: modeline doesn't divulge buffer will go bye bye] Date: Sat, 22 Jun 2002 16:12:09 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200206222012.g5MKC9I16834@rum.cs.yale.edu> References: <200206201435.g5KEZLF18772@aztec.santafe.edu> <5xu1nxh6o7.fsf@kfs2.cua.dk> <200206221720.g5MHKLj16237@rum.cs.yale.edu> <877kkrw1pz.fsf@emacswiki.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024776923 8391 127.0.0.1 (22 Jun 2002 20:15:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 22 Jun 2002 20:15:23 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17LrI3-0002BE-00 for ; Sat, 22 Jun 2002 22:15:23 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17LrIN-0004zI-00 for ; Sat, 22 Jun 2002 22:15:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LrHu-0001k2-00; Sat, 22 Jun 2002 16:15:14 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LrEz-0001d8-00 for ; Sat, 22 Jun 2002 16:12:13 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g5MKC9I16834; Sat, 22 Jun 2002 16:12:09 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Alex Schroeder Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5101 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5101 > "Stefan Monnier" writes: > > > Maybe we could consider the "buffer with no file" in a similar way > > as some GUI text processors treat (unsaved) new documents. > > Maybe we should do just that -- set the buffer-file-name to > /nonexistingdrive/buffername, and set a new variable "buffer needs > file", so that Emacs will ask about saving changes (because there is a > file name associated with it), and then when the user hits C-x C-s, > Emacs recognizes that the fil name is still unknown, and asks the user > for it. C-x C-s already does the right thing if buffer-file-name is nil. I don't think we should actively support this "create buffer and then save" model of creating files, because it suffers from the fact that it doesn't know which major-mode to use for the buffer (plus other limitations like the lack of auto-saving etc...). Stefan