GNU bug report logs -
#47505
25.1; ediff thinks words changed when filling prefixed
Previous Next
Reported by: Samuel Wales <samologist <at> gmail.com>
Date: Tue, 30 Mar 2021 22:04:01 UTC
Severity: normal
Found in version 25.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47505 in the body.
You can then email your comments to 47505 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Tue, 30 Mar 2021 22:04:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Samuel Wales <samologist <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 30 Mar 2021 22:04:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
to reproduce, please put this in file a:
# asdfjkansdkljfan ksd fnak nsdflkadsnfkansdkfnakdsnf
# aklsfdnakljfnsdkasdnfja sdn fkljad nsfkj ansdkfn aksdjfna
# ksjfndk ajdnsf kajsndkfjansdkfjn ja nsdkjfn askdj fnakjs fdnakj
# nsdfkaj dns
then set fill-column to 60. then fill. then save to file b.
you now have a and b with the same text, but a filled commented
paragraph that differs between them.
now open in diff mode. you will notice that it thinks only the comments
changed. this is expected behavior.
now open with m-x ediff RET. it thinks the first word in the last line
in b is different. but it is not different.
best i can do for a bug report. thanks.
On 3/28/21, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Samuel Wales <samologist <at> gmail.com>
>> Date: Sun, 28 Mar 2021 21:48:18 -0700
>> Cc: help-gnu-emacs <at> gnu.org
>>
>> for purpoes of the test do something like this:
>>
>> # asdfjkansdkljfan ksd fnak nsdflkadsnfkansdkfnakdsnf
>> # aklsfdnakljfnsdkasdnfja sdn fkljad nsfkj ansdkfn aksdjfna
>> # ksjfndk ajdnsf kajsndkfjansdkfjn ja nsdkjfn askdj fnakjs fdnakj
>> # nsdfkaj dns
>>
>> then fill to a narrow fill column.
>
> Please submit a full bug report with the details, TIA.
>
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Wed, 31 Mar 2021 07:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 47505 <at> debbugs.gnu.org (full text, mbox):
On Mär 30 2021, Samuel Wales wrote:
> now open with m-x ediff RET. it thinks the first word in the last line
> in b is different. but it is not different.
I don't see how that is a bug. The word moved around, and ediff
correctly marked it as such.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Wed, 31 Mar 2021 19:29:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 47505 <at> debbugs.gnu.org (full text, mbox):
doyou think diff's behavior is a bug then? i choose ediff's.
On 3/31/21, Andreas Schwab <schwab <at> linux-m68k.org> wrote:
> On Mär 30 2021, Samuel Wales wrote:
>
>> now open with m-x ediff RET. it thinks the first word in the last line
>> in b is different. but it is not different.
>
> I don't see how that is a bug. The word moved around, and ediff
> correctly marked it as such.
>
> Andreas.
>
> --
> Andreas Schwab, schwab <at> linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Wed, 31 Mar 2021 19:31:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 47505 <at> debbugs.gnu.org (full text, mbox):
do you think diff-mode's behavior is a bug?
i would say that ediff's is a bug because moving around is not what
seems significant. comments should be honorary whitespace.
On 3/31/21, Andreas Schwab <schwab <at> linux-m68k.org> wrote:
> On Mär 30 2021, Samuel Wales wrote:
>
>> now open with m-x ediff RET. it thinks the first word in the last line
>> in b is different. but it is not different.
>
> I don't see how that is a bug. The word moved around, and ediff
> correctly marked it as such.
>
> Andreas.
>
> --
> Andreas Schwab, schwab <at> linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Wed, 31 Mar 2021 23:54:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 47505 <at> debbugs.gnu.org (full text, mbox):
Samuel Wales <samologist <at> gmail.com> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Thu, 01 Apr 2021 00:05:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 47505 <at> debbugs.gnu.org (full text, mbox):
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 <michael_heerdegen <at> web.de> wrote:
> Samuel Wales <samologist <at> gmail.com> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Thu, 01 Apr 2021 00:18:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 47505 <at> debbugs.gnu.org (full text, mbox):
Samuel Wales <samologist <at> gmail.com> writes:
> 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.
I don't know how diff-mode does it, but I wonder if it then doesn't sort
out changes that are significant. "I don't know" is not meant ironic,
maybe someone else can help further.
Regards,
Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Sat, 08 May 2021 12:27:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 47505 <at> debbugs.gnu.org (full text, mbox):
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> 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.
I think this is basically working as intended (even if it's different in
the two cases, because the interfaces emphasise different things).
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
47505 <at> debbugs.gnu.org and Samuel Wales <samologist <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 May 2021 12:27:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Sat, 08 May 2021 20:41:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 47505 <at> debbugs.gnu.org (full text, mbox):
thanks for considering it. if anybody has a fix for this, even as a
hook value, please let me know. i might incorporate it into something
useful.
On 5/8/21, GNU bug Tracking System <help-debbugs <at> gnu.org> wrote:
> This is an automatic notification regarding your bug report
> #47505: 25.1; ediff thinks words changed when filling prefixed,
> which was filed against the emacs package.
>
> Thank you for your report, which has now been closed.
> You can view the full report at
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47505
>
> If you require further information, please followup to
> 47505 <at> debbugs.gnu.org.
>
> debbugs.gnu.org maintainers
> (administrator, GNU bugs database)
>
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#47505
; Package
emacs
.
(Sat, 08 May 2021 20:43:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 47505 <at> debbugs.gnu.org (full text, mbox):
i don't understand what you mean by the interfaces emphasize different
things. to me, they should have the same goal here. in any case,
thanks fort considering it. if anybody has a fix, please let me know.
i might incorporate it into something useful.
On 5/8/21, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Michael Heerdegen <michael_heerdegen <at> web.de> writes:
>
>> 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.
>
> I think this is basically working as intended (even if it's different in
> the two cases, because the interfaces emphasise different things).
>
> So I'm closing this bug report.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 06 Jun 2021 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 322 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.