unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Anthony Foiani <anthony.foiani@gmail.com>
Cc: 17166@debbugs.gnu.org
Subject: bug#17166: 24.3; ediff-swap-buffers doesn't swap per-difference colors
Date: Wed, 11 May 2022 15:24:32 +0200	[thread overview]
Message-ID: <87k0as8anj.fsf@gnus.org> (raw)
In-Reply-To: <CAOhNY-94z3t=puFb79KmAc=d7OAOcMzkV_0Jp7axwp6VzfSCjA@mail.gmail.com> (Anthony Foiani's message of "Wed, 2 Apr 2014 00:05:27 -0700")

Anthony Foiani <anthony.foiani@gmail.com> writes:

> What I wanted to happen:
>
>   When using "~" to swap buffers A and B in a simple "ediff-buffers"
>   invocation, I would like the per-diff region backgrounds to also be
>   swapped (e.g, red should stay on the top or left, while green should
>   be on the bottom or right).
>
> How I tried to make it happen:
>
>   0. Start emacs with "emacs -q"
>   1. Create buffer "*before*", add some content
>   2. Create buffer "*after*", add similar but slightly different
>      content.
>   3. M-x ediff-buffers RET *before* RET *after* RET
>   4. "~" to swap A/B buffers
>   5. "n" to go to change 1
>
> What actually happened:
>
>   At step (5) above, instead of seeing dim red + bright red on the top,
>   and dim green + bright green on the bottom, the overall regions had
>   the wrong color (dim green on top, dim red on bottom), while the
>   refinements had the correct colors (bright red on top, bright greeen
>   on bottom).
>
> Screenshots:
>
>   1. Correct colors, before swapping with "~":
>      http://foiani.home.dyndns.org/~tony/emacs/correct-before-swap.png
>
>   2. Incorrect colors, after swap:
>      http://foiani.home.dyndns.org/~tony/emacs/wrong-after-swap.png

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Eight years later, those links don't work, of course, so I'm not quite
sure I'm reproducing this problem correctly.  But following that recipe,
everything seems to work fine for me in Emacs 29, but my buffer contents
may be different in a way that doesn't show the problem.

Are you still seeing this problem in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-05-11 13:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02  7:05 bug#17166: 24.3; ediff-swap-buffers doesn't swap per-difference colors Anthony Foiani
2022-05-11 13:24 ` Lars Ingebrigtsen [this message]
2022-06-09 13:58   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0as8anj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=17166@debbugs.gnu.org \
    --cc=anthony.foiani@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).