unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* emacs internal RAID?
@ 2006-02-16 17:57 Dan Jacobson
  2006-02-17  9:45 ` Reiner Steib
  2006-02-19 20:24 ` Mark Plaksin
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Jacobson @ 2006-02-16 17:57 UTC (permalink / raw)


Emacs (probably doesn't) need a mode to associate one buffer to two
files at once. But just to be inventive, it could add such a mode.

E.g., the user is worried that some impending doom will happen, so he
wants to write to a USB card and a local file at the same time, from
the same buffer. Auto saving and all.

He won't have time to copy the file to the second medium when the doom
hits, and he doesn't have RAID or whatever.

OK, never mind. Probably little used.

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

* Re: emacs internal RAID?
  2006-02-16 17:57 emacs internal RAID? Dan Jacobson
@ 2006-02-17  9:45 ` Reiner Steib
  2006-02-19 20:24 ` Mark Plaksin
  1 sibling, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2006-02-17  9:45 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Thu, Feb 16 2006, Dan Jacobson wrote:

> E.g., the user is worried that some impending doom will happen, so he
> wants to write to a USB card and a local file at the same time, from
> the same buffer. Auto saving and all.

Some addition (see `copy-file') to `write-file-functions' (or
`write-file-hooks') would do this.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: emacs internal RAID?
  2006-02-16 17:57 emacs internal RAID? Dan Jacobson
  2006-02-17  9:45 ` Reiner Steib
@ 2006-02-19 20:24 ` Mark Plaksin
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Plaksin @ 2006-02-19 20:24 UTC (permalink / raw)


Dan Jacobson <jidanni@jidanni.org> writes:

> Emacs (probably doesn't) need a mode to associate one buffer to two
> files at once. But just to be inventive, it could add such a mode.

This would be very cool!

> E.g., the user is worried that some impending doom will happen, so he
> wants to write to a USB card and a local file at the same time, from
> the same buffer. Auto saving and all.

Or the user is very paranoid about losing work and wants to write
everything to the local machine and a remote machine via TRAMP.

> OK, never mind. Probably little used.

Probably so but if it were trivial to make all (or a subset matching a
regexp) of your files get saved in multiple places I'd use it.

It would be nice if the second write could optionally be made asynchronous.
That way you wouldn't have to wait if your remote connection was slow.
Perhaps something in the mode line could tell you whether your second copy
is up-to-date or not; for example, display '-*' if only the local copy is
up-to-date.

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

end of thread, other threads:[~2006-02-19 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-16 17:57 emacs internal RAID? Dan Jacobson
2006-02-17  9:45 ` Reiner Steib
2006-02-19 20:24 ` Mark Plaksin

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).