Avoid making backup files in ediff when `make-backup-files' is nil

* lisp/vc/ediff-util.el (ediff-arrange-autosave-in-merge-jobs):
Don't make backup files when `make-backup-files' is nil (bug#21599).
This commit is contained in:
Lars Ingebrigtsen 2021-07-08 15:46:38 +02:00
parent de5ae0c964
commit 57eb0db9dc

View file

@ -563,8 +563,9 @@ to invocation.")
(set-visited-file-name merge-buffer-file))))
(ediff-with-current-buffer ediff-buffer-C
(setq buffer-offer-save t) ; ask before killing buffer
;; make sure the contents is auto-saved
(auto-save-mode 1))
(when make-backup-files
;; make sure the contents is auto-saved
(auto-save-mode 1)))
))