[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 74ebab6 143/258: Don't move point when closing
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 74ebab6 143/258: Don't move point when closing all folds |
Date: |
Wed, 17 May 2017 08:13:39 -0400 (EDT) |
branch: scratch/add-vdiff
commit 74ebab657e146d95ca644b5f797fc5f47fafcc4c
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Don't move point when closing all folds
---
vdiff.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index d9e2d69..4bf3813 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1204,14 +1204,16 @@ folds in the region."
(defun vdiff-open-all-folds ()
"Open all folds in both buffers"
(interactive)
- (setq vdiff--all-folds-open t)
- (vdiff-open-fold (point-min) (point-max)))
+ (save-excursion
+ (setq vdiff--all-folds-open t)
+ (vdiff-open-fold (point-min) (point-max))))
(defun vdiff-close-all-folds ()
"Close all folds in both buffers"
(interactive)
- (setq vdiff--all-folds-open nil)
- (vdiff-close-fold (point-min) (point-max)))
+ (save-excursion
+ (setq vdiff--all-folds-open nil)
+ (vdiff-close-fold (point-min) (point-max))))
(defun vdiff-close-other-folds ()
"Close all other folds in both buffers"
- [elpa] scratch/add-vdiff 23b3360 030/258: Fix compiler warnings, (continued)
- [elpa] scratch/add-vdiff 23b3360 030/258: Fix compiler warnings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff eeede0b 045/258: Reset open-fold-face, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 96258b1 046/258: Don't set open fold face, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff dc7a5e2 049/258: Add a comment on line-map structure, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e9d0cc7 050/258: Define new bitmaps for open and close of folds, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1c8dd1e 138/258: Default to nil for auto refinement, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 3d0678f 142/258: Make bitmaps nicer, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 53ee239 149/258: Fix bug in receive changes for 3way, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e171b7c 140/258: Depend on hydra, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff baed24a 148/258: Work on moving refresh to 3way, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 74ebab6 143/258: Don't move point when closing all folds,
Justin Burkett <=
- [elpa] scratch/add-vdiff 938cc55 155/258: Fix use of delq (wanted remq), Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 0cbaf6f 156/258: Fix point jumping after receive-changes, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8f7a212 157/258: Remove with-other-window and sync-line, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff c2627f0 160/258: Fix recenter-all, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 78071df 147/258: Use a separate minor-mode for 3way, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff a373c6b 139/258: Fix line endings in README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 7bc7f40 172/258: Add recent changes, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8842469 184/258: Allow point to leave overlay on target selection, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b4c3e09 195/258: Ensure sentinel runs in correct context, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 28c939f 194/258: Document new option, Justin Burkett, 2017/05/17