]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/diff-mode.el: Reduce redundancy in diff-syntax-fontify code
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Feb 2019 17:09:03 +0000 (12:09 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Feb 2019 17:09:03 +0000 (12:09 -0500)
commit3432f5545c1a0c8149d489d1df8cf1d037dae2df
tree4a55dddbc0d563afbc68e2ba7d92b6cebae3151d
parentfc78519b5e909d849ede63b537f58af8db53ceff
* lisp/vc/diff-mode.el: Reduce redundancy in diff-syntax-fontify code

(diff--iterate-hunks): New function extracted from diff--font-lock-refined.
(diff--font-lock-refined, diff--font-lock-syntax): Use it.
(diff--overlay-auto-delete): Rename from diff--font-lock-refine--refresh.
(diff--font-lock-syntax--refresh): Delete.
(diff-syntax-fontify-hunk): Don't completely silence errors.
(diff-syntax-fontify-props): Remove `no-init` arg, testing if `file` is
nil instead.  Adjust all callers.
(diff-syntax-fontify-props): Remove redundant code since we don't
modify the buffer.
lisp/vc/diff-mode.el