Revert "Fix fontification in diff--font-lock-prettify"
This reverts commit 1da392d62d.
This commit is contained in:
parent
1da392d62d
commit
3cadd72673
1 changed files with 13 additions and 11 deletions
|
|
@ -2612,17 +2612,19 @@ fixed, visit it in a buffer."
|
|||
"\\(?:index.*\n\\)?"
|
||||
"--- \\(?:" null-device "\\|a/\\(.*\\)\\)\n"
|
||||
"\\+\\+\\+ \\(?:" null-device "\\|b/\\(.*\\)\\)\n"))))
|
||||
(put-text-property (match-beginning 0) (1- (match-end 0))
|
||||
'display
|
||||
(propertize
|
||||
(cond
|
||||
((null (match-string 1))
|
||||
(concat "new file " (match-string 2)))
|
||||
((null (match-string 2))
|
||||
(concat "deleted " (match-string 1)))
|
||||
(t
|
||||
(concat "modified " (match-string 1))))
|
||||
'face '(diff-file-header diff-header))))))
|
||||
(put-text-property (match-beginning 0)
|
||||
(or (match-beginning 2) (match-beginning 1))
|
||||
'display (propertize
|
||||
(cond
|
||||
((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)))
|
||||
(put-text-property (match-end 1) (1- (match-end 0))
|
||||
'display ""))))
|
||||
nil)
|
||||
|
||||
;;; Syntax highlighting from font-lock
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue