From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19300: 24.4.51; visual-line-mode messes up after-string rendering when it spans all window columns Date: Mon, 08 Dec 2014 22:39:47 +0200 Message-ID: <837fy1yiy4.fsf@gnu.org> References: <86a92zhved.fsf@yandex.ru> <834mt6ztva.fsf@gnu.org> <54857A0B.7020704@yandex.ru> <83r3waxh49.fsf@gnu.org> <5485D484.3020704@yandex.ru> <83lhmixedt.fsf@gnu.org> <5485F226.2040104@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1418071228 23453 80.91.229.3 (8 Dec 2014 20:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 20:40:28 +0000 (UTC) Cc: 19300@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 21:40:21 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 1Xy56Q-0005RR-Ka for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 21:40:18 +0100 Original-Received: from localhost ([::1]:36053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy56Q-0005GM-8W for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 15:40:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy56G-00058d-Ko for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 15:40:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy56B-00024y-9l for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 15:40:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy56A-000244-Va for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 15:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xy56A-0000mm-AT for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 15:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Dec 2014 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19300-submit@debbugs.gnu.org id=B19300.14180712013009 (code B ref 19300); Mon, 08 Dec 2014 20:40:02 +0000 Original-Received: (at 19300) by debbugs.gnu.org; 8 Dec 2014 20:40:01 +0000 Original-Received: from localhost ([127.0.0.1]:58161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy568-0000mT-Ea for submit@debbugs.gnu.org; Mon, 08 Dec 2014 15:40:00 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:59872) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy565-0000mI-KC for 19300@debbugs.gnu.org; Mon, 08 Dec 2014 15:39:58 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NGA00C006GMBS00@mtaout28.012.net.il> for 19300@debbugs.gnu.org; Mon, 08 Dec 2014 22:37:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGA006SN6MLJD50@mtaout28.012.net.il>; Mon, 08 Dec 2014 22:37:33 +0200 (IST) In-reply-to: <5485F226.2040104@yandex.ru> X-012-Sender: halo1@inter.net.il 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:97035 Archived-At: > Date: Mon, 08 Dec 2014 20:47:02 +0200 > From: Dmitry Gutov > CC: 19300@debbugs.gnu.org > > >> But I can open a different window, enable visual-line-mode, take its > >> (window-width), insert that numbers of characters on one line and not > >> see them wrapped. > > > > Then please show a recipe for that. > > Do I need to? The fact that you don't see the problem when executing my > scenario means that the above must always work well for you. I meant a recipe to show one window with the problem and another without, in the same session. If you achieve that with the same resizing of a window, it'd be interesting to see. > Could you suggest how to proceed debugging it? If you can't reproduce > the problem with my scenario, can I send you some data from my session? The pixel size of the canonical character of that font, as you get in your session, would be a good start. E.g., put a breakpoint in set_cursor_from_row, then step a few lines, and type "pgrow". Here's the full recipe: gdb ./emacs break Fredraw_display r -Q Now arrange for the problematic display, and then M-x redraw-display RET (gdb) break set_cursor_from_row (gdb) continue (gdb) continue (gdb) next (gdb) next (gdb) next (gdb) pgrow The first "continue" is because the first time set_cursor_from_row is entered Emacs is displaying the echo area, whereas I need to see the window of a normal buffer. > >>> If so, I cannot > >>> reproduce this: I see both the overlay and the buffer text wrap > >>> exactly identically. > > Right, same here, albeit (in the first case) when (window-width) returns > 34, and (window-pixel-width) returns 288. > > I can also drag the left window border a bit, so that (window-width) > still returns 34, but (window-pixel-width) is 291, then the lines in the > test buffer become not wrapped. The fact that pixel size changes, but the size in characters doesn't is expected, of course.