From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: Alerts for saves to non-existent files Date: Wed, 29 Aug 2012 12:21:12 +0000 (UTC) Organization: none Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1346243113 24268 80.91.229.3 (29 Aug 2012 12:25:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2012 12:25:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 29 14:25:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T6hKc-0001ck-3Z for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 14:25:14 +0200 Original-Received: from localhost ([::1]:53498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6hKZ-00073i-Su for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 08:25:11 -0400 Original-Path: usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1346242872 25876 166.84.1.3 (29 Aug 2012 12:21:12 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 29 Aug 2012 12:21:12 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:194227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86573 Archived-At: It often happens that I move or rename the file "underlying" some buffer in an ongoing Emacs session and (for various reasons) fail to make the appropriate change in Emacs, with the result that I end up inadvertently saving changes to the old location. This often leads to unnecessary puzzlement (e.g. changes to an input file fail to have the expected effects, etc.). Therefore, I'm looking for a way to have Emacs notice when an attempt is made to save to a file that no longer exists. (Of course, this scenario has to be distinguished somehow from the one in which the intent is to *create* a file by saving a buffer for the first time, but maybe it is enough to somehow associate a "first save" flag with the buffer.) Is there a way to tell Emacs that, from now on, it should save all changes to this buffer to the new path (and preferably without asking for any additional confirmation)? (As itches go, this one is mild indeed, but it also has a very long standing, and for this reason alone it has caused, cumulatively over 3+ decades, a huge amount of vexation.) Thanks!