aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-09-13 14:25:56 +0200
committerMichael Albinus2019-09-13 14:25:56 +0200
commit89a63c9186da693a81773eeb65bb8b17a1721d5d (patch)
tree367081851d0572d686aa676636e9b1c68ab86ce0
parent8806c196ab12a0805c5afce6ccc5a36e4911a6a3 (diff)
downloademacs-89a63c9186da693a81773eeb65bb8b17a1721d5d.tar.gz
emacs-89a63c9186da693a81773eeb65bb8b17a1721d5d.zip
; Add traces in shadowfile.el
-rw-r--r--lisp/shadowfile.el16
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index 2778e583674..3bee4115a68 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -207,7 +207,7 @@ PREFIX."
207 207
208;;; I use the term `site' to refer to a string which may be the 208;;; I use the term `site' to refer to a string which may be the
209;;; cluster identification "/name:", a remote identification 209;;; cluster identification "/name:", a remote identification
210;;; "/method:user@host:", or "/system-name:' (the value of 210;;; "/method:user@host:", or "/system-name:" (the value of
211;;; `shadow-system-name') for the location of local files. All 211;;; `shadow-system-name') for the location of local files. All
212;;; user-level commands should accept either. 212;;; user-level commands should accept either.
213 213
@@ -607,6 +607,11 @@ and to are absolute file names."
607 canonical-file shadow-literal-groups nil) 607 canonical-file shadow-literal-groups nil)
608 (shadow-shadows-of-1 608 (shadow-shadows-of-1
609 canonical-file shadow-regexp-groups t))))) 609 canonical-file shadow-regexp-groups t)))))
610 (when shadow-debug
611 (message
612 "shadow-shadows-of: %s %s %s %s %s"
613 file (shadow-local-file file) shadow-homedir
614 absolute-file canonical-file))
610 (set (intern file shadow-hashtable) shadows)))) 615 (set (intern file shadow-hashtable) shadows))))
611 616
612(defun shadow-shadows-of-1 (file groups regexp) 617(defun shadow-shadows-of-1 (file groups regexp)
@@ -621,6 +626,10 @@ Consider them as regular expressions if third arg REGEXP is true."
621 (let ((realname 626 (let ((realname
622 (tramp-file-name-localname 627 (tramp-file-name-localname
623 (shadow-parse-name file)))) 628 (shadow-parse-name file))))
629 (when shadow-debug
630 (message
631 "shadow-shadows-of: %s %s %s"
632 file (shadow-parse-name file) realname))
624 (mapcar 633 (mapcar
625 (function 634 (function
626 (lambda (x) 635 (lambda (x)
@@ -631,6 +640,11 @@ Consider them as regular expressions if third arg REGEXP is true."
631 640
632(defun shadow-add-to-todo () 641(defun shadow-add-to-todo ()
633 "If current buffer has shadows, add them to the list needing to be copied." 642 "If current buffer has shadows, add them to the list needing to be copied."
643 (when shadow-debug
644 (message
645 "shadow-add-to-todo: %s %s"
646 (buffer-file-name (current-buffer))
647 (shadow-expand-file-name (buffer-file-name (current-buffer)))))
634 (let ((shadows (shadow-shadows-of 648 (let ((shadows (shadow-shadows-of
635 (shadow-expand-file-name 649 (shadow-expand-file-name
636 (buffer-file-name (current-buffer)))))) 650 (buffer-file-name (current-buffer))))))