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#27103: Should show-trailing-whitespace highlight specified spaces? Date: Sun, 28 May 2017 16:18:02 -0400 Message-ID: <33c5270e-1fcc-8db3-36ec-6fa697a609b3@live.com> References: <8b0fc51c-288c-cf31-1054-07bd13ce91a0@live.com> <83poeugnqx.fsf@gnu.org> <83o9uegk7e.fsf@gnu.org> <0541b31f-46b4-e52f-9d58-d649809b940d@live.com> <837f11gd47.fsf@gnu.org> <209333a8-8106-0193-a237-bc54fc08b268@live.com> <83y3tgg9ks.fsf@gnu.org> <83wp90g86d.fsf@gnu.org> <83r2z8g3op.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="0hvG6gEWn2J97LvVKReq7h1Tkc9FvqkuL" X-Trace: blaine.gmane.org 1496002758 32650 195.159.176.226 (28 May 2017 20:19:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 20:19:18 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 Cc: 27103@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 28 22:19:14 2017 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 1dF4eg-0008Ht-CB for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 22:19:14 +0200 Original-Received: from localhost ([::1]:45133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF4eg-0005jV-M7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 16:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF4eX-0005iA-Ex for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 16:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dF4eU-0003RH-9M for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 16:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dF4eU-0003R9-6M for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 16:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dF4eT-0000qb-RH for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 16:19:01 -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: Sun, 28 May 2017 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27103 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 27103-submit@debbugs.gnu.org id=B27103.14960027003197 (code B ref 27103); Sun, 28 May 2017 20:19:01 +0000 Original-Received: (at 27103) by debbugs.gnu.org; 28 May 2017 20:18:20 +0000 Original-Received: from localhost ([127.0.0.1]:42087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dF4do-0000pU-AQ for submit@debbugs.gnu.org; Sun, 28 May 2017 16:18:20 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:61604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dF4dl-0000pG-Vm for 27103@debbugs.gnu.org; Sun, 28 May 2017 16:18:18 -0400 Original-Received: from [18.189.17.156] ([18.189.17.156]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.184]) with ESMTPSA (Nemesis) id 0Lo0CW-1dqbFr1Sbw-00fxKN; Sun, 28 May 2017 22:18:11 +0200 In-Reply-To: <83r2z8g3op.fsf@gnu.org> X-Provags-ID: V03:K0:UaXnJkEcqtvsw93ooP/M2x4shujx8hkk7i8NaYmh/r/p4VCyZ9E VaCd4EC/Ad0a8MnTJfzFPKa3SakeQojmMNz+HtoczCS1dWg0iwKJT5m1kwcfF6bgsuoaq8z vVvrbCbXfqMgkKFZZRWbUP2IEUqPM21PnGaWcoBvL5Q2tUoD11o0Ub290TngvbUYYdd5QMI hZ69Zs0dGw+waw78V9M2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:LTLP5rWEWgA=:EwWa5M3RprqTmrhIOhqpuZ 5mOUx7UhjNyYwwuOWtZHBDyAHaqCAfN/lBz+XfMLiDXgEpkn7nXofB6TcwkRJJefr8dbv5iR/ 2fJ8kHA5FLqOAAp2PKNff+t1vG2bnuTvjPKv2YXnPG4neAXruFT7Age6MjxQNj6cnwfPPniaJ JrEarbuEwFC61uVVhi8rxgvg+JVA9sKMzgaxZEozWwqouA5N8cYpcfbTw7ST2uu5AYOdH4gxF J9ZJ1qLM5J8mSUfZfrMkTo7oXf2qwWimthR2Gq+CjPk6PCpQgOBRNo/LvaBZXpIKM3qJCb4mU nhl5La0MJWBxNF8IZkz6Y2gQLJmKMky/VRjsHuVqfAFYjSZqaVpbcGyslJDbOnLyV22IqqxMG dOgCJyowDU0R2sI80RtSrpl0Dp08KqFeQgp0P2iXV0DaUoPMq/m9aPcRjjrlTok5qHIqTRZzD DjFdReH/J7+StZ5zMzIh+hFuIQth1lNnxTbAtGIvitRJjwIbu5fdmLdTzbmxFlWOa22006RSf XOTjyB86JDIz8Hrv40c40feeW0q0hWaxyrjsuZd69jkLKOZXpYfXOz1IrRbu/8RrVexF/v7TS giYqrECIuPquHEBK5y5b4j2pVDtfRzWGM56orAAvRz1dLq1bf5/1WKzyMZUvEHVS96cNmiFOU Tpnw4MV4/MAph5bcNKnVYeQjjWkMIswaJFgXwYRGdw158mPsmP3hfhGVlpXWDsOlO5OA= 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:132966 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0hvG6gEWn2J97LvVKReq7h1Tkc9FvqkuL Content-Type: multipart/mixed; boundary="XfIPOBrXixAlegB9DNekStr17HpEN6Rv5"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Eli Zaretskii Cc: 27103@debbugs.gnu.org Message-ID: <33c5270e-1fcc-8db3-36ec-6fa697a609b3@live.com> Subject: Re: bug#27103: Should show-trailing-whitespace highlight specified spaces? References: <8b0fc51c-288c-cf31-1054-07bd13ce91a0@live.com> <83poeugnqx.fsf@gnu.org> <83o9uegk7e.fsf@gnu.org> <0541b31f-46b4-e52f-9d58-d649809b940d@live.com> <837f11gd47.fsf@gnu.org> <209333a8-8106-0193-a237-bc54fc08b268@live.com> <83y3tgg9ks.fsf@gnu.org> <83wp90g86d.fsf@gnu.org> <83r2z8g3op.fsf@gnu.org> In-Reply-To: <83r2z8g3op.fsf@gnu.org> --XfIPOBrXixAlegB9DNekStr17HpEN6Rv5 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 2017-05-28 15:51, Eli Zaretskii wrote: >> Cc: 27103@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Sun, 28 May 2017 15:43:52 -0400 >> >>> Maybe we could extend the line-prefix property to support left-fringe= >>> and right-fringe specs. >> >> Hey, it works! >> >> (insert (propertize "AA" 'line-prefix (propertize "_" 'display '(lef= t-fringe right-arrow)))) >=20 > That's not what I meant, but if you are happy, it's fine with me. I didn't realize that this was possible. It fits my use case very nicely = :) In the (defun example, I can just put the line-prefix property on the = defun, and everything works perfectly. I wonder if we should mention this in the manual. Maybe in the "display s= pecs" section, where (fringe =E2=80=A6) is described, we could add this: `left-fringe' and `right-fringe' are replacing specs: the span of text = that they apply to is made invisible. To add a fringe to a line without = hiding any of its contents, put the fringe property on the before-string = of an overlay or on the line-prefix of your text. >> Anything bad with this? >=20 > It's just a display property. Nothing wrong with that, of course. Thanks! --XfIPOBrXixAlegB9DNekStr17HpEN6Rv5-- --0hvG6gEWn2J97LvVKReq7h1Tkc9FvqkuL 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 iQIcBAEBCAAGBQJZKzB6AAoJEPqg+cTm90wjDe0P/Rdok+JqQeU2h1Zfv29SsZQN ZhJAQ276N5jFh2OKsyLr2qSYxDboj8rCoX+dUiJv+Cz31JjnjpQrA/4XfSYCG1vi ZKDhiodQlbTvie6C8K/1221lM13/ntp/OdBiJZy0kLuKyaf79Jw9nd45aVLMS88Y sPg4KZGpwnfV7Gx9XIWSoH49sewp7DU6X3WRmZqP06G8ygkW+lZ2yEJVB4VEM4X/ Q3HbbCoicsfjsx9Cm56En14BTuEQGaP/EnMWKAHf28TvgVbsqCAPOiJ4dLlI5r3i 7pbNIxUQrieQN5dAVr3y5CL1EpIEh23xTb5KBEubgZb0iN/o/b1aw7T6FtaZa/Di 3TRxRzB89bxFE3dnITi6/OoxIfji8xuKaGy7mazrva4utJwLfWh8gkGv8E9+3gxm Q5jnYr3pHHNCwP33d8XRBBVwXyZbrvJ4J8yrs82NJksWDDStJs06vZyFeE70vbWL FSW0yyPid/P0/y14UJlMDoObchu82ZVH1iW/JdVBLy7g4lWe2QzGZnbwSWEIIh6H g1MnkGKXajNrmILhJVRMST+b3RwkfsF5tVp/Z54wC65WiPCxQ0bgfMewDj2jvnf2 BJq+Wm3SrtM/fzjsWRAxm2fhPxIX68MgCJvprotcPcIc1HXxwPIskByRsQrkarhL kUrnrs8eLSRTT3MlxcW/ =ryAJ -----END PGP SIGNATURE----- --0hvG6gEWn2J97LvVKReq7h1Tkc9FvqkuL--