diff options
| author | Dima Kogan | 2016-12-19 23:23:14 -0800 |
|---|---|---|
| committer | Dima Kogan | 2016-12-24 21:42:02 -0800 |
| commit | e5ef59b87da5c2ddfa22f7342efe29b3eea6ed97 (patch) | |
| tree | 8bd80d19534ed1e97400bdd912fb2883b82fba12 /src | |
| parent | 6b6abe0dba6a9a2e5f78aac3814421886e7a184f (diff) | |
| download | emacs-e5ef59b87da5c2ddfa22f7342efe29b3eea6ed97.tar.gz emacs-e5ef59b87da5c2ddfa22f7342efe29b3eea6ed97.zip | |
diff-mode auto-refines only after a successful motion
Prior to this patch (if enabled) auto-refinement would kick in after all
hunk navigation commands, even if the motion failed. This would result
in a situation where the hunk navigation would signal an error and beep,
but yet still accomplish potentially useful work, by auto-refining.
This patch moves the auto-refinement code to only run when a motion was
successful
* lisp/vc/diff-mode.el (diff--internal-hunk-next,
diff--internal-hunk-prev): Removed auto-refinement-triggering code
* lisp/vc/diff-mode.el (diff--wrap-navigation): Added
auto-refinement-triggering code
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions