From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anthony Foiani Newsgroups: gmane.emacs.bugs Subject: bug#17166: 24.3; ediff-swap-buffers doesn't swap per-difference colors Date: Wed, 2 Apr 2014 00:05:27 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1396521575 14429 80.91.229.3 (3 Apr 2014 10:39:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 10:39:35 +0000 (UTC) To: 17166@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 12:39:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVeLb-0001eo-TD for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 11:54:12 +0200 Original-Received: from localhost ([::1]:36687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFHN-0004mi-7S for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Apr 2014 03:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFHI-0004md-Fj for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVFHG-0001I3-Mn for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:08:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFHG-0001Hy-JE for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WVFHF-0004ra-TU for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anthony Foiani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Apr 2014 07:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17166 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139642246718659 (code B ref -1); Wed, 02 Apr 2014 07:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2014 07:07:47 +0000 Original-Received: from localhost ([127.0.0.1]:60235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVFH0-0004qs-7T for submit@debbugs.gnu.org; Wed, 02 Apr 2014 03:07:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48575) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVFEt-0004n5-KS for submit@debbugs.gnu.org; Wed, 02 Apr 2014 03:05:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVFEr-0000Y4-LI for submit@debbugs.gnu.org; Wed, 02 Apr 2014 03:05:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFEr-0000Y0-J1 for submit@debbugs.gnu.org; Wed, 02 Apr 2014 03:05:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFEq-0002f3-2i for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:05:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVFEn-0000SC-Up for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:05:31 -0400 Original-Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:59831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFEn-0000Qb-OW for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2014 03:05:29 -0400 Original-Received: by mail-ob0-f181.google.com with SMTP id wp4so12356935obc.40 for ; Wed, 02 Apr 2014 00:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=u3AYQtLfP6EosrFi+gCy9Mtt6A4RMaaaXhb/12DCDLQ=; b=wDhCttOwgnrN1a3P9z+fQNkN5F2/Er8I95+JobLyZ72njsU4m2h9fmpp59SNSDJTmg 7FWSWDrQCtbD4y7tNlAoc2B1LZdcfksuEZhltzhkWRVwINFdzBkmSC+IyEZfPDyALQM+ IHLv0a7Azl5W8DonaxVfG8F2kFWFia0os8bCOTBciRLd8DqU3tDAxuA3iW8cwPCh+1GF kieN1QRYnDV18SQhhdiCBCXNKPnrt2rAPNno15q2u5uB391i9jveihA+fhorTZ0zxpg4 hTm1a6kOMQBsfcRCkZIg464taPb3T7Gdfelz5NyMxjRn5+qJc5dcS8gy6d/4VgChgeQh MRNw== X-Received: by 10.182.117.195 with SMTP id kg3mr31918502obb.17.1396422327929; Wed, 02 Apr 2014 00:05:27 -0700 (PDT) Original-Received: by 10.76.150.105 with HTTP; Wed, 2 Apr 2014 00:05:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 02 Apr 2014 03:07:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87634 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 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 (Each of those images are about 35KiB, if size is a concern.) Other info: My .Xresources: Emacs*foreground: grey80 Emacs*background: black Emacs.default.attributeFont: dejavu sans:pixelsize=3D14 Emacs.font: dejavu sans mono:pixelsize=3D14 Emacs*modeline.foreground: grey90 Emacs*modeline.background: grey30 Emacs*zmacs-region.background: #000044 Emacs*isearch.background: #004444 If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-15.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 19 (Schr=C3=B6dinger=E2=80=99s Cat) Configured using: `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3Dx86_64-redhat-linux-gnu' '--program-prefix=3D' '--disable-dependency-tracking' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--includedir=3D/usr/include' '--libdir=3D/usr/lib64' '--libexecdir=3D/usr/libexec' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=3Dgtk3' '--with-gpm=3Dno' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_alias=3Dx86_64-redhat-linux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-e C-b C-d A C-n C-p C-a C-SPC C-n C-n C-w C-p C-p C-y C-_ C-p C-y C-p C-e C-b C-b C-b C-d A C-a C-p C-SPC C-n C-n C-w C-y C-y C-p C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-p C-f C-e C-b C-d B C-n C-b C-b C-b C-d B C-a C-n C-n C-p C-p C-e C-p C-p C-d C-n C-n C-p C-p C-a C-p C-e C-p C-a C-n C-e C-p ( p r o g n C-a C-n C-p C-n C-n C-n C-n C-n C-n C-n C-e ) ) ) C-a C-n C-SPC C-n C-n C-n C-n C-n C-n C-n C-w C-p C-p C-p C-n C-n C-x C-s C-e C-n C-g C-v C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-n C-n C-p C-x C-e C-x C-b C-x o C-g C-g C-x o C-x C-g M-x e d i f f - b u f * b e f o r e * * a f t e r | n p ~ n q y q y C-g C-g C-g C-x C-b C-x o C-n C-n C-n C-p C-n f C-x 1 M-v M-v C-v C-l C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-n C-n C-e ) C-n C-n C-_ C-_ C-_ C-_ SPC C-_ C-_ C-p C-p C-p C-p C-p C-p C-n C-n C-n C-p C-e C-n C-n M-x r e p o r t Recent messages: progn: Symbol's value as variable is void: ediff-even-diff-A ediff-next-difference: Args out of range: 1, 64 Quit this Ediff session? (y or n) y ediff-recenter: Args out of range: 1, 64 Quit this Ediff session? (y or n) y ediff-recenter: Args out of range: 1, 64 Quit [3 times] Mark set Undo! [5 times] Redo! Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils mule-util edebug easymenu jka-compr shell pcomplete grep compile comint ansi-color ring misearch multi-isearch dired-aux dired emerge ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)