From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29263: 26.0.90; Regression in doc-string highlighting Date: Sat, 11 Nov 2017 13:57:33 -0800 (PST) Message-ID: <1c1ef01a-2739-4f8a-b3c1-103ca80902fa@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510437492 14314 195.159.176.226 (11 Nov 2017 21:58:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Nov 2017 21:58:12 +0000 (UTC) To: 29263@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 11 22:58:08 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 1eDdmv-0003Mz-PW for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Nov 2017 22:58:06 +0100 Original-Received: from localhost ([::1]:47271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDdn3-0008C6-1s for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Nov 2017 16:58:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDdmw-0008Bp-Ct for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDdms-0007GB-DG for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:58:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55280) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDdms-0007Fz-9t for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eDdmr-0007hj-Vq for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2017 21:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29263 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151043747429599 (code B ref -1); Sat, 11 Nov 2017 21:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2017 21:57:54 +0000 Original-Received: from localhost ([127.0.0.1]:35728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDdmi-0007hH-ET for submit@debbugs.gnu.org; Sat, 11 Nov 2017 16:57:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDdmh-0007gy-Eh for submit@debbugs.gnu.org; Sat, 11 Nov 2017 16:57:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDdmb-0007CW-4T for submit@debbugs.gnu.org; Sat, 11 Nov 2017 16:57:46 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDdmb-0007CR-18 for submit@debbugs.gnu.org; Sat, 11 Nov 2017 16:57:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDdmZ-000849-Rl for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:57:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDdmV-0007BO-Ob for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:57:43 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:49999) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDdmV-00079s-Hd for bug-gnu-emacs@gnu.org; Sat, 11 Nov 2017 16:57:39 -0500 Original-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 vABLva4s001648 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 11 Nov 2017 21:57:36 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vABLvZ6U027453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 11 Nov 2017 21:57:35 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vABLvYpp005025 for ; Sat, 11 Nov 2017 21:57:35 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4600.0 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:139776 Archived-At: (defun foo () "Why does this show highlighting \* \( \) ??" nil) Starting with Emacs 26 this highlights the backslashes differently from the rest of the doc string (using face `font-lock-warning-face'). This is totally inappropriate. Emacs is trying to be too clever here. A backslash before `*' or a paren can mean any number of different things in a doc string. Consider this bit of a doc string, for instance: When both optional args are non-nil, the `find' command run is this: find . -mindepth MIN-DEPTH -maxdepth MAX-DEPTH \\( -path \*edir1\* -o -path \*edir2\* ... \\) -prune -o \\( ARGS \\) LS-SWITCHES" It makes zero sense for `\*' here to have its backslash highlighted. That just spreads confusion. Any number of other examples can be imagined. A doc string is, above all, arbitrary natural-language text. Trying to impose some clever semantics on backslashes is misguided. Please revert this regressive behavior. In GNU Emacs 26.0.90 (build 3, x86_64-w64-mingw32) of 2017-10-13 built on LAPHROAIG Repository revision: 906224eba147bdfc0514090064e8e8f53160f1d4 Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Saving file d:/usr/drew/drews-lisp-20/1111.el... Wrote d:/usr/drew/drews-lisp-20/1111.el Type C-x 1 to delete the help window, C-M-v to scroll help. Char: \ (92, #o134, #x5c) point=3D142 of 41521 (0%) column=3D35 Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS