Function: shadow-add-to-todo
shadow-add-to-todo is a byte-compiled function defined in
shadowfile.el.gz.
Signature
(shadow-add-to-todo)
Documentation
If current buffer has shadows, add them to the list needing to be copied.
Source Code
;; Defined in /usr/src/emacs/lisp/shadowfile.el.gz
(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))))))
(when shadow-debug
(message
"shadow-add-to-todo: %s %s\n%s"
shadows shadow-files-to-copy (with-output-to-string (backtrace))))
(when shadows
(setq shadow-files-to-copy
(nreverse (cl-union shadows shadow-files-to-copy :test #'equal)))
(when (not shadow-inhibit-message)
(message "%s" (substitute-command-keys
"Use \\[shadow-copy-files] to update shadows."))
(sit-for 1))
(shadow-write-todo-file)))
nil) ; Return nil for write-file-functions