From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.bugs Subject: bug#47505: 25.1; ediff thinks words changed when filling prefixed Date: Wed, 31 Mar 2021 17:04:36 -0700 Message-ID: References: <87zgyj23am.fsf@igel.home> <87wntm6ftt.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20880"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andreas Schwab , 47505@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 01 02:05:38 2021 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 1lRkq9-0005KQ-PX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Apr 2021 02:05:37 +0200 Original-Received: from localhost ([::1]:41560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRkq8-0003vX-OU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 20:05:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRkpd-0003u8-1m for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 20:05:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRkpa-0006fm-5X for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 20:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRkpZ-0004OW-W7 for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 20:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Samuel Wales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2021 00:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47505 X-GNU-PR-Package: emacs Original-Received: via spool by 47505-submit@debbugs.gnu.org id=B47505.161723548416861 (code B ref 47505); Thu, 01 Apr 2021 00:05:01 +0000 Original-Received: (at 47505) by debbugs.gnu.org; 1 Apr 2021 00:04:44 +0000 Original-Received: from localhost ([127.0.0.1]:55752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRkpH-0004Nt-QD for submit@debbugs.gnu.org; Wed, 31 Mar 2021 20:04:43 -0400 Original-Received: from mail-lj1-f173.google.com ([209.85.208.173]:38733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRkpG-0004Mp-Sf for 47505@debbugs.gnu.org; Wed, 31 Mar 2021 20:04:43 -0400 Original-Received: by mail-lj1-f173.google.com with SMTP id s17so277382ljc.5 for <47505@debbugs.gnu.org>; Wed, 31 Mar 2021 17:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Xz7DZsEbcl+asvdB5OkVlWc22/zxsMGjQwztKzdCiC0=; b=pOmolJo+Ldxg/7jD5m3+Q79F6LFKboaOsLZWX0azolYC0mnJnQEOrT6+ZP6pzFceFU gamvP8YmAPJex/qeyIGWsCqL+olY1m0rxca++0qlXCo5JJkbZo1BEcZD0L/YMc4I/L9j 4bzEQHsUCGeuaz+XS611hmkPK2d+UluiifdxIjWNmeujHdcS7BPrhH1G0faYIUZpfreV IRm58/RQWb03ATsKj7WHhxfGzSTFtbf+WrebJ3vFP9mEJiJHlAAYB3CLzsoISdEBO4SG +Oan25ykP8+Qn8BhZ8y3NJTMixXA1caiQUEPwby9fNSfoxRvMLOulfzHXQP0vd+xudH1 Xajw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Xz7DZsEbcl+asvdB5OkVlWc22/zxsMGjQwztKzdCiC0=; b=A55fbQc/8QlyyF2RHJIDwibKtRlrbgtvZBjXf5enrilu4WOEMHjtDqZxKUwL9rWDiF 1rkTADYZ9SEnplbanGHLhvSmL0DMgQ6dD055Fi/42C+Lrycf2nnP8PguWUVQtszePFKB yUzVyfAj5A1xEHVQ4u4n5S5sASfPyjDgdR4/bONXcGaReWAMVoWknojdv7vzelPAVDMJ srmA1gfiMWQk0Ih2IMlWshxGhMcTVnXKNBgcreK2QLE9XnMQhsO627VqXPUjPVgTaxQE sRF5plkjfWBvLlcXOLWYfg50LQ4JIVgoN5Ij/hE5xU7nWcmEEKKgFvUiJEoiez5fuwpT HdyQ== X-Gm-Message-State: AOAM531POk9ctkk177P2WTYCIydpnnc6RY9gjSnbNXvecRttvyza3Z0a NqZWNaQL8h7lB8WMnZIG24kctEuQmMI+K5M5giE= X-Google-Smtp-Source: ABdhPJx7uhfzZeteUD5heUtbZVqp8KwkyB57Wy8gB9X9W5QTsF1F0lSu41Ch56MfOcebgRbyYYGyQmoPScFguYmx21A= X-Received: by 2002:a05:651c:29a:: with SMTP id b26mr3538103ljo.451.1617235476880; Wed, 31 Mar 2021 17:04:36 -0700 (PDT) Original-Received: by 2002:ab3:7842:0:0:0:0:0 with HTTP; Wed, 31 Mar 2021 17:04:36 -0700 (PDT) In-Reply-To: <87wntm6ftt.fsf@web.de> 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" Xref: news.gmane.io gmane.emacs.bugs:203396 Archived-At: i don't know. i just know what seems right and seems wrong. not too useful is it? but it is better than not filing the bug perhaps. diff-mode does it right so ediff can. filladapt can intuit prefixes. comment syntaxes are known. somewhere in there lies a fix maybe. commented paragraphs in org/shell/elisp style are always commented at bol. idk what diff-mode does. On 3/31/21, Michael Heerdegen wrote: > Samuel Wales writes: > >> doyou think diff's behavior is a bug then? i choose ediff's. > > Depends on what you think what "fine diffs" are. They are actually word > wise diffs, and comment starts are a just a word. That how it's > implemented. In the case you describe I find that sometimes annoying, > too. But I guess it's not easy to change that. > > It might be possible to tell Ediff to ignore certain words (like comment > starts) but it's then not trivial to decide whether some text got > commented that was not commented before. > > This is all not trivial. There can be lines that are partly code and > partly comment; in Elisp, the comment start can have changed (e.g. ;; -> > ;;;), you can have "doubled comments" like ;;; ;;; where uncommenting > would leave comments ... how would you define when two regions > should count as similar? > > Regards, > > Michael. > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html