Mercurial > emacs
comparison lisp/shadowfile.el @ 14169:83f275dcd93a
Update FSF's address.
author | Erik Naggum <erik@naggum.no> |
---|---|
date | Sun, 14 Jan 1996 07:34:30 +0000 |
parents | 84acc3adcd63 |
children | 96692e2ba103 |
comparison
equal
deleted
inserted
replaced
14168:3b925cc52931 | 14169:83f275dcd93a |
---|---|
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 ;; GNU General Public License for more details. | 18 ;; GNU General Public License for more details. |
19 | 19 |
20 ;; You should have received a copy of the GNU General Public License | 20 ;; You should have received a copy of the GNU General Public License |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
23 | 23 ;; Boston, MA 02111-1307, USA. |
24 ;;; LCD Archive Entry: | 24 |
25 ;;; shadowfile|Boris Goldowsky|boris@gnu.ai.mit.edu| | 25 ;; LCD Archive Entry: |
26 ;;; Helps you keep identical copies of files in multiple places.| | 26 ;; shadowfile|Boris Goldowsky|boris@gnu.ai.mit.edu| |
27 ;;; $Date: 1995/10/30 17:22:28 $ |$Revision: 1.5 $|~/misc/shadowfile.el.Z| | 27 ;; Helps you keep identical copies of files in multiple places.| |
28 | 28 ;; $Date: 1995/10/30 17:23:17 $ |$Revision: 1.6 $|~/misc/shadowfile.el.Z| |
29 ;;; Commentary: | 29 |
30 ;;; | 30 ;; Commentary: |
31 ;;; This package helps you to keep identical copies of files in more than one | 31 |
32 ;;; place - possibly on different machines. When you save a file, it checks | 32 ;; This package helps you to keep identical copies of files in more than one |
33 ;;; whether it is on the list of files with "shadows", and if so, it tries to | 33 ;; place - possibly on different machines. When you save a file, it checks |
34 ;;; copy it when you exit emacs (or use the shadow-copy-files command). | 34 ;; whether it is on the list of files with "shadows", and if so, it tries to |
35 | 35 ;; copy it when you exit emacs (or use the shadow-copy-files command). |
36 ;;; Installation & Use: | 36 |
37 ;;; | 37 ;; Installation & Use: |
38 ;;; Put (require 'shadowfile) in your .emacs; add clusters (if necessary) | 38 |
39 ;;; and file groups with shadow-define-cluster, shadow-define-literal-group, | 39 ;; Put (require 'shadowfile) in your .emacs; add clusters (if necessary) |
40 ;;; and shadow-define-regexp-group (see the documentation for these functions | 40 ;; and file groups with shadow-define-cluster, |
41 ;;; for information on how and when to use them). After doing this once, | 41 ;; shadow-define-literal-group, and shadow-define-regexp-group (see the |
42 ;;; everything should be automatic. | 42 ;; documentation for these functions for information on how and when to |
43 ;;; The lists of clusters and shadows are saved in a file called | 43 ;; use them). After doing this once, everything should be automatic. |
44 ;;; .shadows, so that they can be remembered from one emacs session to | 44 |
45 ;;; another, even (as much as possible) if the emacs session terminates | 45 ;; The lists of clusters and shadows are saved in a file called .shadows, |
46 ;;; abnormally. The files needing to be copied are stored in .shadow_todo; if | 46 ;; so that they can be remembered from one emacs session to another, even |
47 ;;; a file cannot be copied for any reason, it will stay on the list to be | 47 ;; (as much as possible) if the emacs session terminates abnormally. The |
48 ;;; tried again next time. The .shadows file should itself have shadows on | 48 ;; files needing to be copied are stored in .shadow_todo; if a file cannot |
49 ;;; all your accounts so that the information in it is consistent everywhere, | 49 ;; be copied for any reason, it will stay on the list to be tried again |
50 ;;; but .shadow_todo is local information and should have no shadows. | 50 ;; next time. The .shadows file should itself have shadows on all your |
51 ;;; If you do not want to copy a particular file, you can answer "no" | 51 ;; accounts so that the information in it is consistent everywhere, but |
52 ;;; and be asked again next time you hit C-x 4 s or exit emacs. If you do not | 52 ;; .shadow_todo is local information and should have no shadows. |
53 ;;; want to be asked again, use shadow-cancel, and you will not be asked until | 53 |
54 ;;; you change the file and save it again. If you do not want to shadow | 54 ;; If you do not want to copy a particular file, you can answer "no" and |
55 ;;; that file ever again, you can edit it out of the .shadows buffer. | 55 ;; be asked again next time you hit C-x 4 s or exit emacs. If you do not |
56 ;;; Anytime you edit the .shadows buffer, you must type M-x shadow-read-files | 56 ;; want to be asked again, use shadow-cancel, and you will not be asked |
57 ;;; to load in the new information, or your changes will be overwritten! | 57 ;; until you change the file and save it again. If you do not want to |
58 | 58 ;; shadow that file ever again, you can edit it out of the .shadows |
59 ;;; Bugs & Warnings: | 59 ;; buffer. Anytime you edit the .shadows buffer, you must type M-x |
60 ;;; | 60 ;; shadow-read-files to load in the new information, or your changes will |
61 ;;; - It is bad to have two emacses both running shadowfile at the same | 61 ;; be overwritten! |
62 ;;; time. It tries to detect this condition, but is not always successful. | 62 |
63 ;;; | 63 ;; Bugs & Warnings: |
64 ;;; - You have to be careful not to edit a file in two locations | 64 ;; |
65 ;;; before shadowfile has had a chance to copy it; otherwise | 65 ;; - It is bad to have two emacses both running shadowfile at the same |
66 ;;; "updating shadows" will overwrite one of the changed versions. | 66 ;; time. It tries to detect this condition, but is not always successful. |
67 ;;; | 67 ;; |
68 ;;; - It ought to check modification times of both files to make sure | 68 ;; - You have to be careful not to edit a file in two locations |
69 ;;; it is doing the right thing. This will have to wait until | 69 ;; before shadowfile has had a chance to copy it; otherwise |
70 ;;; file-newer-than-file-p works between machines. | 70 ;; "updating shadows" will overwrite one of the changed versions. |
71 ;;; | 71 ;; |
72 ;;; - It will not make directories for you, it just fails to copy files | 72 ;; - It ought to check modification times of both files to make sure |
73 ;;; that belong in non-existent directories. | 73 ;; it is doing the right thing. This will have to wait until |
74 ;;; | 74 ;; file-newer-than-file-p works between machines. |
75 ;;; Please report any bugs to me (boris@gnu.ai.mit.edu). Also let me know | 75 ;; |
76 ;;; if you have suggestions or would like to be informed of updates. | 76 ;; - It will not make directories for you, it just fails to copy files |
77 ;; that belong in non-existent directories. | |
78 ;; | |
79 ;; Please report any bugs to me (boris@gnu.ai.mit.edu). Also let me know | |
80 ;; if you have suggestions or would like to be informed of updates. | |
77 | 81 |
78 ;;; Code: | 82 ;;; Code: |
79 | 83 |
80 (provide 'shadowfile) | 84 (provide 'shadowfile) |
81 (require 'ange-ftp) | 85 (require 'ange-ftp) |