; More instrumentation for shadowfile-tests.el and files.el
* test/lisp/shadowfile-tests.el (shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Use `set-visited-file-name' instead of setting the value in `buffer-file-name' directly. (Bug#32226)
This commit is contained in:
parent
7fbf124796
commit
243b68f73f
2 changed files with 6 additions and 0 deletions
|
@ -5091,13 +5091,16 @@ Before and after saving the buffer, this function runs
|
|||
;; Otherwise, write it the usual way now.
|
||||
(let ((dir (file-name-directory
|
||||
(expand-file-name buffer-file-name))))
|
||||
(if (getenv "BUG_32226") (message "BUG_32226 %s" dir))
|
||||
(unless (file-exists-p dir)
|
||||
(if (y-or-n-p
|
||||
(format-message
|
||||
"Directory `%s' does not exist; create? " dir))
|
||||
(make-directory dir t)
|
||||
(error "Canceled")))
|
||||
(if (getenv "BUG_32226") (message "BUG_32226 %s" dir))
|
||||
(setq setmodes (basic-save-buffer-1)))))
|
||||
(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.
|
||||
|
|
|
@ -724,6 +724,9 @@ guaranteed by the originator of a cluster definition."
|
|||
(dolist (elt (all-completions "shadow-" obarray 'functionp))
|
||||
(trace-function-background (intern elt)))
|
||||
(trace-function-background 'save-buffer)
|
||||
(trace-function-background 'basic-save-buffer)
|
||||
(trace-function-background 'basic-save-buffer-1)
|
||||
(trace-function-background 'basic-save-buffer-2)
|
||||
(dolist (elt write-file-functions)
|
||||
(trace-function-background elt))
|
||||
;; Cleanup.
|
||||
|
|
Loading…
Add table
Reference in a new issue