(make-directory dir t)
(error "Canceled")))
(setq setmodes (basic-save-buffer-1)))))
+ ;; We are hunting a nasty error, which happens on hydra.
+ ;; Adding traces might help.
+ (if (getenv "BUG_32226") (message "BUG_32226"))
;; Now we have saved the current buffer. Let's make sure
;; that buffer-file-coding-system is fixed to what
;; actually used for saving by binding it locally.
(dolist (elt (all-completions "shadow-" obarray 'functionp))
(trace-function-background (intern elt)))
(trace-function-background 'save-buffer)
+ (dolist (elt write-file-functions)
+ (trace-function-background elt))
;; Cleanup.
(when (file-exists-p shadow-info-file)
(delete-file shadow-info-file))
(message "Point 4.2")
(insert "foo")
(message "%s" buffer-file-name)
+ (message "%s" write-file-functions)
+ (setenv "BUG_32226" "1")
(save-buffer))
+ (setenv "BUG_32226")
(message "Point 4.3")
(message "%s" (shadow-site-primary cluster2))
(message "%s" (shadow-contract-file-name (concat "/cluster1:" file)))
shadow-files-to-copy)))
(error (message "Error: %s" err) (signal (car err) (cdr err))))
+ (setenv "BUG_32226")
(untrace-all)
(message "%s" (with-current-buffer trace-buffer (buffer-string)))