[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 1cf0730 055/258: Fix compiler warnings
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 1cf0730 055/258: Fix compiler warnings |
Date: |
Wed, 17 May 2017 08:13:22 -0400 (EDT) |
branch: scratch/add-vdiff
commit 1cf0730f26c3c52d48589b0f08d2d90a2e241cd4
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Fix compiler warnings
---
vdiff.el | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index 3bb093b..f3f343d 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -466,13 +466,11 @@ text on the first line, and the width of the buffer."
(a-end (if (cdr-safe a-range)
(cdr a-range)
(car a-range)))
- (a-norm-range (cons a-beg a-end))
(a-length (1+ (- a-end a-beg)))
(b-beg (car b-range))
(b-end (if (cdr-safe b-range)
(cdr b-range)
(car b-range)))
- (b-norm-range (cons b-beg b-end))
(b-length (1+ (- b-end b-beg))))
;; Adjust line number for subtractions
@@ -642,10 +640,7 @@ changes under point or on the immediately preceding line."
(let (prev-entry)
(dolist (entry vdiff--line-map)
(let ((map-line
- (if B-to-A (cadr entry) (car entry)))
- (prev-map-line
- (when prev-entry
- (if B-to-A (cadr prev-entry) (car prev-entry)))))
+ (if B-to-A (cadr entry) (car entry))))
(cond ((< map-line line)
(setq prev-entry entry))
((= map-line line)
@@ -671,7 +666,7 @@ changes under point or on the immediately preceding line."
(1- other-map-line))
(t
(+ (- line this-map-line) other-map-line)))))
- (when (called-interactively-p)
+ (when (called-interactively-p 'interactive)
(message "This line: %s; Other line %s; In sub %s; entry %s"
line res (nth (if B-to-A 2 3) last-entry) last-entry)))))
@@ -937,7 +932,8 @@ asked to select two buffers."
(defun vdiff-exit ()
(interactive)
(dolist (buf vdiff--buffers)
- (vdiff-mode -1)))
+ (with-current-buffer buf
+ (vdiff-mode -1))))
(defalias 'vdiff-quit 'vdiff-exit)
(defvar vdiff-mode-map
- [elpa] scratch/add-vdiff 988c476 027/258: Add new defcustoms to README, (continued)
- [elpa] scratch/add-vdiff 988c476 027/258: Add new defcustoms to README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b77efe3 008/258: Add README and improve docstrings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff ce10994 003/258: Introduce defcustoms and use lists instead of .., Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff ad6035d 015/258: Implement folding of unchanged lines, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff af75c6d 036/258: Add vdiff-exit, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e8834fa 035/258: Fix fold size calcs, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 9547850 041/258: Use diff faces from theme, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff bac92b3 037/258: Improve line translation and command mirroring, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 6b6f6e7 044/258: Force fold refresh on window size change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e005d43 058/258: Delete overlays right away on sending changes, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1cf0730 055/258: Fix compiler warnings,
Justin Burkett <=
- [elpa] scratch/add-vdiff 697bb79 060/258: Prefer last element of multiple in line map, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 3207365 064/258: Satisfy compiler, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8b6cb54 218/258: vdiff-magit: Port resolve, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 617265b 238/258: vdiff-magit: Remove unused magit-ediff code, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 6f89757 231/258: vdiff-magit: Resurrect resolve, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 0f8dd15 239/258: vdiff: Improve a couple of docstrings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d8cfb8f 243/258: vdiff: Don't use scroll-lock-mode programmatically, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff bc5a9a8 242/258: vdiff-magit: Remove unnecessary local bindings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff c32fe46 251/258: vdiff: Fix compiler warnings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 875b0d5 252/258: README: Improve vdiff-magit-popup, Justin Burkett, 2017/05/17