GNU bug report logs -
#35624
log-view-diff regression
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 7 May 2019 22:02:02 UTC
Severity: normal
Tags: patch
Found in version 26.1
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
> I kind of think that the feature the last change added is more valuable
> than the regression (especially if the regression is only triggered when
> a commit message is expanded).
It is triggered not only when a commit message is expanded.
Also it is triggered on single-file logs. Admittedly, my previous patch
didn't take this into account. Here is a new patch that works also
for single-file logs. It relies on the function 'log-view-end-of-defun'
that takes care about the "Show 2X entries" footer:
[log-view-diff-end-of-defun.patch (text/x-diff, inline)]
diff --git a/lisp/vc/log-view.el b/lisp/vc/log-view.el
index e47fad8908..3389264ce6 100644
--- a/lisp/vc/log-view.el
+++ b/lisp/vc/log-view.el
@@ -618,10 +618,11 @@ log-view-diff-common
;; When TO and FR are the same, or when point is on a line after
;; the last entry, look at the previous revision.
(when (or (string-equal fr to)
- (>= (point)
+ (>= end
(save-excursion
- (goto-char (car fr-entry))
- (forward-line))))
+ (goto-char end)
+ (log-view-end-of-defun)
+ (point))))
(setq fr (vc-call-backend log-view-vc-backend 'previous-revision nil fr)))
(vc-diff-internal
t (list log-view-vc-backend
This bug report was last modified 5 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.