]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve documentation of 'diff-font-lock-prettify'
authorEli Zaretskii <eliz@gnu.org>
Tue, 13 Aug 2019 15:16:51 +0000 (18:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 13 Aug 2019 15:16:51 +0000 (18:16 +0300)
* lisp/vc/diff-mode.el (diff-font-lock-prettify): Doc fix.

* etc/NEWS: Minor copyedits.

etc/NEWS
lisp/vc/diff-mode.el

index e8618152ed9b60a7a1cf43735e6461ced97bd4bf..b9e9e28db4b291b685a2fef2f30c45f62a909434 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -734,6 +734,10 @@ With a prefix argument asks for a command, so for example,
 'C-u M-x vc-log-search RET git log -1 f302475 RET' will display
 just one log entry found by its revision number.
 
+*** 'C-x v =' can now mimic Magit's diff format.
+Set the new user option 'diff-font-lock-prettify' to t for that, see
+below under "Diff mode".
+
 ** Diff mode
 +++
 *** Hunks are now automatically refined by font-lock.
@@ -754,6 +758,8 @@ according to the appropriate major mode.  Customize the new option
 
 *** File headers can be shortened, mimicking Magit's diff format.
 To enable it, set the new user option 'diff-font-lock-prettify' to t.
+On GUI frames, this option also displays the insertion and deletion
+indicators on the left fringe.
 
 +++
 *** Prefix arg of 'diff-goto-source' means jump to the old revision
index c4812e81d40d85f8fe674610b44b4a04a24cd743..19f9c802d40bf8fcf3bf337e64e02aa1dcebc0e1 100644 (file)
@@ -109,7 +109,11 @@ You can always manually refine a hunk with `diff-refine-hunk'."
                  (const :tag "Refine hunks during navigation" navigation)))
 
 (defcustom diff-font-lock-prettify nil
-  "If non-nil, font-lock will try and make the format prettier."
+  "If non-nil, font-lock will try and make the format prettier.
+
+This mimics the Magit's diff format by making the hunk header
+less cryptic, and on GUI frames also displays insertion and
+deletion indicators on the left fringe (if it's available)."
   :version "27.1"
   :type 'boolean)