diff options
| author | Stephen Eglen | 1998-03-07 18:19:38 +0000 |
|---|---|---|
| committer | Stephen Eglen | 1998-03-07 18:19:38 +0000 |
| commit | 4bef911093051ec6dfca2e1415e42baee60f8e37 (patch) | |
| tree | 01e2642e0ce7282e95907bc908e065a2817d30c1 /lisp/shadowfile.el | |
| parent | 14d4446b73f2f52becebc28d96e82f6ff5fe8e57 (diff) | |
| download | emacs-4bef911093051ec6dfca2e1415e42baee60f8e37.tar.gz emacs-4bef911093051ec6dfca2e1415e42baee60f8e37.zip | |
Customized.
Diffstat (limited to 'lisp/shadowfile.el')
| -rw-r--r-- | lisp/shadowfile.el | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index 48f792fb0fd..1302171f517 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el | |||
| @@ -85,31 +85,47 @@ | |||
| 85 | ;;; Variables | 85 | ;;; Variables |
| 86 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 86 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 87 | 87 | ||
| 88 | (defvar shadow-noquery nil | 88 | (defgroup shadow nil |
| 89 | "Automatic file copying when saving a file." | ||
| 90 | :prefix "shadow-" | ||
| 91 | :group 'files) | ||
| 92 | |||
| 93 | (defcustom shadow-noquery nil | ||
| 89 | "*If t, always copy shadow files without asking. | 94 | "*If t, always copy shadow files without asking. |
| 90 | If nil \(the default), always ask. If not nil and not t, ask only if there | 95 | If nil \(the default), always ask. If not nil and not t, ask only if there |
| 91 | is no buffer currently visiting the file.") | 96 | is no buffer currently visiting the file." |
| 97 | :type '(choice (const t) (const nil) (const :tag "Ask if no buffer" maybe)) | ||
| 98 | :group 'shadow) | ||
| 92 | 99 | ||
| 93 | (defvar shadow-inhibit-message nil | 100 | (defcustom shadow-inhibit-message nil |
| 94 | "*If nonnil, do not display a message when a file needs copying.") | 101 | "*If nonnil, do not display a message when a file needs copying." |
| 102 | :type 'boolean | ||
| 103 | :group 'shadow) | ||
| 95 | 104 | ||
| 96 | (defvar shadow-inhibit-overload nil | 105 | (defcustom shadow-inhibit-overload nil |
| 97 | "If nonnil, shadowfile won't redefine C-x C-c. | 106 | "If nonnil, shadowfile won't redefine C-x C-c. |
| 98 | Normally it overloads the function `save-buffers-kill-emacs' to check | 107 | Normally it overloads the function `save-buffers-kill-emacs' to check |
| 99 | for files have been changed and need to be copied to other systems.") | 108 | for files have been changed and need to be copied to other systems." |
| 109 | :type 'boolean | ||
| 110 | :group 'shadow) | ||
| 100 | 111 | ||
| 101 | (defvar shadow-info-file nil | 112 | (defcustom shadow-info-file nil |
| 102 | "File to keep shadow information in. | 113 | "File to keep shadow information in. |
| 103 | The shadow-info-file should be shadowed to all your accounts to | 114 | The shadow-info-file should be shadowed to all your accounts to |
| 104 | ensure consistency. Default: ~/.shadows") | 115 | ensure consistency. Default: ~/.shadows" |
| 116 | :type '(choice (const nil) file) | ||
| 117 | :group 'shadow) | ||
| 105 | 118 | ||
| 106 | (defvar shadow-todo-file nil | 119 | (defcustom shadow-todo-file nil |
| 107 | "File to store the list of uncopied shadows in. | 120 | "File to store the list of uncopied shadows in. |
| 108 | This means that if a remote system is down, or for any reason you cannot or | 121 | This means that if a remote system is down, or for any reason you cannot or |
| 109 | decide not to copy your shadow files at the end of one emacs session, it will | 122 | decide not to copy your shadow files at the end of one emacs session, it will |
| 110 | remember and ask you again in your next emacs session. | 123 | remember and ask you again in your next emacs session. |
| 111 | This file must NOT be shadowed to any other system, it is host-specific. | 124 | This file must NOT be shadowed to any other system, it is host-specific. |
| 112 | Default: ~/.shadow_todo") | 125 | Default: ~/.shadow_todo" |
| 126 | :type '(choice (const nil) file) | ||
| 127 | :group 'shadow) | ||
| 128 | |||
| 113 | 129 | ||
| 114 | ;;; The following two variables should in most cases initialize themselves | 130 | ;;; The following two variables should in most cases initialize themselves |
| 115 | ;;; correctly. They are provided as variables in case the defaults are wrong | 131 | ;;; correctly. They are provided as variables in case the defaults are wrong |