found 35624 26.1 tags 35624 + patch quit >> This is exactly what was my initial thought, but this is a wrong fix, >> as I realized later. > > Okay, let's work on it. > > I do want to just commit that patch first, since it was obviously the idea > behind the previous change. Since it's wrong in any case, better to revert it altogether in emacs-26. >> I also tried >> >> (not (re-search-forward log-view-message-re nil t)) >> >> but it seems this is impossible to do because currently >> log-view.el doesn't support the notion of the end of >> the last revision expanded body. > > The other option is check whether all lines between the point and EOB are > either empty of start with "Show 2X entries". Which is a design I don't > particularly like, but it could serve your goal. Actually there is the much needed function log-view-inside-comment-p for expanded comments, and this patch correctly handles all cases: