From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Emacs ignores modified state of "untitled" buffer Date: Thu, 20 May 2010 19:56:48 -0600 Message-ID: References: <51707DDA-8D52-4D9F-9FD4-461987F2DEDE@nf.mpg.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274407048 17210 80.91.229.12 (21 May 2010 01:57:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 May 2010 01:57:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 21 03:57:27 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OFHUN-0005QF-6O for geh-help-gnu-emacs@m.gmane.org; Fri, 21 May 2010 03:57:27 +0200 Original-Received: from localhost ([127.0.0.1]:58084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFHUM-0006uv-P3 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 21:57:26 -0400 Original-Received: from [140.186.70.92] (port=38116 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFHTp-0006uq-RN for help-gnu-emacs@gnu.org; Thu, 20 May 2010 21:56:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFHTn-0003E5-Ar for help-gnu-emacs@gnu.org; Thu, 20 May 2010 21:56:53 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:58160) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFHTn-0003Dz-4u for help-gnu-emacs@gnu.org; Thu, 20 May 2010 21:56:51 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OFHTl-0005H6-I3 for help-gnu-emacs@gnu.org; Fri, 21 May 2010 03:56:49 +0200 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 May 2010 03:56:49 +0200 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 May 2010 03:56:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73704 Archived-At: Drew Adams wrote: > What am I missing? What is wrong with just using (find-file "untitled")? > > If a buffer is associated with a file name (which is what `find-file' does) then > Emacs asks you about saving it. What else is the OP asking for? C-x C-s won't ask. > Everyone seems to be jumping through hoops here, and my mail with this simple > suggestion was ignored, so I must not be getting it. I really would like to know > what I'm missing. I can think of a couple nuisances: * If the buffer gets saved to file "untitled", a subsequent invocation of emacs will visit that file, not an empty buffer. * Changes to the buffer will be auto-saved to the #untitled# file, and a subsequent invocation of emacs will ask to recover the file (if the 2 invocations are concurrent, or if the first invocation exited uncleanly). -- Kevin Rodgers Denver, Colorado, USA