]> git.eshelyaron.com Git - emacs.git/commit
More font-lock improvements for diff-mode
authorJuri Linkov <juri@linkov.net>
Tue, 18 Dec 2018 23:10:09 +0000 (01:10 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 18 Dec 2018 23:10:09 +0000 (01:10 +0200)
commitfb16313025dcbe2f010a79072536aeab000eaf80
tree5ece6b88f047bcd868df6650baaf23ec456cc1ab
parent8cbbf4ba25bef2c6c1b525aa380a1cd3f0b0d012
More font-lock improvements for diff-mode

* lisp/vc/diff-mode.el (diff-font-lock-keywords): Use diff-header face
for git index lines (like already used for bzr index lines).
Use diff-file-header face for binary file headers.
(diff-find-source-location): Use expand-file-name for vc-find-revision.
(diff--font-lock-prettify): Use diff-indicator-* faces for
left-fringe indicators.
(diff-syntax-fontify-props): Optimize to not use text-property-not-all
for font-lock-ensure.

* lisp/replace.el (occur-engine-line): Simplify to use font-lock-ensure
without text-property-not-all.
lisp/replace.el
lisp/vc/diff-mode.el