1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
emacs/doc
Juri Linkov 6973b1489b Syntactic fontification of diff hunks (bug#33567)
* lisp/vc/diff-mode.el (diff-font-lock-syntax): New defcustom.
(diff-default-directory): New buffer-local variable.
(diff-indicator-removed, diff-indicator-added)
(diff-indicator-changed): Set foreground to distinctive colors.
(diff-context): Remove colors to make room for syntax highlighting.
(diff-font-lock-keywords): Add diff--font-lock-syntax.
(diff--font-lock-cleanup): Remove diff-mode syntax overlays.
(diff--font-lock-syntax, diff--font-lock-syntax--refresh)
(diff-syntax-fontify-revisions, diff-syntax-fontify-hunk)
(diff-syntax-fontify-props): New functions.

* lisp/vc/diff.el (diff-no-select): Set diff-default-directory to
default-directory.

* doc/emacs/files.texi (Diff Mode): Document diff-font-lock-syntax.
2018-12-18 01:11:15 +02:00
..
emacs Syntactic fontification of diff hunks (bug#33567) 2018-12-18 01:11:15 +02:00
lispintro Fix ‘make clean’ with a file named ‘-.o’ 2018-09-24 10:45:07 -07:00
lispref Improve flatten-tree documentation 2018-12-17 10:26:15 -08:00
man Add support in emacsclient for EMACS_SOCKET_NAME 2018-10-27 12:18:27 +03:00
misc Add Tramp sudoedit method 2018-12-16 15:49:07 +01:00