;;; I use the term `site' to refer to a string which may be the
;;; cluster identification "/name:", a remote identification
-;;; "/method:user@host:", or "/system-name:' (the value of
+;;; "/method:user@host:", or "/system-name:" (the value of
;;; `shadow-system-name') for the location of local files. All
;;; user-level commands should accept either.
canonical-file shadow-literal-groups nil)
(shadow-shadows-of-1
canonical-file shadow-regexp-groups t)))))
+ (when shadow-debug
+ (message
+ "shadow-shadows-of: %s %s %s %s %s"
+ file (shadow-local-file file) shadow-homedir
+ absolute-file canonical-file))
(set (intern file shadow-hashtable) shadows))))
(defun shadow-shadows-of-1 (file groups regexp)
(let ((realname
(tramp-file-name-localname
(shadow-parse-name file))))
+ (when shadow-debug
+ (message
+ "shadow-shadows-of: %s %s %s"
+ file (shadow-parse-name file) realname))
(mapcar
(function
(lambda (x)
(defun shadow-add-to-todo ()
"If current buffer has shadows, add them to the list needing to be copied."
+ (when shadow-debug
+ (message
+ "shadow-add-to-todo: %s %s"
+ (buffer-file-name (current-buffer))
+ (shadow-expand-file-name (buffer-file-name (current-buffer)))))
(let ((shadows (shadow-shadows-of
(shadow-expand-file-name
(buffer-file-name (current-buffer))))))