[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/ediff-diff.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/ediff-diff.el |
Date: |
Mon, 16 May 2005 07:33:49 -0400 |
Index: emacs/lisp/ediff-diff.el
diff -c emacs/lisp/ediff-diff.el:1.41 emacs/lisp/ediff-diff.el:1.42
*** emacs/lisp/ediff-diff.el:1.41 Sat Feb 19 04:46:24 2005
--- emacs/lisp/ediff-diff.el Mon May 16 11:33:46 2005
***************
*** 393,412 ****
(ediff-with-current-buffer diff-buffer
(goto-char (point-min))
(while (re-search-forward ediff-match-diff-line nil t)
! (let* ((a-begin (string-to-int (buffer-substring (match-beginning 1)
! (match-end 1))))
(a-end (let ((b (match-beginning 3))
(e (match-end 3)))
(if b
! (string-to-int (buffer-substring b e))
a-begin)))
(diff-type (buffer-substring (match-beginning 4) (match-end 4)))
! (b-begin (string-to-int (buffer-substring (match-beginning 5)
! (match-end 5))))
(b-end (let ((b (match-beginning 7))
(e (match-end 7)))
(if b
! (string-to-int (buffer-substring b e))
b-begin)))
a-begin-pt a-end-pt b-begin-pt b-end-pt
c-begin c-end c-begin-pt c-end-pt)
--- 393,412 ----
(ediff-with-current-buffer diff-buffer
(goto-char (point-min))
(while (re-search-forward ediff-match-diff-line nil t)
! (let* ((a-begin (string-to-number (buffer-substring (match-beginning 1)
! (match-end 1))))
(a-end (let ((b (match-beginning 3))
(e (match-end 3)))
(if b
! (string-to-number (buffer-substring b e))
a-begin)))
(diff-type (buffer-substring (match-beginning 4) (match-end 4)))
! (b-begin (string-to-number (buffer-substring (match-beginning 5)
! (match-end 5))))
(b-end (let ((b (match-beginning 7))
(e (match-end 7)))
(if b
! (string-to-number (buffer-substring b e))
b-begin)))
a-begin-pt a-end-pt b-begin-pt b-end-pt
c-begin c-end c-begin-pt c-end-pt)
***************
*** 934,949 ****
;; it is a "c" group
(if (match-beginning 2)
;; it has two numbers
! (list (string-to-int
(buffer-substring (match-beginning 1) (match-end 1)))
! (1+ (string-to-int
(buffer-substring (match-beginning 3) (match-end 3)))))
;; it has one number
! (let ((x (string-to-int
(buffer-substring (match-beginning 1) (match-end 1)))))
(list x (1+ x))))
;; it is an "a" group
! (let ((x (1+ (string-to-int
(buffer-substring (match-beginning 1) (match-end 1))))))
(list x x)))))
--- 934,949 ----
;; it is a "c" group
(if (match-beginning 2)
;; it has two numbers
! (list (string-to-number
(buffer-substring (match-beginning 1) (match-end 1)))
! (1+ (string-to-number
(buffer-substring (match-beginning 3) (match-end 3)))))
;; it has one number
! (let ((x (string-to-number
(buffer-substring (match-beginning 1) (match-end 1)))))
(list x (1+ x))))
;; it is an "a" group
! (let ((x (1+ (string-to-number
(buffer-substring (match-beginning 1) (match-end 1))))))
(list x x)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/ediff-diff.el,
Juanma Barranquero <=