]> git.eshelyaron.com Git - emacs.git/commit
Fix 'diff-font-lock-prettify' breaking display of outline headers
authorMatthias Meulien <orontee@gmail.com>
Fri, 5 Nov 2021 02:50:01 +0000 (03:50 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Nov 2021 02:50:01 +0000 (03:50 +0100)
commitf0768d31457bb9740957958d6b8abc281d5012d8
tree30045b4e3b548205e3c9c12da644392b51094a0c
parent48af19c1f06c2f3b20e4056bedf137a5e3c0e05e
Fix 'diff-font-lock-prettify' breaking display of outline headers

* lisp/vc/diff-mode.el (diff-outline-level): Make hunk headers be
at level 2.
(diff-mode): Use prettified line as outline header.
(diff--outline-level): New function (bug#51016).

* lisp/vc/vc.el (vc-diff-internal): Fix diff mode being set before
content inserted (bug#51016).
lisp/vc/diff-mode.el
lisp/vc/vc.el