(buffer (cdr entry)))
(if (buffer-live-p buffer)
(progn
- ;; Don't re-initialize the buffer (which would throw
- ;; away the previous fontification work).
- (setq file nil)
(setq diff--cached-revision-buffers
(cons entry
(delq entry diff--cached-revision-buffers))))
(diff--cache-schedule-clean)
(and buffer
(with-current-buffer buffer
- (diff-syntax-fontify-props file text line-nb)))))
+ ;; Major mode is set in vc-find-revision-no-save already.
+ (diff-syntax-fontify-props nil text line-nb)))))
(defun diff-syntax-fontify-hunk (beg end old)
"Highlight source language syntax in diff hunk between BEG and END.