]> git.eshelyaron.com Git - emacs.git/commit
diff-mode.el (diff-refine-nonmodified): New option
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Feb 2024 22:03:10 +0000 (17:03 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:50:06 +0000 (18:50 +0100)
commit3040569e4af0df6f07a87d9309e9458b35120a13
tree54aade17b5e3e97376007286cac75d5aa0952922
parenta32d6ba70ac8dab57305d9de5a148c27b3ac6d70
diff-mode.el (diff-refine-nonmodified): New option

* lisp/vc/diff-mode.el (diff-font-lock-keywords): Refer directly to
font-lock faces.
(diff-apply-hunk): Use `user-error` for errors usually not due to bugs.
(diff--refine-propertize): New function.
(diff-refine-nonmodified): New custom var (bug#61396).
(diff--refine-hunk): Use them.

(cherry picked from commit 26290870b3505b8971c73fe3a82b69e3c4e86b88)
etc/NEWS
lisp/vc/diff-mode.el