GNU bug report logs -
#10181
24.0.92; [wishlist] split `diff-refine-change' in several faces
Previous Next
Reported by: Dani Moncayo <dmoncayo <at> gmail.com>
Date: Thu, 1 Dec 2011 15:57:01 UTC
Severity: wishlist
Found in version 24.0.92
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> (defface diff-removed
> - '((t :inherit diff-changed))
> + '((((class color) (min-colors 88))
> + :inherit diff-changed
> + :background "#ffdddd")
> + (((class color))
> + :inherit diff-changed
> + :foreground "red"
> + :weight normal
> + :slant normal)
> + (t
> + :inherit diff-changed))
Please move the :inherit to a `default' clause instead of copying it
into each one of the clauses.
> @@ -393,7 +409,18 @@ (defvar diff-font-lock-keywords
> ("^\\([+>]\\)\\(.*\n\\)"
> (1 diff-indicator-added-face) (2 diff-added-face))
> ("^\\(!\\)\\(.*\n\\)"
> - (1 diff-indicator-changed-face) (2 diff-changed-face))
> + (1 diff-indicator-changed-face)
> + (2
> + (if (not (or (face-equal diff-changed-face diff-added-face)
> + (face-equal diff-changed-face diff-removed-face)))
Please introduce a defvar for it, so we don't re-evaluate the face
comparison for each and every line.
> +PROPS is an alist of properties to put (via overlays) on the changes,
> +or only on removed characters when PROPS2 is non-nil.
> +PROPS2 is an alist of properties to put on added characters.
This doesn't say that PROPS will be put on the "removed" chars.
And while I'm OK with not implementing the changed-added-remove scheme
for refinement yet, I think that if we change the API of
smerge-refine-subst for the added-removed case, we should make sure the
API won't need to be changed yet again if/when we add the
changed-added-removed scheme.
Stefan
This bug report was last modified 10 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.