diff options
| author | Charles A. Roelli | 2019-02-24 16:13:13 +0100 |
|---|---|---|
| committer | Charles A. Roelli | 2019-03-03 21:31:05 +0100 |
| commit | d6b3e5bbc5e14c32f3faad9f1481ec16807ac2fe (patch) | |
| tree | d6c054f8db81eb0fbdaa90a4046703b6b28f2612 /etc | |
| parent | 81ae21792b3d840a2f11e4c3a682e1e30799c37f (diff) | |
| download | emacs-d6b3e5bbc5e14c32f3faad9f1481ec16807ac2fe.tar.gz emacs-d6b3e5bbc5e14c32f3faad9f1481ec16807ac2fe.zip | |
Merge diff-font-lock-refine and diff-auto-refine-mode into diff-refine
This change was discussed in Bug#32991.
* admin/gitmerge.el (gitmerge-resolve): Bind 'diff-refine'
instead of 'diff-auto-refine-mode' to nil.
* doc/emacs/files.texi (Diff Mode): Explain 'diff-refine'
instead of 'diff-auto-refine-mode' in the documentation of
'diff-hunk-next' and 'diff-hunk-prev'. Mention in the
documentation of 'diff-refine-hunk' that refining is already
done by default.
* etc/NEWS (Diff mode): Explain renamed 'diff-refine' variable
and mention deprecation and disabling of
'diff-auto-refine-mode'.
* lisp/vc/diff-mode.el (diff-font-lock-refine): Rename to
'diff-refine' and allow choices nil, 'font-lock' and 'navigation'.
(diff-auto-refine-mode): Disable it by default, make it
obsolete and make it set 'diff-refine' appropriately to keep
backward compatibility.
(diff-hunk-next, diff-hunk-prev): Adapt to rename of
diff-auto-refine-mode and ensure that refining only happens
when calling these commands interactively.
(diff--font-lock-refined): Adapt to rename of
diff-font-lock-refine.
* lisp/vc/smerge-mode.el (smerge-next, smerge-prev): Check
that 'diff-refine' is set instead of checking
'diff-auto-refine-mode' when deciding whether to refine a
conflict.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 9 insertions, 2 deletions
| @@ -479,8 +479,15 @@ and compares their entire trees. | |||
| 479 | to hg revert. | 479 | to hg revert. |
| 480 | 480 | ||
| 481 | ** Diff mode | 481 | ** Diff mode |
| 482 | *** Hunks are now automatically refined by default. | 482 | +++ |
| 483 | To disable it, set the new defcustom 'diff-font-lock-refine' to nil. | 483 | *** Hunks are now automatically refined by font-lock. |
| 484 | To disable refinement, set the new defcustom 'diff-refine' to nil. | ||
| 485 | To get back the old behavior where hunks are refined as you navigate | ||
| 486 | through a diff, set 'diff-refine' to the symbol 'navigate'. | ||
| 487 | +++ | ||
| 488 | *** 'diff-auto-refine-mode' is deprecated in favor of 'diff-refine'. | ||
| 489 | It is no longer enabled by default and binding it no longer has any | ||
| 490 | effect. | ||
| 484 | 491 | ||
| 485 | +++ | 492 | +++ |
| 486 | *** Better syntax highlighting of Diff hunks. | 493 | *** Better syntax highlighting of Diff hunks. |