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 12:43:23 -0400 Message-ID: <209333a8-8106-0193-a237-bc54fc08b268@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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="D1GvvD9uOvGCwavdx6Xk7LcrVR0kJd1xr" X-Trace: blaine.gmane.org 1495989857 2217 195.159.176.226 (28 May 2017 16:44:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 16:44:17 +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 18:44:10 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 1dF1IX-0000Nl-Ef for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 18:44:09 +0200 Original-Received: from localhost ([::1]:44603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF1Ib-0001D9-Mi for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 12:44:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF1IV-0001BZ-Aa for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 12:44:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dF1IQ-0002nO-Fa for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 12:44:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dF1IQ-0002nK-CV for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dF1IQ-0000gQ-6S for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 12:44: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: Sun, 28 May 2017 16:44:02 +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.14959898202592 (code B ref 27103); Sun, 28 May 2017 16:44:02 +0000 Original-Received: (at 27103) by debbugs.gnu.org; 28 May 2017 16:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:41905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dF1I4-0000fk-I1 for submit@debbugs.gnu.org; Sun, 28 May 2017 12:43:40 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.74]:56249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dF1I2-0000fQ-C1 for 27103@debbugs.gnu.org; Sun, 28 May 2017 12:43:39 -0400 Original-Received: from [18.189.17.156] ([18.189.17.156]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.184]) with ESMTPSA (Nemesis) id 0MCqZf-1d5uT30q1L-009ecF; Sun, 28 May 2017 18:43:30 +0200 In-Reply-To: <837f11gd47.fsf@gnu.org> X-Provags-ID: V03:K0:HN/H+JiGqum1D+/vrvooAKrVl2FWh4dboYqxkIu3PJXNN7fbuPz SBme5m8TcaV5s7JJO45p1RiTKwqYt3/A3YN2XTxSYbJEhzsZWFAFKb7xdAR6TvRIsBqdOd9 mHy83d8tdkNWHotisBsvyC0Q4HwQo9+mg/tXHiwkfSduA0GRlXiU1ABEfgMUNfhR+xgyTNb XXtnArXe+XUxP0+no7jcg== X-UI-Out-Filterresults: notjunk:1;V01:K0:1Kw9IQjIhQc=:FtGYKqXKtCQ1qGVNbvQZlL kqLjD8evBypzHvaM0jCKsl4FZqdMLNXvdHYL0Lx8Xs2rQAd4TFOBWU4+oed44tcUlVzFzX6nO dHEDB99b1DdKaSL4xzwRSXbYn6nO4IUs6LrvYjkI3rNApjxSGVS+bRvaOBvGOmFSz/ExaMfuB H3hbvYhCnA9/5gLh23vz1IWseY/e5KtDeWVBTMoJ0D0zQsRN71frTbsjIJe5uqQ6MTMbu0hGa FsGcSBWMiPwGYYFH0nk38X5SUBVh4lkd/CFLcr/Ma4klgYWRu6VLsVzGAimh12+hGAJYduurY 0FTROwce2FobfZw/JPPGZ77cFU9I/Tefge9McqI5wQzWjwWNzNxvbA8/WI0omr2atqCLp2c2M 4mXo4gKzme2soJfVpAjCDOy4CUWgpLh8d/fzr6/KZGyQMoUWpxiC33voSXvVcTyWuo27HLB2e OXZ8l//oSbW0cn4bvgbss1N0T3slaEBR0mN9FHKrvnNLJd2/5zW3mS8tBDcBU9XJl0zNC2M8r eXdmRVAgA+SbbxOJvaUk7SeTNt83BMloEpdcPOWoMnBUjPyK2XS2cNmChFMaCvSadKgR8U6KV ZmpwklFdKW/PJtyOYxEJtAUufC7WudTiSB/A3E3KvZi2qc9IMnOGwidbJTotY6om9bGKANI8d jLaylZ5Vfri2HTWUpjy0ETlutvvFMbnDBSadu8bMfcPpTfd+/u2q2KZ7N0s+qeeZvu7I= 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:132958 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --D1GvvD9uOvGCwavdx6Xk7LcrVR0kJd1xr Content-Type: multipart/mixed; boundary="pSqRsHJmpIIp4f53p5ojfFRSDl9E0Wncn"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Eli Zaretskii Cc: 27103@debbugs.gnu.org Message-ID: <209333a8-8106-0193-a237-bc54fc08b268@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> In-Reply-To: <837f11gd47.fsf@gnu.org> --pSqRsHJmpIIp4f53p5ojfFRSDl9E0Wncn Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 2017-05-28 12:28, Eli Zaretskii wrote: >> Cc: 27103@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Sat, 27 May 2017 15:52:27 -0400 >> >> Would the same caveat apply to the creation of a new 'left-fringe text= property, such that instead of (concat "A" (propertize "_" 'display '(le= ft-fringe filled-square))) one could write (propertize "A" 'left-fringe '= filled-square)? >=20 > I'm not sure I understand why the former uses 'concat', while the > latter doesn't. So perhaps I'm missing the point, because otherwise > this looks like just "syntactic sugar", is it? It uses `concat' because the display spec is replacing. Let me try a bet= ter example :) Consider a buffer with contents like this: (defun =E2=80=A6 =E2=80=A6) (defun =E2=80=A6 =E2=80=A6) Suppose I want to highlight each defun with a fringe indicator. With my = proposal, one could use the following font-lock rule: ("^(defun" (0 '(face nil left-fringe right-arrow))) And the contents of the buffer would look like this: =E2=86=92 (defun =E2=80=A6 =E2=80=A6) =E2=86=92 (defun =E2=80=A6 =E2=80=A6) I don't think such a result is currently achievable without overlays (whi= ch are not nearly fast enough for my purposes). Cheers, Cl=C3=A9ment. --pSqRsHJmpIIp4f53p5ojfFRSDl9E0Wncn-- --D1GvvD9uOvGCwavdx6Xk7LcrVR0kJd1xr 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 iQIcBAEBCAAGBQJZKv4rAAoJEPqg+cTm90wj5lUP/ixas+4XO7UO4ykX8QHGf9xr fDHBPJYwfwvVf9UY1zUde5bg6qPHwYWbDf++JvbsiCcs0abBX8lmjXxyppHpt4eB J29D4kPqf5s6VhBVzsR80Wsm+MAIPOIqvd2FthshWGerZOcyVKdeac8YvD7lisWy aWAG0I14rUDn/wEG1krCxXp8jQg35P5HO+sK6IJNGKBdOnirKMhbNoHGWVxivwK9 3Nj1ihR3volbyOufHMYFqpiRCVJljaaB9XJ/fZ3EWlUd+xLbsxHY5O549iHWrsk+ AtaMTXSJkP+PILK3sNS3mjKDUNZgb0gxF7+T57rc4+dB6eYY08fH2xqwfBnT4Q7Y cA3idCaxvFQsXEje+ubnFqXx9MBRgmnhumIHdNhHMtehfySbq+awK7FOPT2xrPiE sM97SRRkuWpAHhGMmCVrwfPlZBg5Bn+HUV3YXKovBYy5kRCXTfNknJJFu926yrOh cOENHezpE+9vsdXZAuNxqvEPtXTqVGqoZHC9TJ7tuIG6X69U6p20zDRgqOFUZIxi mxF8bmyk3en6YoFosNYVsiuTvkegL8NoKnlBorVQNtPHRJoV0vpg5TkYW+BWm6Ll t2mcKNyOwEUskgpjwOp/N36kle7l84fUgBuVWT77wcc8r6nUHNKD4PhEjChUzu9N oX2bzidJCLRzN2QayQY1 =tfNC -----END PGP SIGNATURE----- --D1GvvD9uOvGCwavdx6Xk7LcrVR0kJd1xr--