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#21207: 25.0.50; Cursor position behaves unpredictably on the 'display text property Date: Fri, 07 Aug 2015 22:04:21 +0300 Message-ID: <83lhdmrkcq.fsf@gnu.org> References: <83twsbqfqx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1438974326 8206 80.91.229.3 (7 Aug 2015 19:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 19:05:26 +0000 (UTC) Cc: 21207@debbugs.gnu.org To: bruce.connor.am@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 07 21:05:15 2015 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 1ZNmx8-0006Ns-2U for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2015 21:05:14 +0200 Original-Received: from localhost ([::1]:50837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNmx7-00083H-7B for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2015 15:05:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNmx2-0007zJ-Cr for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 15:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNmwx-0002zC-0v for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 15:05:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNmww-0002yc-Th for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 15:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZNmww-0005EU-80 for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2015 15:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Aug 2015 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21207 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21207-submit@debbugs.gnu.org id=B21207.143897427320077 (code B ref 21207); Fri, 07 Aug 2015 19:05:02 +0000 Original-Received: (at 21207) by debbugs.gnu.org; 7 Aug 2015 19:04:33 +0000 Original-Received: from localhost ([127.0.0.1]:50365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNmwS-0005Dl-LF for submit@debbugs.gnu.org; Fri, 07 Aug 2015 15:04:33 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:57561) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNmwQ-0005DV-4S for 21207@debbugs.gnu.org; Fri, 07 Aug 2015 15:04:31 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NSQ003006XUX600@mtaout29.012.net.il> for 21207@debbugs.gnu.org; Fri, 07 Aug 2015 22:04:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSQ00OEM7MW3H70@mtaout29.012.net.il>; Fri, 07 Aug 2015 22:04:09 +0300 (IDT) In-reply-to: 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:105357 Archived-At: > Date: Fri, 7 Aug 2015 19:31:29 +0100 > From: Artur Malabarba > Cc: 21207@debbugs.gnu.org > > I'm using this to visually wrap some lines, but not others (as part of > rewriting longlines-mode to work without editing the buffer). > I can wrap only the lines I want by doing the procedure in item 2 (displaying a > space as a newline). When the line I'm wrapping happens to be indented, I have > to use the procedure in item 4 (so the second line gets indented too), and it's > mildly annoying that I can't place the cursor at the end of the line. Can you use line-prefix and/or wrap-prefix for that? It should be possible to support the 'cursor' property on a newline inside a display string, but not inside an overlay string. Not sure if this disparity will not cause confusion and resistance, as we generally try to support the same features in both cases. In general, I hoped that line wrap at some constant column other than the window edge (which is what I understand you are trying to do) will be implemented on the display engine level, where IMO it belongs, not by using display properties and such likes.