GNU bug report logs -
#52810
29.0.50; diff-font-lock-prettify broken on new and deleted files
Previous Next
Reported by: Matthias Meulien <orontee <at> gmail.com>
Date: Sun, 26 Dec 2021 19:57:02 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Matthias Meulien <orontee <at> gmail.com> writes:
> Proposed fixed
Thanks; applied to Emacs 28.
> (but I must confess I've no idea why the original code
> tried to set two distinct overlays):
There's no overlays here -- do you mean display text properties?
Anyway, the code was originally the below, but that was changed in
f0768d31457.
- ((null (match-beginning 1)) "new file ")
- ((null (match-beginning 2)) "deleted ")
- (t "modified "))
+ ((null (match-beginning 1))
+ (concat "new file " (match-string 2)))
+ ((null (match-beginning 2))
+ (concat "deleted " (match-string 1)))
+ (t
+ (concat "modified " (match-string 1))))
'face '(diff-file-header diff-header)))
- (unless (match-beginning 2)
- (put-text-property (match-end 1) (1- (match-end 0))
- 'display "")))))
+ (put-text-property (match-end 1) (1- (match-end 0))
+ 'display ""))))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 122 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.