From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Newsgroups: gmane.emacs.bugs Subject: bug#31666: Bad interaction between visual-line-mode and wrap-prefix on long lines Date: Sat, 9 Jun 2018 08:45:17 -0400 Message-ID: References: <0c50eeb5-7c99-e8ba-2d0b-865b6617cfe1@live.com> <83fu27hnko.fsf@gnu.org> <99baa6b2-584f-789f-ecf8-d845aedd18ef@live.com> <8336y7gdpo.fsf@gnu.org> <86045cc6-5fc8-76c0-3d18-d6e1852df401@live.com> <83o9glt9i4.fsf@gnu.org> <83602stkow.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b8wB0YeCxPZS8shAMJq2VSNa701lRl0Rm" X-Trace: blaine.gmane.org 1528548246 24556 195.159.176.226 (9 Jun 2018 12:44:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2018 12:44:06 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cc: 31666@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 14:44:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRdDt-0006Gf-LI for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 14:44:01 +0200 Original-Received: from localhost ([::1]:40276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRdG0-0000lB-Il for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 08:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRdFu-0000l0-FN for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 08:46:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRdFq-0006p6-J0 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 08:46:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRdFq-0006ox-Er for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 08:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fRdFp-0003fY-WD for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jun 2018 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31666-submit@debbugs.gnu.org id=B31666.152854833014062 (code B ref 31666); Sat, 09 Jun 2018 12:46:01 +0000 Original-Received: (at 31666) by debbugs.gnu.org; 9 Jun 2018 12:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:40433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRdFJ-0003ek-TH for submit@debbugs.gnu.org; Sat, 09 Jun 2018 08:45:30 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:58591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRdFG-0003eW-Vh for 31666@debbugs.gnu.org; Sat, 09 Jun 2018 08:45:27 -0400 Original-Received: from [192.168.1.109] ([73.126.99.55]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.168]) with ESMTPSA (Nemesis) id 0Lj7Ag-1fz2FV3u3C-00dChm; Sat, 09 Jun 2018 14:45:20 +0200 Openpgp: preference=signencrypt Autocrypt: addr=clement.pitclaudel@live.com; prefer-encrypt=mutual; keydata= xsFNBFStGiEBEAC8eHa+DdcrVtDSwYoIgoUtMfRAan4bdLxZuNIASy6iFytCHNsKqfPkq8zD YV2+uMtbdcnjapE038nidEMItNhO04JdZ+PJ6jvJo1gW+XI4fM8uzkGZauwR+d3hEq6goFSp rIlSlaVf2g5q4OKxI754yqwz00++EZhZQMntzoKQVV9stJ5eQ+gxTT1ANr7wQKbjn/8PM/Cg hBZvYLhh+WsS0Ko5qZuWdsvUBLpprmCWkP4FpZ234/tWpdVID65nlHpu25+6ajIcxfCIK+dN 2br0wN1szTeQFG19cfr3jXEvwHmLQbQqCg4UH+2b7JpMGR2/KWjqRWfWVvZMPVeJdOsZHx53 k6HIbEhvFBHbmqCI6FAZQjkgzGGkrSD92+jeMYiCTxRKqq2hFZ6xqQ6pJdXD1TXcIYPEs7rA MwcNMj8g4e6vuI+2CjHyQQkyMPAEi8guNPnyfBb648f1lxj7JiJu/ehRghIP5u/kLOsHNCKG QgCT04sawBZYHqEVYni8oHlGJcdWGT5/UI4B+wn70eXvYSScZEaB+S2s/bD0cdlSpHY5Od3l tpRZTva+ydswlrz4fxbYF45s6rFpqVwBMfNv3gqhBFXbuiEEctcTSGqhHxxT4R+24Yn+ZSBa EfUbrKnVTUmV20k+57rghiVw2wpj8v7sn3QXt96HJ9ImY4JvuwARAQABzTNDbMOpbWVudCBQ aXQtLUNsYXVkZWwgPGNsZW1lbnQucGl0Y2xhdWRlbEBsaXZlLmNvbT7CwXsEEwECACUCGyMG CwkIBwMC In-Reply-To: <83602stkow.fsf@gnu.org> X-Provags-ID: V03:K1:Iqa8Ob9gnHlS5Q8ZHxYk7Y1PVbn2px/JqpD1inL7MfGtrle84oC rv+uEsbYYxfXrQdr/QesWzajUPLK1m0f4vqM2m/+qlS8K1B8MGox9H3RV41OX90nfW3uX4e vgRLfAhIy0Ge6h0LaMATBrjSwakIY17YYPHlFnCbsgmMOyNEOsUiECrOVX5kqUcrza5OFgY 7qtQ2yFfXlnPAoVW+0wSg== X-UI-Out-Filterresults: notjunk:1;V01:K0:T4BUwIIyMLg=:cJ2+ix+EYfrelx85Q8krwp C738/klnm1SykROGD9Tq/pbl+yQj97+4/EbZwb92eHS8OCaX9qe8L0xysWt88zN6PcAJmPXrB zM9o8bc9vXHGe0z43QCbSg46eQs/jSl1R2v5UaJc4B4YxUtm7NDA8iq/cbd3tBiNtbhbZtgmq of/oH8I7pj1DjPQVxarAgzQPrmq3QyRa6qHaZBSI44hNkUAbCJoQPSQuySWph6oFcgfveD+aC HAEORu/UwjLo8X3r35BR86xwaFJIurrOXw7oNAuBvqGD+QYo9/rl13INo1NFqs/qT+2wqikMv TOo2r9y/uyXOGeHudSRuWizacx9wLYL/kQ/u+5caAU9Om5nxYrJCIdOCzOk4TClxAAAN/dXip kq2aFc3aw0m5sF8iChmskt5ZVX03mRu4jgkd1pWwBSn55gFtfeAgGXLAgCC2nxfeOKE/i+pBM Sz/bfAEvR6/O3KpcmYlvx7ZnyFgAPtukSEvBc1yevQzkdKYxpxxANLELhLvw9OkPewPetlKY8 D4StK6wfe3EaOwaO0iyNkNpK6cgtnJJZk4jE9B/0KsSrVtExJJvu2zjBz08dLDVpZ1tOTZlvI Dsg1blSmTdvQB4pKPBv3h8waPXqWA9hIwtJoU302LcyT+GduTQuzItzMV8qNJgWvOhbKEPaov mtG2LIpnMVU1hjrL2ZqsCWFQfQefEBW0MqInRDDR2m3rouZnzMca3hXA50/PzX8+FgE0= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:147241 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --b8wB0YeCxPZS8shAMJq2VSNa701lRl0Rm Content-Type: multipart/mixed; boundary="NsT1B0218rXXkE0Vem06sHxRpvsDtF3AN"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= To: Eli Zaretskii Cc: 31666@debbugs.gnu.org Message-ID: Subject: Re: bug#31666: Bad interaction between visual-line-mode and wrap-prefix on long lines References: <0c50eeb5-7c99-e8ba-2d0b-865b6617cfe1@live.com> <83fu27hnko.fsf@gnu.org> <99baa6b2-584f-789f-ecf8-d845aedd18ef@live.com> <8336y7gdpo.fsf@gnu.org> <86045cc6-5fc8-76c0-3d18-d6e1852df401@live.com> <83o9glt9i4.fsf@gnu.org> <83602stkow.fsf@gnu.org> In-Reply-To: <83602stkow.fsf@gnu.org> --NsT1B0218rXXkE0Vem06sHxRpvsDtF3AN Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 2018-06-09 04:42, Eli Zaretskii wrote: >> Would it help to restrict that property to spaces and tabs, since we o= nly break lines on these at the moment? Or is the cost of accessing text= properties from IT_DISPLAYING_WHITESPACE too high in any case? >=20 > I didn't say it would be too expensive. But it will definitely be > more expensive than it is today, which is why I'm trying to suggest > other solutions first. Makes sense. Thanks. >> I tried to see how often text properties were accessed after calling I= T_DISPLAYING_WHITESPACE, but without too much success. In one of the 4 c= alls, it seems that a subsequent call to PRODUCE_GLYPHS will check specif= ied-space properties like QCalign_to. For the other three calls, I'm not= sure. Would these other three calls sufer from additional property chec= ks? >=20 > The IT_DISPLAYING_WHITESPACE macro itself will have to lookup text > properties at the location where it attempts to decide whether a space > or a tab can be used as wrap point. >=20 >> (I can see how overlay properties would further complicate matters. M= aybe we could restrict support to char properties, at first) >=20 > That'd be most probably frowned upon by the community, since we > generally handle them the same elsewhere in Emacs. OK, that makes sense. > Once again, the implementation shouldn't be hard, but if alternative > solutions exist, I'd prefer not to make the display engine slower than > it is already. Understood. --NsT1B0218rXXkE0Vem06sHxRpvsDtF3AN-- --b8wB0YeCxPZS8shAMJq2VSNa701lRl0Rm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJbG8vdAAoJEPqg+cTm90wjEjMQALNx4Pt/w7sZIkKlmTXQklsO lwdHOXOeTKycLBnG0u7/xq6p5w8sV9UEH1B1VDRaC9HAYcPLsgRmqLMANnV+AXIr 7HmUc33zWbV/CBNiiZXUB+AXmLP+QPwY/d2YWL8eyUDJmSkFx5A+fwdcld0EtbYP g+00KfR4J1TiNjqr4rEKBH1AAHgSWrgXykFYdgjSE7TEkIFHpzBiXCTfaRkkYtc9 hx3FrOHYj0pzNqNwz6f0eRWaPdlqTDKCwMaA3+XvE3pZ2mkX2ENAM4TcwSZ7c9ju D3XFu7yT8WyNGQzW9Xf/juk2BhQ2mpD/xaCyOCZ+HMolvDuuMhN4ROy+IGZ6DxtM 6t4t1yPE0Abay5QiIOSUivgMDty0iGTpbLlBxB7H3lyb62tzg4YECKDLx565Zb++ /bDG0ES9qc/0KAEY6osx6Fz+0Zf/y4aX++Z5irxlSx/lqDMqvCJF4mK845xTxo2i GPHGBMHFkfy1y/gvQFbd/nu0z8mIKUTTeUEFuQMopYi2Kr1KtjMo8sD7lhM8yD8u UcV/Fc801oLfLvasgn+vUDdX9aTREyjIaxsx3g8JPWhjMbhY1qLzWxGZD8PqNCh+ VFrtnJnLWj21hEm47P8sWLyJapV02ueKQvU3y5mCE9cjdHIEJMuwgYcxmSLIKPv0 W2BfwPhWQLrow6RsvYpE =OTxu -----END PGP SIGNATURE----- --b8wB0YeCxPZS8shAMJq2VSNa701lRl0Rm--