GNU bug report logs -
#12747
Make diff-auto-refine-mode refine from jit/font-lock
Previous Next
Reported by: Oleksandr Gavenko <gavenkoa <at> gmail.com>
Date: Sun, 28 Oct 2012 12:17:01 UTC
Severity: wishlist
Tags: fixed
Merged with 16798,
18128,
21744
Found in versions 23.4, 24.5
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) but seems that
current truck have same problem as related part of 'diff-mode.el' unchanged.
If I enable diff-auto-refine-mode in all diff-mode buffers:
(defun my-diff-auto-refine-mode-on () (diff-auto-refine-mode 1))
(add-hook 'diff-mode-hook 'my-diff-auto-refine-mode-on)
I see actions only on last hunk in diff. Look to definition:
(define-minor-mode diff-auto-refine-mode
(when diff-auto-refine-mode
(condition-case-unless-debug nil (diff-refine-hunk) (error nil))))
and to doc string:
diff-refine-hunk is an interactive compiled Lisp function in `diff-mode.el'.
Highlight changes of hunk at point at a finer granularity.
So I think 'diff-auto-refine-mode' must iterate over all hunks and apply
'diff-refine-hunk' function on each of them.
--
Best regards!
This bug report was last modified 7 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.