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: Wed, 08 Apr 2015 09:43:36 +0300 Message-ID: <83mw2jglwn.fsf@gnu.org> References: 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 1428475514 8832 80.91.229.3 (8 Apr 2015 06:45:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2015 06:45:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 08:45:06 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 1YfjjW-0007sA-09 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2015 08:45:06 +0200 Original-Received: from localhost ([::1]:50945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfjjV-0003ga-Gv for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2015 02:45:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfjjH-0003ca-2J for help-gnu-emacs@gnu.org; Wed, 08 Apr 2015 02:44:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfjjD-0007Hr-15 for help-gnu-emacs@gnu.org; Wed, 08 Apr 2015 02:44:50 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:57446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfjjC-0007Hh-P8 for help-gnu-emacs@gnu.org; Wed, 08 Apr 2015 02:44:46 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NMH00A006FUUG00@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Wed, 08 Apr 2015 09:42:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMH007VW6M9HM30@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Wed, 08 Apr 2015 09:42:09 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:103570 Archived-At: > From: Milan Stanojevi=C4=87 > Date: Tue, 7 Apr 2015 16:14:59 -0400 >=20 > With visual-line-mode on, running (recenter 0) doesn't always put t= he > point on the top-most line in the window. >=20 > I experimented a bit and it seems that (recenter 0) doesn't work if > the point is on the portion of the word that was moved down because= of > word-wrapping. >=20 > For example, I have word "foobar" where "bar" can't fit on the line= . > With visual-line-mode off (and truncate-lines nil), "foo" will be o= ne > visual line and then "bar" on the next. If I turn on visual-line-mo= de, > the whole "foobar" would move to the next visual line. If I then ru= n > (recenter 0) while point is inside "foo", the lines will move such > that point ends up on line 2, but if I do it while the point is ins= ide > "bar" then the point will end up on line 1. I think the correct > behavior would be to move to line 1 always. >=20 > Is this a bug? >=20 > I'm using emacs 24.4.1 with Motif toolkit. I cannot reproduce this, not in "emacs -Q". Can you provide a complete self-contained recipe for reproducing the problem, starting =66rom "emacs -Q"?