From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: recenter and visual-line-mode Date: Thu, 09 Apr 2015 11:30:52 +0300 Message-ID: <83bnixg0ub.fsf@gnu.org> References: <83mw2jglwn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1428568276 18522 80.91.229.3 (9 Apr 2015 08:31:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 08:31:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 09 10:31:09 2015 Return-path: Envelope-to: geh-help-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 1Yg7rh-0007N7-DG for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 10:31:09 +0200 Original-Received: from localhost ([::1]:56786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg7rb-0000pk-PK for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 04:31:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg7rJ-0000oL-4l for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 04:30:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yg7rF-0001il-Ee for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 04:30:45 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:40093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg7rE-0001iX-UI for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 04:30:41 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NMJ00D0060TZC00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 11:30:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMJ00D2X6B3WK70@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 11:30:39 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103599 Archived-At: > From: Milan Stanojevi=C4=87 > Date: Wed, 8 Apr 2015 15:59:16 -0400 > Cc: help-gnu-emacs@gnu.org >=20 > Here is the elisp code illustrating the issue. Thanks. For the future, please try to produce test cases that leave the offending contents on display, instead of doing everything in a temporary buffer that is killed when the code completes. That's because one cannot debug display problems without having the stuff displayed. > This shows that running (recenter 0) at different points of the sam= e > screen line leads to different behavior and it seems that the > difference comes from where the point would be without > visual-line-mode. I think in all cases the point should be at the t= op > of the line, but that is not the case for ABCD. What was missing from your original report was that the first visual line must be _shorter_ than what the window can display on a single screen line. IOW, there should be a whitespace character on which visual-line-mode can break the line _before_ the last (rightmost) column in the window. If that whitespace character is exactly at the last column, the problem doesn't happen (which is what I tried here, and thus didn't see the problem). And yes, it's a (very old) bug. Shouldn't be hard to fix, I think. Thanks.