(defun log-edit-diff-fileset ()
"Display diffs for the files to be committed."
(interactive)
- (vc-diff nil nil (list log-edit-vc-backend vc-log-fileset)))
+ ;; Re NOT-ESSENTIAL non-nil: this function can get called from
+ ;; `log-edit-hook' and we don't want to abort the whole Log Edit setup
+ ;; because the user says no to saving a buffer. The buffers will
+ ;; still actually get saved before committing by `vc-finish-logentry'.
+ ;; Possibly `log-edit-maybe-show-diff' should catch the error instead.
+ (vc-diff nil 'not-essential (list log-edit-vc-backend vc-log-fileset)))
(defun log-edit-show-diff ()
"Show diff for the changes to be committed."