diff options
| author | Glenn Morris | 2014-11-04 21:08:12 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-11-04 21:08:12 -0800 |
| commit | ddce73d32fa3e62e022842e3bbdc0aa83bb358cc (patch) | |
| tree | 21dbcb8d40ff634b6f821de95af2b8e3deb0a8e3 /lisp/shadowfile.el | |
| parent | 6a278b64f7356613c4a7709ed699655fa7415260 (diff) | |
| download | emacs-ddce73d32fa3e62e022842e3bbdc0aa83bb358cc.tar.gz emacs-ddce73d32fa3e62e022842e3bbdc0aa83bb358cc.zip | |
Revert previous accidental commit
Diffstat (limited to 'lisp/shadowfile.el')
| -rw-r--r-- | lisp/shadowfile.el | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index e463cb7eca5..2bf200d07dd 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el | |||
| @@ -117,7 +117,6 @@ ensure consistency. Default: ~/.emacs.d/shadows" | |||
| 117 | :type '(choice (const nil) file) | 117 | :type '(choice (const nil) file) |
| 118 | :group 'shadow) | 118 | :group 'shadow) |
| 119 | 119 | ||
| 120 | ;; FIXME use .emacs.d | ||
| 121 | (defcustom shadow-todo-file nil | 120 | (defcustom shadow-todo-file nil |
| 122 | "File to store the list of uncopied shadows in. | 121 | "File to store the list of uncopied shadows in. |
| 123 | This means that if a remote system is down, or for any reason you cannot or | 122 | This means that if a remote system is down, or for any reason you cannot or |
| @@ -439,17 +438,14 @@ It may have different filenames on each site. When this file is edited, the | |||
| 439 | new version will be copied to each of the other locations. Sites can be | 438 | new version will be copied to each of the other locations. Sites can be |
| 440 | specific hostnames, or names of clusters (see `shadow-define-cluster')." | 439 | specific hostnames, or names of clusters (see `shadow-define-cluster')." |
| 441 | (interactive) | 440 | (interactive) |
| 442 | (let ((name (if (buffer-file-name) | 441 | (let* ((hup (shadow-parse-fullname |
| 443 | (nth 2 (shadow-parse-fullname | 442 | (shadow-contract-file-name (buffer-file-name)))) |
| 444 | (shadow-contract-file-name (buffer-file-name)))))) | 443 | (name (nth 2 hup)) |
| 445 | user site group) | 444 | user site group) |
| 446 | (while (setq site (shadow-read-site)) | 445 | (while (setq site (shadow-read-site)) |
| 447 | ;; FIXME fix read-string calls | ||
| 448 | (setq user (read-string (format "Username (default %s): " | 446 | (setq user (read-string (format "Username (default %s): " |
| 449 | (shadow-get-user site))) | 447 | (shadow-get-user site))) |
| 450 | name (read-string "Filename: " nil nil name)) | 448 | name (read-string "Filename: " name)) |
| 451 | (if (zerop (length name)) | ||
| 452 | (error "You must specify a filename")) | ||
| 453 | (setq group (cons (shadow-make-fullname site | 449 | (setq group (cons (shadow-make-fullname site |
| 454 | (if (string-equal "" user) | 450 | (if (string-equal "" user) |
| 455 | (shadow-get-user site) | 451 | (shadow-get-user site) |