From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#21468: 24.5; When next-line (visual) crosses overlay with before-string="\n" point goes to column 0 Date: Thu, 1 Oct 2015 16:43:11 -0400 Message-ID: References: <834miybogz.fsf@gnu.org> <83zj0q9k0m.fsf@gnu.org> <83twqxa5is.fsf@gnu.org> <83613d9lcl.fsf@gnu.org> <831te19goc.fsf@gnu.org> <83r3m0896l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11c384c46d98760521111821 X-Trace: ger.gmane.org 1443732263 30558 80.91.229.3 (1 Oct 2015 20:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 20:44:23 +0000 (UTC) Cc: 21468@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 22:44: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 1Zhki3-0000o0-2U for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 22:44:11 +0200 Original-Received: from localhost ([::1]:56186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhki2-0003XE-5Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 16:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhkhx-0003Wz-7Y for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 16:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhkhu-0000Wo-1Z for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 16:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhkht-0000Wk-VV for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 16:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zhkht-0004jJ-Rx for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2015 16:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2015 20:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21468-submit@debbugs.gnu.org id=B21468.144373219518116 (code B ref 21468); Thu, 01 Oct 2015 20:44:01 +0000 Original-Received: (at 21468) by debbugs.gnu.org; 1 Oct 2015 20:43:15 +0000 Original-Received: from localhost ([127.0.0.1]:51044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zhkh8-0004i7-Kr for submit@debbugs.gnu.org; Thu, 01 Oct 2015 16:43:15 -0400 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:37883) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zhkh6-0004hz-58 for 21468@debbugs.gnu.org; Thu, 01 Oct 2015 16:43:12 -0400 Original-Received: by wicfx3 with SMTP id fx3so5965637wic.0 for <21468@debbugs.gnu.org>; Thu, 01 Oct 2015 13:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=yyT3J44223KcyoZFpZ1/r5oWPzUHR8i/ysZIFtgyBJY=; b=DZmqWj7ASWNxmfrlAl4Mwo2sS6a5aJOvGKJCU0gq8GTM5ORTkttVjMe/DgZyYWvLmR S+4oAu02aAt9J3eQ+3Dk+tuoUog22Hml8tKA68H8YtLyHHF1tfrhL/wSnQREjk7CNMCz amI+ae8b6s/2cCtMXXkdvOBpRq2bZB3qHsELQyYb906Eugikh66digoUUUs9+lF0GXhS 7mPA9mJhutDC7YlEiSJe8nPjEseFWNW7QuSrcX0PCEVqm5z12AnHeEHZA8GFZswQoIiS CD9JvOhEyPUUbefV4QMhHdo8MSiAP2f/LumCfSH68bqXvop6DlyI5UrBXvNi8jfbNtrT 5Ksw== X-Received: by 10.180.184.201 with SMTP id ew9mr736275wic.53.1443732191540; Thu, 01 Oct 2015 13:43:11 -0700 (PDT) Original-Received: by 10.28.210.68 with HTTP; Thu, 1 Oct 2015 13:43:11 -0700 (PDT) In-Reply-To: <83r3m0896l.fsf@gnu.org> X-Google-Sender-Auth: ftrc3B-TmxPTCx3SArIT9LtS3ZA 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: 208.118.235.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:107183 Archived-At: --001a11c384c46d98760521111821 Content-Type: text/plain; charset=UTF-8 On Tue, Sep 15, 2015 at 2:53 AM, Eli Zaretskii wrote: > > I think you should be able to extend the face by using a display > property with :align-to value. The value should be computed to go all > the way to the edge of the window. We tried something like this: (let ((align `(space :align-to (+ (,(window-body-width nil t)) ,(window-hscroll))))) (ov rbeg eol 'face (list :overline color) 'after-string (propertize "\s" 'face face 'display align))) But when moving point to end of line this causes the cursor to appear at the edge of the window instead of at the "real" end of line. I guess it's because the aligned space pushes the newline character to the edge of the window. For a self-contained example do "emacs -Q overlay.el -f eval-buffer -f set-mark-command -f move-end-of-line" with attached overlay.el. > I cannot do anything about these issues besides explaining how they > harm Emacs maintenance, and asking people to look for alternative > solutions. Well you *could* refuse to fix bugs like this, i.e. declare that creating overlays with newlines invokes undefined behaviour. As it stands, the best way to get the effect we want is to use an overlayed newline, especially now that you've fixed this bug. --001a11c384c46d98760521111821 Content-Type: application/octet-stream; name="overlay.el" Content-Disposition: attachment; filename="overlay.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_if8o49u10 KHJlcXVpcmUgJ2NsLWxpYikNCg0KKGRlZnZhci1sb2NhbCBtYWdpdC1yZWdpb24tb3ZlcmxheXMg bmlsKQ0KDQooZGVmdW4gMjE0NjgtdXBkYXRlLWh1bmstcmVnaW9uIChzdGFydCBlbmQgd2luZG93 IHJvbCkNCiAgKG1hcGMgIydkZWxldGUtb3ZlcmxheSBtYWdpdC1yZWdpb24tb3ZlcmxheXMpDQog IChjbC1mbGV0ICgob3YgKHN0YXJ0IGVuZCAmcmVzdCBhcmdzKQ0KICAgICAgICAgICAgICAgIChs ZXQgKChvdiAobWFrZS1vdmVybGF5IHN0YXJ0IGVuZCBuaWwgdCkpKQ0KICAgICAgICAgICAgICAg ICAgKHdoaWxlIGFyZ3MgKG92ZXJsYXktcHV0IG92IChwb3AgYXJncykgKHBvcCBhcmdzKSkpDQog ICAgICAgICAgICAgICAgICAocHVzaCBvdiBtYWdpdC1yZWdpb24tb3ZlcmxheXMpDQogICAgICAg ICAgICAgICAgICBvdikpKQ0KICAgIChsZXQqICgoYWxpZ24gKGxpc3QgJ3NwYWNlIDphbGlnbi10 byBgKCsgKCwod2luZG93LWJvZHktd2lkdGggbmlsIHQpKQ0KICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgLCh3aW5kb3ctaHNjcm9sbCkpKSkNCiAgICAgICAgICAg KHJiZWctbGluZSAoc2F2ZS1leGN1cnNpb24gKGdvdG8tY2hhciBzdGFydCkNCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNvbnMgKGxpbmUtYmVnaW5uaW5nLXBvc2l0aW9u KQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobGluZS1lbmQt cG9zaXRpb24pKSkpDQogICAgICAgICAgIChyZW5kLWxpbmUgKHNhdmUtZXhjdXJzaW9uIChnb3Rv LWNoYXIgZW5kKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY29ucyAo bGluZS1iZWdpbm5pbmctcG9zaXRpb24pDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIChsaW5lLWVuZC1wb3NpdGlvbikpKSkNCiAgICAgICAgICAgKGNvbG9yIChm YWNlLWJhY2tncm91bmQgJ2hpZ2hsaWdodCBuaWwgdCkpDQogICAgICAgICAgIChmYWNlICAobGlz dCA6b3ZlcmxpbmUgY29sb3IgOnVuZGVybGluZSBjb2xvcikpKQ0KICAgICAgKGlmIChlcXVhbCBy YmVnLWxpbmUgcmVuZC1saW5lKQ0KICAgICAgICAgIChvdiAoY2FyIHJiZWctbGluZSkgKGNkciBy YmVnLWxpbmUpICdmYWNlIGZhY2UNCiAgICAgICAgICAgICAgJ2FmdGVyLXN0cmluZyAocHJvcGVy dGl6ZSAiXHMiICdmYWNlIGZhY2UgJ2Rpc3BsYXkgYWxpZ24pKQ0KICAgICAgICAob3YgKGNhciBy YmVnLWxpbmUpIChjZHIgcmJlZy1saW5lKSAnZmFjZSAoc2V0cSBmYWNlIChsaXN0IDpvdmVybGlu ZSBjb2xvcikpDQogICAgICAgICAgICAnYWZ0ZXItc3RyaW5nIChwcm9wZXJ0aXplICJccyIgJ2Zh Y2UgZmFjZSAnZGlzcGxheSBhbGlnbikpDQogICAgICAgIChvdiAoY2FyIHJlbmQtbGluZSkgKGNk ciByZW5kLWxpbmUpICdmYWNlIChzZXRxIGZhY2UgKGxpc3QgOnVuZGVybGluZSBjb2xvcikpDQog ICAgICAgICAgICAnYWZ0ZXItc3RyaW5nIChwcm9wZXJ0aXplICJccyIgJ2ZhY2UgZmFjZSAnZGlz cGxheSBhbGlnbikpKSkpKQ0KDQooc2V0cS1sb2NhbCByZWRpc3BsYXktaGlnaGxpZ2h0LXJlZ2lv bi1mdW5jdGlvbiAnMjE0NjgtdXBkYXRlLWh1bmstcmVnaW9uKQ0KDQooc2V0cS1sb2NhbCByZWRp c3BsYXktdW5oaWdobGlnaHQtcmVnaW9uLWZ1bmN0aW9uDQogICAgICAgICAgICAobGFtYmRhIChy b2wpIChtYXBjICMnZGVsZXRlLW92ZXJsYXkgbWFnaXQtcmVnaW9uLW92ZXJsYXlzKSkpDQo= --001a11c384c46d98760521111821--