From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.help Subject: visual-line-mode produces erratic behaviour with text properties Date: Fri, 01 Jul 2016 15:30:25 +1000 Message-ID: <1467351025.3299202.653866593.5B4EE9EF@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467351086 24021 80.91.229.3 (1 Jul 2016 05:31:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2016 05:31:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 01 07:31:16 2016 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 1bIr2p-0008NA-PX for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jul 2016 07:31:15 +0200 Original-Received: from localhost ([::1]:53773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIr2o-0005lh-VQ for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jul 2016 01:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIr2J-0005kv-A8 for help-gnu-emacs@gnu.org; Fri, 01 Jul 2016 01:30:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIr2E-00080L-V1 for help-gnu-emacs@gnu.org; Fri, 01 Jul 2016 01:30:43 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIr2C-0007sw-83 for help-gnu-emacs@gnu.org; Fri, 01 Jul 2016 01:30:38 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A78BF2051A for ; Fri, 1 Jul 2016 01:30:25 -0400 (EDT) Original-Received: from web1 ([10.202.2.211]) by compute2.internal (MEProxy); Fri, 01 Jul 2016 01:30:25 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=BJ5 lSyreAljC0JF/yhf8QkXW9lg=; b=ScnvHnKyDvTqT871mchwFMtsXoUkPrPhYmr WxZKW85IHChWoVDHvsY2wVEbbW/S0aBeIEPrqJ4GgrNefkZey5rjFxXDeEgTNqnJ Uo8YT7lg2iKSDzIpS74bm1p9UrvG/yB8nLUcn1iMptBZOm1qbnYFMmlk9uObmVgt STzxNXE8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=BJ5lSyreAljC0JF/yhf8QkXW9lg=; b=V9ycZ Hfx2QPWHEPKcNMu42idAhXzMg7CdrBdARIpscWw9UpqzG63hdr8SgzKcaYMVOEOO J1JTfxs/hT2v5zleaWqGv+3T8I2dS2DSBG6408lhDif99ckuOFsi8he3KXveWFQQ vfXFATaPofEun07rR0J3VruG+XnlwaIRPryaCc= Original-Received: by mailuser.nyi.internal (Postfix, from userid 99) id 739946A0CA; Fri, 1 Jul 2016 01:30:25 -0400 (EDT) X-Sasl-Enc: Iy3Z16xj3pTRoc5mLurmcnFk39Jgi+Cc4KGDo+3HFQgr 1467351025 X-Mailer: MessagingEngine.com Webmail Interface - ajax-15e5213e X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110680 Archived-At: Enabling visual-line-mode and adding line-prefix and wrap-prefix properties to a long paragraph of text produces erratic navigational behaviour. Can anyone else reproduce? To reproduce: 1. $ emacs -Q 2. insert a long paragraph of text M-: (url-insert-file-contents "https://gist.githubusercontent.com/rnkn/d5987c3495901e4950782f6648846e4e/raw/c22074e8f0940f6ec9c8b729f04567dc50664823/loren-ipsum.txt") 3. turn on visual line mode M-: (visual-line-mode 1) 4. add text properties M-: (add-text-properties (point-min) (point-max) '(line-prefix (space :align-to 10) wrap-prefix (space :align-to 10))) 5. C-n past window length and up and around. Expected results: Navigation should continue by visual line. Actual results: Navigational behaviour becomes erratic. Point will no long move with visual lines, instead jumping to different columns. This is more pronounced with a window 80 columns or less. Configuration: GNU Emacs 24.5.1 (x86_64-apple-darwin15.5.0, NS apple-appkit-1404.47) of 2016-06-26 OS X 10.11.4 (15E65) MacBook Pro (Retina, 15-inch, Mid 2014) 2.2 GHz Intel Core i7 16 GB 1600 MHz DDR3 Intel Iris Pro 1536 MB -- Paul W. Rankin www.paulwrankin.com