From unknown Fri Aug 08 22:23:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24173 <24173@debbugs.gnu.org> To: bug#24173 <24173@debbugs.gnu.org> Subject: Status: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode Reply-To: bug#24173 <24173@debbugs.gnu.org> Date: Sat, 09 Aug 2025 05:23:54 +0000 retitle 24173 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode reassign 24173 emacs submitter 24173 Cl=C3=A9ment Pit--Claudel severity 24173 minor tag 24173 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 06 20:51:26 2016 Received: (at submit) by debbugs.gnu.org; 7 Aug 2016 00:51:26 +0000 Received: from localhost ([127.0.0.1]:58235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWCJK-0000MB-6Y for submit@debbugs.gnu.org; Sat, 06 Aug 2016 20:51:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWCJH-0000Lx-LN for submit@debbugs.gnu.org; Sat, 06 Aug 2016 20:51:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWCJB-0003RG-Ew for submit@debbugs.gnu.org; Sat, 06 Aug 2016 20:51:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWCJB-0003R8-Bq for submit@debbugs.gnu.org; Sat, 06 Aug 2016 20:51:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWCJ9-0004rX-6k for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 20:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWCJ5-0003Qd-1w for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 20:51:14 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:58968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWCJ4-0003QY-La for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 20:51:10 -0400 Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MVJlO-1bk4Zu3LY6-00YiZR for ; Sun, 07 Aug 2016 02:51:09 +0200 To: bug-gnu-emacs@gnu.org Subject: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: Date: Sat, 6 Aug 2016 20:51:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="A3V1jTxuWL04QGBUGuSjmcLWF0nHCKv6W" X-Provags-ID: V03:K0:hc60FoEZDp4BeCUmg6u3zirKQgAxAjQaYio7GwAHlRqZXpoYHqU y5tSP5VtlR9OqCSOccGAwKh2RbZs+nJdpQxpef8mxUL3Op4dLq1sITZydvORw6M3wq0KBoU MGwnTERUTdz6TyDk20z+gUYMi/RUluEFUn8Fcy0V/+wlLtMQcLH6YAmPaWYomnl8z4u1u0k jXvczh8P9Ww/hVxMXW5ig== X-UI-Out-Filterresults: notjunk:1;V01:K0:ewtjn7ceMQc=:ZMAJ8Q9B/Yqh5ujlmVNd0K 6uelz23IyXu/tOj8VaXiixTEk2LxSeSOVFz79TMfKZ9UoTtEFqvBDBGVaboxz/eV58LQBZ1W7 MsvBb8TMRSNh9GBCanZqOOf3HWNq4/lsLJ9cYwFDoCvi5ciPcgpiWfgkcBt68Nb60klt0Ih9r INgDBIrZFtsxwHuEb6dAbJp12LGmfOZsHo1q8llCVb85f0gy/0wLQO2WPuOqRRkfcD27Ogtzx 17IGwOLeZbovHr4UrITLTvNHmKObIW73/FzDGIv/7V7FcQo44/g/37QO1kLqo1tsxyvjkCqSA uJZDdUpjv9Y31ifBqp3qGHX9lb865T4rFmN8JkfNKKz+cr2K4nV0lPQfcFb7dQ2KFtkhAemZJ MA+OYmrAAFSZcuDMk1AeVXMpvDk68Q33+4p82qTa20fVLXQ6EmfcqbReZi/NuwT/YOMt8itha aVlL503AD9I3mhnOM4iVWIdZ18n8vnptVICVOTYZf5yJYiP+oIszmTwAouU+M46Iy6TgupQLW JK5xROV5JNuq/Ijh7nxyiVEKjHp7TnM0k/iE2KtK8CFaHMGHZQh9Z44PkBKl73f2A16VzJ9G2 N8RLbXpilU4zXLtb9WZt+ydoEm6STt6vfjjF87m49NMT4IuN3iBt3THSF27o0nWhltydPInbp TZ6UCIJ87AbCc4rsSQABLZDTnzD+enIQPSGOQsjnOyErQoVDhFxx5AkFkCTgpdX9ULNY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --A3V1jTxuWL04QGBUGuSjmcLWF0nHCKv6W Content-Type: multipart/mixed; boundary="A3ukHvEEoTpWQhTTHBp1FR7q2xbAFI9LX" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: Subject: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode --A3ukHvEEoTpWQhTTHBp1FR7q2xbAFI9LX Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey bug-gnu-emacs, In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" are h= ighlighted with (font-lock-constant-face font-lock-string-face). Is this = expected? Cl=C3=A9ment. In GNU Emacs 25.1.50.7 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-07-20 built on clem-w50-mint Repository revision: a1a0c208e3e895a6ea0942e8e5c4077faf12c7ad Windowing system distributor 'The X.Org Foundation', version 11.0.1180300= 0 System Description: Linux Mint 18 Sarah --A3ukHvEEoTpWQhTTHBp1FR7q2xbAFI9LX-- --A3V1jTxuWL04QGBUGuSjmcLWF0nHCKv6W 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 iQIcBAEBCAAGBQJXpoX2AAoJEPqg+cTm90wjeX0P/20x0tbM18HZ4Zz3zOdwIjME OJan4ZzFM6wAVjG0lNXrHQySyuN5gnDoCibyLsTjBZzOigFklmZNLnwWLRIVQAnY c3q7KrOyRcvTV+Z5C6SDnIlRUlWWjHcz6l/Qx0pSe8O1Bv5y9Owm0NiP9HCuMasN DsUOF8yhY1apFIQedcwi9ibFhU9DOZQ1qkIym7KV6eCTtsUUscqVTxF65JhxxQQC Xkw/WUQqLhQUj0a2wmtoZn4KRuPOy74PLNeEhenr9WqgaaNBxrw4naMreCkW47RF yHQtWSd/ZLGyPt7+QeQ49LNg8V7kVtIpbMhuo9LXWDvMrMWsZHFnoYatk4jCMxoU jjdthvdfyrEmp72dXsrAxUJigA/bjreFZ3z7JFdQBNmcO8Anzj74rFc9ClnxBs2Z Cxileb3x9otN6v7qZLUyr3tCGzSWjW/KTScMBfwP7cQm4onIq1he+tx/weixi/sJ XWLVPQeRJA05x2a10uayOxVn6PZkwSP4vIi0ZSlUE+b42vuXNwFLZiaWAu2CSBsd vZJllp72ttk2fQJhoF92QF0jAk2q2qKmfchF2BGH//hyMGeWk3sd/Kc62tsNu+u1 2i6aUEhZC2T+h/63E+Is9aNG6Qws8t0u3LwzP5qGVvB1AfyFqn5V/pYNuzKKOUe7 T5+GSLgPCZxGnw/Ggr6M =70u7 -----END PGP SIGNATURE----- --A3V1jTxuWL04QGBUGuSjmcLWF0nHCKv6W-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 06 21:19:46 2016 Received: (at 24173) by debbugs.gnu.org; 7 Aug 2016 01:19:46 +0000 Received: from localhost ([127.0.0.1]:58241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWCkk-0000ze-Is for submit@debbugs.gnu.org; Sat, 06 Aug 2016 21:19:46 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:18739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWCki-0000zS-Re for 24173@debbugs.gnu.org; Sat, 06 Aug 2016 21:19:45 -0400 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u771Jb3G019346 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 7 Aug 2016 01:19:38 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u771JaBT018036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 7 Aug 2016 01:19:37 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u771JZUP020103; Sun, 7 Aug 2016 01:19:36 GMT MIME-Version: 1.0 Message-ID: <7354b106-a0b1-40a1-b05f-671ddb417369@default> Date: Sat, 6 Aug 2016 18:19:36 -0700 (PDT) From: Drew Adams To: =?utf-8?B?Q2zDqW1lbnQgUGl0LS1DbGF1ZGVs?= , 24173@debbugs.gnu.org Subject: RE: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 24173 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) > In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" are > highlighted with (font-lock-constant-face font-lock-string-face). Is this > expected? Whether intentional or a bug, it seems to have been introduced in Emacs 25 builds. I see it there, and I don't see it in Emacs 24.5 or older releases. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 06 21:24:54 2016 Received: (at 24173) by debbugs.gnu.org; 7 Aug 2016 01:24:54 +0000 Received: from localhost ([127.0.0.1]:58245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWCpi-000173-4U for submit@debbugs.gnu.org; Sat, 06 Aug 2016 21:24:54 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:64360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWCpg-00016r-NZ for 24173@debbugs.gnu.org; Sat, 06 Aug 2016 21:24:53 -0400 Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0LcbA7-1amj8a1kCF-00k66T; Sun, 07 Aug 2016 03:24:31 +0200 Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode To: Drew Adams , 24173@debbugs.gnu.org References: <7354b106-a0b1-40a1-b05f-671ddb417369@default> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: Date: Sat, 6 Aug 2016 21:24:24 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <7354b106-a0b1-40a1-b05f-671ddb417369@default> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7gNTJ2MWnxsjV0PwEA3TWwOGCfvqjSiWc" X-Provags-ID: V03:K0:VLpdtpolMEfwXhUxZxLrjawvuBJNILF9EBa7EDGAu4CcpE1gJvi H/Z1T/L1L23Ye8FTbYjRpniq1OEPNJSvJrF1kilKQ6oF4qZZxU4OFDcfg4OHIo7bM+5BvWC BEutxp1HbwuCP3OlsWNmDherwLEzDoTX6cqaKCBrC0+elsu093Z5srEgLLnjoB3NhL5rMqM TxCnxQp7PYF4CFr0qLhnA== X-UI-Out-Filterresults: notjunk:1;V01:K0:GHWoXpFzz1s=:DZz7tk0XQNZ3fgV4D0lwzW 7csm0AV/PJVCKvQBxF5i2ojXjxoooiEIgto3OIu2Uc/J7HW5pKHTgHY2HW8rPrgHKfBQdL6ME 6UELaNxcrd8IEjO5QPwxvBqQ5H6BMT77WHPU5ETYKAJmlNhDVxUYtTBdjz6uQOLXvrLGcxIxu xM1mUO7JcEOx9nEthZ95U9SdMttpFNdBUgusPzdTemRde9mB2RTwRGXOrtbbiu9BoSLQ1aPXq hR/XXqtTpnnqBqAVOmH+V55j+M0t4tzBrS8a3bq+0sanSzG1OOFVRHXIIy1QqUVBOsMg3k/Gv yU7smRsMQpVpIyzP30vAnGzUkHtT2XfUFNmpYlfL9wbdPo9Y3IA8Fh3D5Evq2bd14V+XQZ98A WxkixzK5ZCjUPxiS/hPtqbvPlqSmdtH1DJEVcyWxxO37KQMEx4VKUe0tmXtzZe9nXGBO/U8mI OaFEWY3xsMHW5BgQeAeY5ndVgut18wxcBs4BbeVfNw7ksA7VOERyPktqkPb38BVbw7g4ODEgg irzLEox+WtMO5Vvk3vky048Pk5AAeyarHQeIxcI40UND4ygslFHw56NoUfwZCXiZxW5QF5uxX D6wB9tRVOhvkQxr2443wcFs3TpijTjIgDTkvdEqRzqYdwFxrGl4EFLJS8NaCgWa4/1JkcMuDG b2saZfm3inhpayFTMHIH/BjZhuHL/riCwDEB5GWa46fHcnzQVbdlWsI6MINEqRSA5MEE= X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 24173 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7gNTJ2MWnxsjV0PwEA3TWwOGCfvqjSiWc Content-Type: multipart/mixed; boundary="RMncqFJWuJBAhqISputa1NxVSDoSorP9c" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Drew Adams , 24173@debbugs.gnu.org Message-ID: Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode References: <7354b106-a0b1-40a1-b05f-671ddb417369@default> In-Reply-To: <7354b106-a0b1-40a1-b05f-671ddb417369@default> --RMncqFJWuJBAhqISputa1NxVSDoSorP9c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-08-06 21:19, Drew Adams wrote: >> In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" ar= e >> highlighted with (font-lock-constant-face font-lock-string-face). Is t= his >> expected? >=20 > Whether intentional or a bug, it seems to have been introduced > in Emacs 25 builds. I see it there, and I don't see it in > Emacs 24.5 or older releases. Thanks for testing! --RMncqFJWuJBAhqISputa1NxVSDoSorP9c-- --7gNTJ2MWnxsjV0PwEA3TWwOGCfvqjSiWc 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 iQIcBAEBCAAGBQJXpo3IAAoJEPqg+cTm90wjBncP/11mw+oEu/stah3zjEa1ETfO QDPFY9enaMeYws/5TnGQDeelhsZiKyl+uk1bNvHP7bx7MXe8PtL6xVpkyx6ig/m5 oJpjslXb9+16lFSyJuFC4gGmDKUDHShM4SMIoVoN84ACH7vB75xAYZHUJXFLS9dI 4gV7lLIInSshp5rRpgF0X3K9MvRjQWSW1bn4xKZvoddy0t6POlEKmhd7oCnrgbS2 O5TL6096ZtGKITzWH5tXCnlYmPl2r3D2VmLsDX8w2mUnl6BzhRgS1cBkjrKpn/X/ QQo0ywkKZWB/ZsvLmiwY3Fb1RNaHyLImcWQVHQ6/g/l+SnuDyp3a8vXD7amAYFAi ktkuepqFNz4aT+p0iwKkg60ePXWAGV8xw7AWT4UQRgyrdH3a9+m1XlQfyuf3FOvX GJyRILAwQC10cJsPtJASO6zJEW2Xbl947nrh6hkfa4/rLOkNa62CbC2FFXV2iJW5 qlgOZ9srrKHhk/LZoqyo0zCahaUzpyuy3IVmiiBDjUq2E9XMFxYvEZ1Tx9IySZOe nJ4CoIy4JHzKrSQSpmGxUM0qS9dtSTEAiqYSLPXqYOR4AV4NyaDDi61tFRmBfiuW rLhr++cjTxE9CUZX3kltkqXxShlrsiIxcm6UMFqGeMRMiVNEuZ0PFmZylQG0htaS EGMJXvZREmjiijqpBuM8 =N/I+ -----END PGP SIGNATURE----- --7gNTJ2MWnxsjV0PwEA3TWwOGCfvqjSiWc-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 05:11:19 2016 Received: (at 24173) by debbugs.gnu.org; 7 Aug 2016 09:11:19 +0000 Received: from localhost ([127.0.0.1]:58333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWK75-00051x-CI for submit@debbugs.gnu.org; Sun, 07 Aug 2016 05:11:19 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:60506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWK73-00051n-21 for 24173@debbugs.gnu.org; Sun, 07 Aug 2016 05:11:18 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3s6ZXg3Wxsz3hjQZ; Sun, 7 Aug 2016 11:11:15 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3s6ZXg1lhPzvkQN; Sun, 7 Aug 2016 11:11:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id jaVOOZkEFyBD; Sun, 7 Aug 2016 11:11:14 +0200 (CEST) X-Auth-Info: +tz/Fp8G++HKPJJbNXSUyBa9VsOugNXvA788XKi4JmuegSt7uOkqTl8L+1rdotsw Received: from linux.local (ppp-88-217-6-113.dynamic.mnet-online.de [88.217.6.113]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 7 Aug 2016 11:11:14 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id A7A4B1E530E; Sun, 7 Aug 2016 11:11:13 +0200 (CEST) From: Andreas Schwab To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode References: X-Yow: Feel th' WHIRLING BUFFERS buffing away all that stress... Years of ROAD TAR gently washing away... Date: Sun, 07 Aug 2016 11:11:12 +0200 In-Reply-To: (=?utf-8?Q?=22Cl=C3=A9ment?= Pit--Claudel"'s message of "Sat, 6 Aug 2016 20:51:02 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24173 Cc: 24173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Clément Pit--Claudel writes: > In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" are highlighted with (font-lock-constant-face font-lock-string-face). Is this expected? ;; Words inside \\[] tend to be for `substitute-command-keys'. (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]") Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 05:27:32 2016 Received: (at submit) by debbugs.gnu.org; 7 Aug 2016 09:27:32 +0000 Received: from localhost ([127.0.0.1]:58337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWKMl-0005PD-Q2 for submit@debbugs.gnu.org; Sun, 07 Aug 2016 05:27:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWKMj-0005Oz-Gv for submit@debbugs.gnu.org; Sun, 07 Aug 2016 05:27:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWKMd-0000eA-9W for submit@debbugs.gnu.org; Sun, 07 Aug 2016 05:27:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWKMd-0000e4-67 for submit@debbugs.gnu.org; Sun, 07 Aug 2016 05:27:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWKMb-00074w-1r for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:27:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWKMW-0000dt-Sz for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:27:20 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:62707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWKMW-0000dp-Is for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 05:27:16 -0400 Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0LqHAa-1b1NFy0Tbc-00ds27; Sun, 07 Aug 2016 11:27:14 +0200 Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode To: bug-gnu-emacs@gnu.org References: From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com> Date: Sun, 7 Aug 2016 05:27:06 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="emhuGq9GnhEvw5Hs3v2MDrdLtkpX5Wgs4" X-Provags-ID: V03:K0:gBMHiD7zeATa3QYHwc87Jt9triLirmNIdVDp4qohA6GIf85GySH S85dzP8gDJrpYCq3n45SrQ28hx0uqq35FtrEBZ8J40wkipUHUz5qFsxcMH/N1zYOTDbVUpd LISaDXGhIuBIqFKfRSbF7warPzKzPqx0zI3P3ErL00QVFQInBO625RshrjH8BkOsWwXkwTd ohbEIvBEPAd6GVRdz5LYA== X-UI-Out-Filterresults: notjunk:1;V01:K0:0RJLejTy9eY=:Fq77UXdRFhDQbDWHtouEch dxPPZf/w7hhllxbqzafE9t4d3TN0TbSMQRQ5LqEjRfl9e1TxRdLRwx18bU4vBLuDn+nd0XxvF Xm6sqAraJy45gVm0QDKgYMmWNjo19CfXTR0i9YZS/CD2LGKfzlxuIFazCzODsR1v687GAlgku 4COTnCREsQjr7ylgHi7CK67r0EmV86lzwyHXd3SgwJ6xgPTpqaprpzSx/E3qTg/eQkbDLW/6I 2ftaBkWW02rBR1KvXdkWKc3tjfi4h3kmplQ0gyYJqfYsDg6FOztSYeBEaoIgQcSxiW8otnBis BRDdQqsoNFa3dof7TNv6z/6H7kWiIAudyKUftEmVmEINaPf5wRUnHBNZSIpOtopEvk4qdqPJC 6XdtzcC88XtqSVVLJ2sDmwOh2sQtflA+0k2edjAUGNzfhyp64zuQXPn9DvhJMmvSpTtBF96bp EQsajICjHRawfYGcQ1KrRNInTOdv4enD+MQAh1kiyh3qbhcwnNbLouVMdVbDccFIF2w+4c4Qh 3f+iYsPHesIO+7YUMJXdwyTxSX987JAr1wi5tcd3K4+vV1PMkS3XEaryMdobH0A7RLMnOyaSe od2VDDkcczO6OM6NhuMY742SS8pqntp+IUDO43uxepUCGrYm1RrJgnUYVvF1J9TML2epiEJSa qXTBiz8EStHwoIEhmQq0NslWDRugHZWeku2y9NWX0OzemWj7Vaw2aX77Vm+XUhPB5V/8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --emhuGq9GnhEvw5Hs3v2MDrdLtkpX5Wgs4 Content-Type: multipart/mixed; boundary="uPoPbgv53EhTC8KDMdfHI81GAO9IuFEm5" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Cc: Andreas Schwab Message-ID: <133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com> Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode References: In-Reply-To: --uPoPbgv53EhTC8KDMdfHI81GAO9IuFEm5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-08-07 05:11, Andreas Schwab wrote: > Cl=C3=A9ment Pit--Claudel writes: >=20 >> In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" ar= e highlighted with (font-lock-constant-face font-lock-string-face). Is th= is expected? >=20 > ;; Words inside \\[] tend to be for `substitute-command-keys'.= > (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]") Thanks Andreas! Should this regexp be conditional on being in a docstring? Otherwise plea= se feel free to close as notabug :) Cl=C3=A9ment. --uPoPbgv53EhTC8KDMdfHI81GAO9IuFEm5-- --emhuGq9GnhEvw5Hs3v2MDrdLtkpX5Wgs4 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 iQIcBAEBCAAGBQJXpv7qAAoJEPqg+cTm90wjpcwP/iF+c5Thl9+MRnMDHAB182tk Jxu7l1DjsGbCxWYyaiyAfW6SGPbTKXpjOuevO7vvTfoDjOvXfgfPDWgcl4yZr5RR zsSuFIEysncGwNOpGCOAFgJ4WDOTKKcVILzoW5xImvDwvdKpptZ4whI65jcjVXeL RC5a/k1zZhndOSTGJoyhZToZcgFmXlVXWPO0Y5gJEFFkeAAHrJaYpf7xhpFK0Sec yxPlWQB9RQ9AlzGZF1HJUX3ovQo2NquoyME5pFwLjRTThj4y+5dkvPq1OBAiOkzl x5SAB9s8EjgLXXx7sVu8ZYnfoVFmhk9IzQNim3YAIBWk1M2YIEdxhiz62o91xtq9 uUT8AoQ5Mg9L+SuBAi/FJb8UuZcK9phx8bth4AESriNcquxe0ppk3mjdoQXmSue5 29qT7eLIKOdSNyfXIsZz5+Dt2yFiCoXO6KpFx/i4fApo5LU5pk9+dgUPJbgBsBPr onLPb7NTSJ3JUpiOrgsOJsiPDx2JtwwtYxEKLGffS7rTrmTfpGLYvIgBsWo9dA3B UjLNF+vOX2VuBuPnMbVjDlYkQPpVD71AmrAWnAiaksbiDC6YogbGtv9jxygqyixw UplKV9J9jpVvob83TmA3KrLvZDEuqoVZPAhP3vGU9J9Zt/mgTayjL3MHS4V2a1au nSCrM280JL85Dy07lubm =2oYn -----END PGP SIGNATURE----- --emhuGq9GnhEvw5Hs3v2MDrdLtkpX5Wgs4-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 10:08:15 2016 Received: (at 24173) by debbugs.gnu.org; 7 Aug 2016 14:08:15 +0000 Received: from localhost ([127.0.0.1]:59144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWOkQ-0005bN-Vu for submit@debbugs.gnu.org; Sun, 07 Aug 2016 10:08:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWOkP-0005bA-Ub for 24173@debbugs.gnu.org; Sun, 07 Aug 2016 10:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWOkG-00038c-D4 for 24173@debbugs.gnu.org; Sun, 07 Aug 2016 10:08:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWOkG-00038S-9Z; Sun, 07 Aug 2016 10:08:04 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3441 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bWOkE-0004ZY-GZ; Sun, 07 Aug 2016 10:08:03 -0400 Date: Sun, 07 Aug 2016 17:08:00 +0300 Message-Id: <83ziooise7.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel In-reply-to: <133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel on Sun, 7 Aug 2016 05:27:06 -0400) Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode References: <133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 24173 Cc: 24173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) > From: Clément Pit--Claudel > Date: Sun, 7 Aug 2016 05:27:06 -0400 > Cc: Andreas Schwab > > >> In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" are highlighted with (font-lock-constant-face font-lock-string-face). Is this expected? > > > > ;; Words inside \\[] tend to be for `substitute-command-keys'. > > (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]") Note that this is in no way specific to backslashes inside []. > Thanks Andreas! > > Should this regexp be conditional on being in a docstring? But then the likes of the following will not be font-locked as you'd expect: (message "%s" (substitute-command-keys "Type \\[calc] to return to the Calculator"))) IOW, the doc strings are not the only place where we want this. OTOH, the probability of having a string where such constructs are used with no relation to substitute-command-keys is quite low. > Otherwise please feel free to close as notabug :) Yes, please do that. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 16 21:37:15 2016 Received: (at control) by debbugs.gnu.org; 17 Aug 2016 01:37:15 +0000 Received: from localhost ([127.0.0.1]:59606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZpn9-0001sh-Eb for submit@debbugs.gnu.org; Tue, 16 Aug 2016 21:37:15 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:33058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZpn7-0001sU-DL for control@debbugs.gnu.org; Tue, 16 Aug 2016 21:37:14 -0400 Received: by mail-it0-f67.google.com with SMTP id d65so7331909ith.0 for ; Tue, 16 Aug 2016 18:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=KvYMycaLZnm1oQM9knmDOvHbdfX6aJSg6U8vF7vvy0E=; b=bQx5FdCIYvxLx/ohA8tILHTlfvDYrWJte/5jZUWpCTkfoechvS/xo2eU3f/TioKx57 pm7WOifcZg3j51AolDYRGHaP+68dQM+H9SvMYoKeMiWoo9MbFbmIWSmr48etBTjMHfV1 CBg2ezOlk7L95fQA6CUZ7oTasTT53QIb6ga5sA1z9RrLPU9SK055bb21X7YibUFYjWUm alHULJ1f7Sz8qRqmYe1P6AG1CSgFsbJH+1bPGokuIJzPd48lm9fj+EOvB5ltR/eY4wia tNRSiHJrzzJWqXN/ESU/0o7olHoQu5CX97kPNpMjSSX792fhZw+mWroIK00q8NAV0TJG jPJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=KvYMycaLZnm1oQM9knmDOvHbdfX6aJSg6U8vF7vvy0E=; b=J2meyKXZU4PaaXT4yLGiCfuJYhp/xEMqllRw+OuL/7eA5WFtuPGifLCOsK+ZaLG1Aq KzdDW/7JHQTnhKqErI++LvL7CvQXNfdKV2fQeDjd9tRIPZeD620btyBzffMiXw8MetMU HXpsV5x0nrHzcLqsBeselh2wbuq8ZKpxWKvlXGHZuyvMdpp/j5vpx8+pX7oQzcOEd6nD L7GijUWkE2Ic1Lk8QWI4ZZDzks09Vt5sh14w+idGlJa7Vc6HXawepl49gstGDxNSpLur Gj8EVzchTRgVFGSSuVkemp38FXgFvzamwF5wIxsOIhsR/bkGB9o/YedoQqNVVpsszVrG 3RnQ== X-Gm-Message-State: AEkoouv8wq5PoVmTf8vlqR1JttyrrJsW88a6v5PW4vZiAeGGO4d9m9EWoq93aMmgqlBwJw== X-Received: by 10.36.133.213 with SMTP id r204mr24911834itd.50.1471397827673; Tue, 16 Aug 2016 18:37:07 -0700 (PDT) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id o15sm13722140ith.2.2016.08.16.18.37.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Aug 2016 18:37:07 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode References: <133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com> <83ziooise7.fsf@gnu.org> Date: Tue, 16 Aug 2016 21:36:41 -0400 In-Reply-To: <83ziooise7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 Aug 2016 17:08:00 +0300") Message-ID: <87oa4suqfq.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 24173 notabug close 24173 quit Eli Zaretskii writes: >> From: Cl=C3=A9ment Pit--Claudel >> Date: Sun, 7 Aug 2016 05:27:06 -0400 >> Cc: Andreas Schwab >>=20 >> Should this regexp be conditional on being in a docstring? > > But then the likes of the following will not be font-locked as you'd > expect: > > (message "%s" (substitute-command-keys "Type \\[calc] to return to th= e Calculator"))) > > IOW, the doc strings are not the only place where we want this. OTOH, > the probability of having a string where such constructs are used with > no relation to substitute-command-keys is quite low. > >> Otherwise please feel free to close as notabug :) > > Yes, please do that. From unknown Fri Aug 08 22:23:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 14 Sep 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator