all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Alerts for saves to non-existent files
@ 2012-08-29 12:21 kj
  2012-08-29 14:54 ` Peter Dyballa
  2012-08-29 17:04 ` Joost Kremers
  0 siblings, 2 replies; 6+ messages in thread
From: kj @ 2012-08-29 12:21 UTC (permalink / raw)
  To: help-gnu-emacs




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!


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-04 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 12:21 Alerts for saves to non-existent files kj
2012-08-29 14:54 ` Peter Dyballa
2012-08-29 17:04 ` Joost Kremers
2012-08-31 12:35   ` kj
2012-08-31 14:19     ` Raffaele Ricciardi
2012-09-04 13:59     ` Joost Kremers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.