home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / sources / 821 < prev    next >
Encoding:
Text File  |  1992-11-22  |  5.1 KB  |  116 lines

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!dsinc!ub!galileo.cc.rochester.edu!prodigal.psych.rochester.edu!boris
  2. From: boris@prodigal.psych.rochester.edu (Boris "implementation" Goldowsky)
  3. Newsgroups: gnu.emacs.sources
  4. Subject: shadow-files, patch #2
  5. Message-ID: <1992Nov23.141811.6924@galileo.cc.rochester.edu>
  6. Date: 23 Nov 92 14:18:11 GMT
  7. Sender: news@galileo.cc.rochester.edu
  8. Reply-To: boris@cc.rochester.edu
  9. Organization: University of Rochester (Rochester, NY)
  10. Lines: 103
  11. Nntp-Posting-Host: prodigal.psych.rochester.edu
  12.  
  13. Here are a couple more bug fixes -- many thanks to Benjamin Liblit for
  14. sending me not only problems but solutions!
  15.  
  16. The complete package should be available soon from the elisp archive.
  17.  
  18. *** shadow-files.el.dist    Thu Nov 19 12:06:11 1992
  19. --- shadow-files.el    Mon Nov 23 09:10:16 1992
  20. ***************
  21. *** 1,10 ****
  22. ! ;;;; shadow-files.el: For keeping identical copies of files on multiple hosts
  23. ! ;;;  By Boris Goldowsky, 11/92.  Bugs to <boris@prodigal.psych.rochester.edu>.
  24.   
  25. ! ;;; USE: put (require 'shadow-files) in your .emacs; add clusters and file
  26. ! ;;; groups with shadow-define-cluster, shadow-define-group, and
  27. ! ;;; shadow-define-regexp-group (see the documentation for these functions for
  28. ! ;;; information on how and when to use them).  After doing this once,
  29.   ;;; everything should be automatic.
  30.   ;;;     If you need to remove or edit a cluster or file group, you can edit the
  31.   ;;; .shadows buffer, then type M-x shadow-read to load in the new information
  32. --- 1,13 ----
  33. ! ;;;; shadow-files.el
  34. ! ;;; LCD Archive Entry:
  35. ! ;;; shadow-files|Boris Goldowsky|boris@prodigal.psych.rochester.edu|
  36. ! ;;; Helps you keep identical copies of files on multiple hosts.|
  37. ! ;;; 11/23/92|version 1.2||
  38.   
  39. ! ;;; USE: put (require 'shadow-files) in your .emacs; add clusters (if
  40. ! ;;; necessary) and file groups with shadow-define-cluster, shadow-define-group,
  41. ! ;;; and shadow-define-regexp-group (see the documentation for these functions
  42. ! ;;; for information on how and when to use them).  After doing this once, 
  43.   ;;; everything should be automatic.
  44.   ;;;     If you need to remove or edit a cluster or file group, you can edit the
  45.   ;;; .shadows buffer, then type M-x shadow-read to load in the new information
  46. ***************
  47. *** 13,20 ****
  48.   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  49.   ;;; DEPENDENCIES:
  50.   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  51. ! ;;;  All of the packages mentioned below are available from archive sites like
  52. ! ;;;  archive.cis.ohio-state.edu. 
  53.   
  54.   ;;; ANGE-FTP.  This file could be modified (with some loss of generality and
  55.   ;;; cleanliness of the user interface) to use only the standard ftp library by
  56. --- 16,23 ----
  57.   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  58.   ;;; DEPENDENCIES:
  59.   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  60. ! ;;;  All of the packages mentioned below are available from archive sites,
  61. ! ;;; including archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive.
  62.   
  63.   ;;; ANGE-FTP.  This file could be modified (with some loss of generality and
  64.   ;;; cleanliness of the user interface) to use only the standard ftp library by
  65. ***************
  66. *** 152,160 ****
  67.   shadow-define-group instead of this function).  Each site can be either a
  68.   hostname or the name of a cluster \(see shadow-define-cluster)."
  69.     (interactive (let ((regexp (read-string "Filename regexp: " 
  70. !                       (regexp-quote 
  71. !                        (file-name-nondirectory
  72. !                         (buffer-file-name)))))
  73.                site sites)
  74.            (while (setq site (shadow-read-site))
  75.              (push site sites))
  76. --- 155,164 ----
  77.   shadow-define-group instead of this function).  Each site can be either a
  78.   hostname or the name of a cluster \(see shadow-define-cluster)."
  79.     (interactive (let ((regexp (read-string "Filename regexp: " 
  80. !                       (if (buffer-file-name)
  81. !                           (regexp-quote 
  82. !                            (file-name-nondirectory
  83. !                         (buffer-file-name))))))
  84.                site sites)
  85.            (while (setq site (shadow-read-site))
  86.              (push site sites))
  87. ***************
  88. *** 180,187 ****
  89.         (let ((buffer (condition-case i
  90.                   (set-buffer (shadow-buffer s))
  91.                 (error (if (y-or-n-p 
  92. !  (format "Buffer killed -- ftp %s anyway?" (shadow-file s)))
  93. !                      (find-file-noselect (shadow-file s)))))))
  94.           (when buffer
  95.             (save-restriction
  96.           (widen)
  97. --- 184,196 ----
  98.         (let ((buffer (condition-case i
  99.                   (set-buffer (shadow-buffer s))
  100.                 (error (if (y-or-n-p 
  101. !                       (format
  102. !                        "Buffer killed -- ftp %s anyway?"
  103. !                        (shadow-file s)))
  104. !                      (set-buffer
  105. !                       (find-file-noselect 
  106. !                        (expand-file-name (shadow-file s)
  107. !                              shadow-homedir))))))))
  108.           (when buffer
  109.             (save-restriction
  110.           (widen)
  111. --
  112. Boris Goldowsky                        The only way you'll end up in a corner
  113.                                         Is by walking in too straight of a li
  114. boris@prodigal.psych.rochester.edu        --Claudia Schmidt                 n
  115. 57 Glasgow Street, Rochester, NY 14608                                      e
  116.