]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/diff-mode.el: Improve diff-font-lock-prettify
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 21 Oct 2018 15:05:49 +0000 (11:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 21 Oct 2018 15:05:49 +0000 (11:05 -0400)
commit17252062b03defe9eac6a510e88b87932ef400fe
tree5dc9d05befd582c2eacb990186857eaffbc19cce
parent67d3b40e0cba5f34b1c7aacc4e1ccea6300eae76
* lisp/vc/diff-mode.el: Improve diff-font-lock-prettify

A few tweaks to the previous code for corner case problems, and a new
feature, which is to move the +/- signs to the left fringe.

(diff--font-lock-cleanup, diff--filter-substring): New functions.
(diff-mode): Use them.
(diff--font-lock-refined): Mark the overall overlays as `diff-mode
fine` as well, so they get properly cleaned up when changing mode.
(diff-fringe-add, diff-fringe-del, diff-fringe-rep, diff-fringe-nul):
New bitmaps.
(diff--font-lock-prettify): Move the +/- signs to the fringe.
(diff-wiggle): Use 'user-error'.
lisp/vc/diff-mode.el