]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/diff-mode.el: Avoid re-initializing buffer in diff-syntax
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2019 01:06:59 +0000 (21:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2019 01:06:59 +0000 (21:06 -0400)
commitbd6a19ccfdafa4e5a1c0d9028d2404bb55aec124
treea1149eefbd4c99e8f65f79d9009e9af5bbb81b26
parent7ba7def5caf7ec9d9bebffff489f0a658229fbda
* lisp/vc/diff-mode.el: Avoid re-initializing buffer in diff-syntax

(diff--syntax-file-attributes): New var.
(diff-syntax-fontify-hunk): Detect when we're reusing the same buffer as
last time, to avoid re-initializing it.  Skip the
diff-syntax-fontify-revisions hash-table, since buffer-alist plays the
same role.
(diff-syntax-fontify-revisions): Delete var.
lisp/vc/diff-mode.el