[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in diff-mode.el?
From: |
Martin Stone Davis |
Subject: |
bug in diff-mode.el? |
Date: |
Tue, 04 Nov 2003 15:11:26 -0800 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 |
The following code looks wrong to me:
(defun diff-after-change-function (beg end len)
"Remember to fixup the hunk header.
See `after-change-functions' for the meaning of BEG, END and LEN."
...
(when (and (not undo-in-progress) (not inhibit-read-only))
(if diff-unhandled-changes
(setq diff-unhandled-changes
(cons (min beg (car diff-unhandled-changes))
(max beg (cdr diff-unhandled-changes))))
---------^^^
(setq diff-unhandled-changes (cons beg end)))))
Shouldn't it be: (max end (cdr diff-unhandled-changes)) ?
This is version 21.3.1.
-Martin
- bug in diff-mode.el?,
Martin Stone Davis <=