GNU bug report logs -
#29594
Emacs 26 -- xdisp.c:21657 OR xdisp.c:21671?
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29594 in the body.
You can then email your comments to 29594 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#29594
; Package
emacs
.
(Wed, 06 Dec 2017 21:50:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Keith David Bershatsky <esq <at> lawlist.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 06 Dec 2017 21:50:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In the Emacs 26 branch downloaded this morning, I see:
xdisp.c:21657
it->continuation_lines_width += wrap_x;
and, I see:
xdisp.c:21671
it->continuation_lines_width += x;
If only one of these is needed, then it may be appropriate to remove whichever one is not needed. I understand that the second occurrence supersedes the first occurrence in this section of code, but it would be cleaner if there were only one setting. If both occurrences are needed, then perhaps a comment in the code at that particular location would be helpful.
There is an ongoing thread on Emacs Devel relating to this section of code (among one other location) affecting the calculation of it->pixel_width at xdisp.c:28212; however, that discussion may or may not yet be ripe for a bug report:
https://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00209.html
Thanks,
Keith
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#29594
; Package
emacs
.
(Sat, 09 Dec 2017 12:52:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 29594 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 06 Dec 2017 13:49:24 -0800
> From: Keith David Bershatsky <esq <at> lawlist.com>
>
> In the Emacs 26 branch downloaded this morning, I see:
>
> xdisp.c:21657
> it->continuation_lines_width += wrap_x;
>
> and, I see:
>
> xdisp.c:21671
> it->continuation_lines_width += x;
>
> If only one of these is needed, then it may be appropriate to remove whichever one is not needed. I understand that the second occurrence supersedes the first occurrence in this section of code, but it would be cleaner if there were only one setting. If both occurrences are needed, then perhaps a comment in the code at that particular location would be helpful.
This is a bug, and a very old one: the second increment should not be
done. This bug was introduced when the word-wrap feature was added to
Emacs, 9 years ago. It could only remain undetected for such a long
time because the numerical value of continuation_lines_width is almost
never used, most of the code only cares whether the value is zero or
positive.
Thanks for pointing this out, I've now fixed this on the release
branch.
bug marked as fixed in version 26.0.91, send any further explanations to
29594 <at> debbugs.gnu.org and Keith David Bershatsky <esq <at> lawlist.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 09 Dec 2017 20:52:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 07 Jan 2018 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 156 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.