From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29263: 26.0.90; Regression in doc-string highlighting Date: Sun, 12 Nov 2017 07:20:00 +0200 Message-ID: <83y3ncm5tr.fsf@gnu.org> References: <1c1ef01a-2739-4f8a-b3c1-103ca80902fa@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510464074 2926 195.159.176.226 (12 Nov 2017 05:21:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 05:21:14 +0000 (UTC) Cc: 29263@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 12 06:21: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 1eDkhh-0000Kk-DV for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Nov 2017 06:21:09 +0100 Original-Received: from localhost ([::1]:48066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDkhj-0000r2-L4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Nov 2017 00:21:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDkhd-0000ql-Ht for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2017 00:21:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDkha-0002ef-Cx for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2017 00:21:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDkha-0002eY-8v for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2017 00:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eDkhZ-0003DN-Uf for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2017 00:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Nov 2017 05:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29263 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29263-submit@debbugs.gnu.org id=B29263.151046400812272 (code B ref 29263); Sun, 12 Nov 2017 05:21:01 +0000 Original-Received: (at 29263) by debbugs.gnu.org; 12 Nov 2017 05:20:08 +0000 Original-Received: from localhost ([127.0.0.1]:35914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDkgh-0003Br-Rf for submit@debbugs.gnu.org; Sun, 12 Nov 2017 00:20:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDkgg-0003BK-7I for 29263@debbugs.gnu.org; Sun, 12 Nov 2017 00:20:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDkgX-00026n-VN for 29263@debbugs.gnu.org; Sun, 12 Nov 2017 00:20:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDkgX-00026j-Ra; Sun, 12 Nov 2017 00:19:57 -0500 Original-Received: from [176.228.60.248] (port=3594 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDkgX-0007v1-7W; Sun, 12 Nov 2017 00:19:57 -0500 In-reply-to: <1c1ef01a-2739-4f8a-b3c1-103ca80902fa@default> (message from Drew Adams on Sat, 11 Nov 2017 13:57:33 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:139786 Archived-At: > Date: Sat, 11 Nov 2017 13:57:33 -0800 (PST) > From: Drew Adams > > 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. The reason will show itself if you move the mouse pointer on those backslashes.