[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 69c85cb 080/258: Better way to trigger other wi
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 69c85cb 080/258: Better way to trigger other window update |
Date: |
Wed, 17 May 2017 08:13:26 -0400 (EDT) |
branch: scratch/add-vdiff
commit 69c85cb4c387d3655ccbf77242c8cad466c5b9bd
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Better way to trigger other window update
---
vdiff.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index 13685ea..d93ccb2 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -754,11 +754,10 @@ buffer and center both buffers at this line."
(when (and (memq real-this-command vdiff-mirrored-commands)
(not vdiff--in-post-command-hook)
(vdiff--buffer-p))
- ;; New Strategy: Use (message nil) to just force a redisplay in other
- ;; window. This is the only way I've figured out how to reliably do this so
- ;; far. I don't know why (redisplay t) and similar calls don't work here.
+ ;; New Strategy: Just force a redisplay in other window and let
+ ;; `vdiff--scroll-function' do the work.
(let ((vdiff--in-post-command-hook t))
- (vdiff--with-other-window (message nil)))
+ (force-window-update (vdiff--other-window)))
;; Old strategy: Execute command in other buffer, which worked but it
wasn't
;; easy to keep the cursors aligned.
- [elpa] scratch/add-vdiff a094450 048/258: Tweak line translation rules for better scrolling, (continued)
- [elpa] scratch/add-vdiff a094450 048/258: Tweak line translation rules for better scrolling, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 0fd1837 063/258: Update screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b02b59e 072/258: Whitespace cleanup, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b2ba7ab 070/258: Move hydra to main file and avoid dependency, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff bfdfc74 053/258: Modify gitignore, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d25fe21 054/258: More arg name changes, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 875e6ce 057/258: Merge pull request #2 from purcell/patch-1, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1640078 061/258: Merge remote-tracking branch 'origin/master', Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff c6c959d 071/258: Fix nth-change at beginning and end of buffer, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d07e9fb 056/258: Fix typo in package description, remove redundant "for Emacs", Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 69c85cb 080/258: Better way to trigger other window update,
Justin Burkett <=
- [elpa] scratch/add-vdiff cce8eb1 086/258: Don't close fold on point after change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8a88f84 074/258: Use simpler strategy for updating windows on line move, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff c5589a1 089/258: Delete temp files on deactivation, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4dc6c89 077/258: Add next/prev fold commands and update hydra, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4ea6afb 082/258: Add docstrings and rearrange some calls, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 52c675a 096/258: Add hydra screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1276208 103/258: Recenter after next/prev hunk, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4ee7fca 104/258: Set intangible property for closed folds, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 16eb802 107/258: Update README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 0dc9fde 114/258: Try not to move point on change transmission, Justin Burkett, 2017/05/17