From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#66379: 29.1.50; ediff wordwise ediff-copy-diff leads to different buffers Date: Thu, 19 Oct 2023 04:02:53 +0200 Message-ID: <87wmvjqshe.fsf@web.de> References: <9e302b24-d796-5fbe-361a-0c628b4b8f01@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19550"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: felix.muehlenberend@mailbox.org To: 66379@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 04:03:57 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qtIOD-0004w2-Ax for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 04:03:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtINu-0002E6-KK; Wed, 18 Oct 2023 22:03:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtINs-00022t-S9 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 22:03:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtINs-0006Zp-J3 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 22:03:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtIOI-0006oX-IL for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 22:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2023 02:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66379 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Felix =?UTF-8?Q?M=C3=BChlenberend?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 66379@debbugs.gnu.org, Felix =?UTF-8?Q?M=C3=BChlenberend?= Original-Received: via spool by submit@debbugs.gnu.org id=B.169768101726152 (code B ref -1); Thu, 19 Oct 2023 02:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2023 02:03:37 +0000 Original-Received: from localhost ([127.0.0.1]:35228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtINs-0006nk-SL for submit@debbugs.gnu.org; Wed, 18 Oct 2023 22:03:37 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:40080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtINr-0006nT-0Y for submit@debbugs.gnu.org; Wed, 18 Oct 2023 22:03:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtINK-0008JA-Ts for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 22:03:02 -0400 Original-Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtINI-0006FE-Rf for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 22:03:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1697680968; x=1698285768; i=michael_heerdegen@web.de; bh=Iy7ep9UOO+TDLokh/eYBdE0KPh79Tfhs7k0sf4U+bwM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=wumETc3gILvIZl5n6IV2fpRMR2KODwI+Xxj6w9AD8JzwYG5XRJxJJ4k2ucoWXKjfyu62+cWhuoI zSr3ATVsDMgGr6NmRdctk7ozIDEraZAo/dcDztU36XeGmA2eDw4Cm4STVQUjSVAoZ42CWRgwAvxgP 846wweJdFuy09IohXibk7Bz8g0DMqBMVwRuVG8flSGruddpHEqWXmslqfnYuzuDLM/uPlTZ3Lq1vm lL3hJh7txni5nQ0Y6a0KqmIhX9X7ltvOB2TGv4ZEZjf/3ndON3oOSOAfAlv3hlauYPJQwfHxxuF76 CS2Xq5jkFD/+uvfJCsIPwnl5y9YGq1wdvqsA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([84.59.210.159]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MxpiU-1rjTYX3kTu-00zE5x; Thu, 19 Oct 2023 04:02:47 +0200 In-Reply-To: <9e302b24-d796-5fbe-361a-0c628b4b8f01@mailbox.org> ("Felix =?UTF-8?Q?M=C3=BChlenberend?= via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Fri, 6 Oct 2023 16:24:25 +0200") X-Provags-ID: V03:K1:HM9niqJ6RyPtE3lNlBgFk+/gSGx+nLRKTAo7zt6FQVDcWoHCDcQ I/Pt+NwxHI/gvIslx1mQzEJLFOqgbzXIWTV2y5pHeqKMCRw4cqFhPdCh5n5PU87DgQonlkG L5EJGXBKl72gm4zZYM/iPQ0hljFMPCOWLkNEsQAclswIG0sjBGMTLYR/HwZNQLjt3xReKpc EtPaJAWQh036BLKB9udag== UI-OutboundReport: notjunk:1;M01:P0:Uh0/I0ygGH4=;BTXDHjb1oKN/D4e4aU0QwlX0/Gq +Kvl718H+rW+VXiffSqaGhgnTkxm/D3lVeHzlDwo+EhQZI3zTzAJnOpAFCgfdNRQqReVnGnhk SbIcLXuthATiBR3imcBfG1Z6Nvfjn+dOhXNVeIoaSwukdWqRCEiMrolWlPDE8mJjYTBzn6afM cEQcYxqapjc8lilki1pG66PoMTy/rdD8+H8eQYBdMRBOk3cI8pOhAb42mPrQK3dT3rdOyLguA 8Av62q4I1rVi2C+h9RceTHNEOElKzsQUIvjQ7YcPwXeF5kGOazqdvF3Nc9Pe+OSAe3img1+4u n3UhHVqNv/y1mg95ugABh2FMPQsJ+fAqoBnp0iWzFeSjef3zjLpzv6HduVm0CysqZ6BXRfSYb DOR1n1db3EP9F42R16jeT4U/DWWQgOIk4V0l6abrkI+x+7F0rdHIE6k5VUNfKWm8rToAwNpsA KgXeWhFHDjgIumY57DtvIAm3EeGVMFR02xFu4Pj15sT4ZsiT3ZgGLmqHm+Ou+Vefmxh72DX7T j7yPN54mjO7qBp6ZX0++zkHifrRI+qioqjLCKyrRV9PTh8AAoGHwDHj0KLLNFFEu53FKX3PkJ jIJjsIpGmZg5J/7z3rTR18Qt5vZcaYKsftvywTXBdo4m4mYOde8budXDHW9AZUDl8s/kHdzVo Hn69yDhoqzRYizCn5rMiCVvP/ejZIOU7zniuJmHSptsLGTDmdbTIMC0MWorRg09DpwjINXM6D yJAQNxL2x7MNyhdYSlxdQoiiDzRs4A8ULi9vBSHb3f4kL/o3uZIGOMMCqtHJ8m6eoirDIWgG Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272689 Archived-At: Felix M=C3=BChlenberend via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Symptoms: > Diffing the following regions with wordwise mode: > ```[A] > This, is a test > ``` > ```[B] > This is a test > ``` > and copying with (ediff-copy-A-to-B) results in: > ```[A] > This, is a test > ``` > ```[B] > This ,is a test > ``` > Where the comma is in the wrong place. This is not the only case of such things happening. The wordwise mode is more or less whitespace agnostic, it doesn't care when copying between the buffers. AFAIR I did not have a good idea to fix this yet. Of course one can mess with the word classes to fix some special cases (but never all), I even tried to make whitespace a separate class, but nothing ever worked reliably. Michael.