summaryrefslogtreecommitdiff
path: root/lisp/shadowfile.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-11-04 21:08:12 -0800
committerGlenn Morris <rgm@gnu.org>2014-11-04 21:08:12 -0800
commitddce73d32fa3e62e022842e3bbdc0aa83bb358cc (patch)
tree21dbcb8d40ff634b6f821de95af2b8e3deb0a8e3 /lisp/shadowfile.el
parent6a278b64f7356613c4a7709ed699655fa7415260 (diff)
downloademacs-ddce73d32fa3e62e022842e3bbdc0aa83bb358cc.tar.gz
emacs-ddce73d32fa3e62e022842e3bbdc0aa83bb358cc.tar.bz2
emacs-ddce73d32fa3e62e022842e3bbdc0aa83bb358cc.zip
Revert previous accidental commit
Diffstat (limited to 'lisp/shadowfile.el')
-rw-r--r--lisp/shadowfile.el14
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"
:type '(choice (const nil) file)
:group 'shadow)
-;; FIXME use .emacs.d
(defcustom shadow-todo-file nil
"File to store the list of uncopied shadows in.
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
new version will be copied to each of the other locations. Sites can be
specific hostnames, or names of clusters (see `shadow-define-cluster')."
(interactive)
- (let ((name (if (buffer-file-name)
- (nth 2 (shadow-parse-fullname
- (shadow-contract-file-name (buffer-file-name))))))
- user site group)
+ (let* ((hup (shadow-parse-fullname
+ (shadow-contract-file-name (buffer-file-name))))
+ (name (nth 2 hup))
+ user site group)
(while (setq site (shadow-read-site))
- ;; FIXME fix read-string calls
(setq user (read-string (format "Username (default %s): "
(shadow-get-user site)))
- name (read-string "Filename: " nil nil name))
- (if (zerop (length name))
- (error "You must specify a filename"))
+ name (read-string "Filename: " name))
(setq group (cons (shadow-make-fullname site
(if (string-equal "" user)
(shadow-get-user site)