diff options
| -rw-r--r-- | lisp/shadowfile.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index c9f94b03383..13abf4026f0 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | ;; LCD Archive Entry: | 25 | ;; LCD Archive Entry: |
| 26 | ;; shadowfile|Boris Goldowsky|boris@gnu.ai.mit.edu| | 26 | ;; shadowfile|Boris Goldowsky|boris@gnu.ai.mit.edu| |
| 27 | ;; Helps you keep identical copies of files in multiple places.| | 27 | ;; Helps you keep identical copies of files in multiple places.| |
| 28 | ;; $Date: 1995/10/30 17:23:17 $ |$Revision: 1.6 $|~/misc/shadowfile.el.Z| | 28 | ;; $Date: 1996/01/14 07:34:30 $ |$Revision: 1.7 $|~/misc/shadowfile.el.Z| |
| 29 | 29 | ||
| 30 | ;; Commentary: | 30 | ;; Commentary: |
| 31 | 31 | ||
| @@ -501,7 +501,8 @@ shadow-define-cluster)." | |||
| 501 | (let ((msg (shadow-join (mapcar (function cdr) | 501 | (let ((msg (shadow-join (mapcar (function cdr) |
| 502 | (shadow-shadows-of (buffer-file-name))) | 502 | (shadow-shadows-of (buffer-file-name))) |
| 503 | " "))) | 503 | " "))) |
| 504 | (message (if (zerop (length msg)) | 504 | (message "%s" |
| 505 | (if (zerop (length msg)) | ||
| 505 | "No shadows." | 506 | "No shadows." |
| 506 | msg)))) | 507 | msg)))) |
| 507 | 508 | ||
| @@ -539,8 +540,8 @@ shadow-regexp-groups." | |||
| 539 | (shadow-remove-from-todo pair))) | 540 | (shadow-remove-from-todo pair))) |
| 540 | shadow-files-to-copy | 541 | shadow-files-to-copy |
| 541 | '("shadow" "shadows" "cancel copy")) | 542 | '("shadow" "shadows" "cancel copy")) |
| 542 | (message (format "There are %d shadows to be updated." | 543 | (message "There are %d shadows to be updated." |
| 543 | (length shadow-files-to-copy))) | 544 | (length shadow-files-to-copy)) |
| 544 | (shadow-write-todo-file)) | 545 | (shadow-write-todo-file)) |
| 545 | 546 | ||
| 546 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 547 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| @@ -582,8 +583,7 @@ site." | |||
| 582 | (progn | 583 | (progn |
| 583 | (write-region (point-min) (point-max) to) | 584 | (write-region (point-min) (point-max) to) |
| 584 | (shadow-remove-from-todo s)) | 585 | (shadow-remove-from-todo s)) |
| 585 | (error (message (format "Shadow %s not updated!" | 586 | (error (message "Shadow %s not updated!" (cdr s)))))))) |
| 586 | (cdr s))))))))) | ||
| 587 | 587 | ||
| 588 | (defun shadow-shadows-of (file) | 588 | (defun shadow-shadows-of (file) |
| 589 | "Returns copy operations needed to update FILE. | 589 | "Returns copy operations needed to update FILE. |
| @@ -634,8 +634,8 @@ of files needing to be copied." | |||
| 634 | (setq shadow-files-to-copy | 634 | (setq shadow-files-to-copy |
| 635 | (shadow-union shadows shadow-files-to-copy)) | 635 | (shadow-union shadows shadow-files-to-copy)) |
| 636 | (shadow-when (not shadow-inhibit-message) | 636 | (shadow-when (not shadow-inhibit-message) |
| 637 | (message (substitute-command-keys | 637 | (message "%s" (substitute-command-keys |
| 638 | "Use \\[shadow-copy-files] to update shadows.")) | 638 | "Use \\[shadow-copy-files] to update shadows.")) |
| 639 | (sit-for 1)) | 639 | (sit-for 1)) |
| 640 | (shadow-write-todo-file))) | 640 | (shadow-write-todo-file))) |
| 641 | nil) ; Return nil for write-file-hooks | 641 | nil) ; Return nil for write-file-hooks |