[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 96258b1 046/258: Don't set open fold face
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 96258b1 046/258: Don't set open fold face |
Date: |
Wed, 17 May 2017 08:13:20 -0400 (EDT) |
branch: scratch/add-vdiff
commit 96258b1dc6d9d2f46394a99687f8907313c17f2b
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Don't set open fold face
default removes syntax highlighting
---
vdiff.el | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index be9f17f..4ccde7b 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -161,7 +161,7 @@ lines hidden."
:group 'vdiff)
(defface vdiff-open-fold-face
- '((t :inherit default))
+ '((t))
"Face for open folds"
:group 'vdiff)
@@ -173,6 +173,7 @@ lines hidden."
(defvar vdiff--buffers nil)
(defvar vdiff--temp-files nil)
(defvar vdiff--process-buffer " *vdiff*")
+
(defvar vdiff--diff-data nil)
(defvar vdiff--diff-code-regexp
"^\\([0-9]+\\),?\\([0-9]+\\)?\\([adc]\\)\\([0-9]+\\),?\\([0-9]+\\)?")
@@ -707,6 +708,8 @@ buffer and center both buffers at this line."
(vdiff--move-to-line line)
(line-beginning-position))))
+(defvar vdiff--inhibit-sync-scroll nil)
+
(defun vdiff-sync-scroll (window window-start)
"Sync scrolling of all vdiff windows."
(let* ((buf-a (car vdiff--buffers))
@@ -716,28 +719,33 @@ buffer and center both buffers at this line."
(when (and (eq window (selected-window))
(window-live-p win-a)
(window-live-p win-b)
- (memq window (list win-a win-b)))
+ (memq window (list win-a win-b))
+ (not vdiff--inhibit-sync-scroll))
(let* ((in-b (eq window win-b))
(other-window (if in-b win-a win-b))
(other-buffer (if in-b buf-a buf-b))
(this-line (line-number-at-pos (point)))
(other-line (vdiff--translate-line
this-line in-b))
+ (other-line-pos (vdiff--pos-at-line-beginning
+ other-line other-buffer))
(this-start (line-number-at-pos window-start))
(other-start (vdiff--translate-line
this-start in-b))
(other-start-pos (vdiff--pos-at-line-beginning
- other-start other-buffer)))
+ other-start other-buffer))
+ (vdiff--inhibit-sync-scroll t))
+ (set-window-buffer other-window other-buffer)
(set-window-start other-window other-start-pos)
- (vdiff--with-other-window
- (goto-char (vdiff--pos-at-line-beginning other-line)))))))
+ (set-window-point other-window other-line-pos)))))
(defun vdiff-mirror-commands ()
"Execute `vdiff-mirrored-commands' in all buffers."
;; Use real-this-command because evil-next-line and evil-previous-line
pretend
;; they are next-line and previous-line
(when (and (memq real-this-command vdiff-mirrored-commands)
- (not vdiff--inhibit-sync))
+ (not vdiff--inhibit-sync)
+ (vdiff--buffer-p))
(let* ((this-line (line-number-at-pos))
(other-line (vdiff--translate-line
this-line (vdiff--buffer-b-p)))
- [elpa] scratch/add-vdiff 7561f87 100/258: Split line maps, (continued)
- [elpa] scratch/add-vdiff 7561f87 100/258: Split line maps, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 32756c3 131/258: A little better than a WIP now, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 5a6623f 012/258: Update README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e178a90 017/258: One more fold fix, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e6e87f3 019/258: Add screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d77dd83 032/258: Take care to only remove vdiff overlays on refresh, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f915562 047/258: Use customizable function to format closed fold strings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d8a4efb 023/258: Remove unused variable, Justin Burkett, 2017/05/17
- [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 <=
- [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, 2017/05/17
- [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