Subject: Re: bug#29263: 26.0.90; Regression in doc-string highlighting

From: Eli Zaretskii <[email-masked]>
Date: Sun, 12 Nov 2017 07:20:00 +0200

> Date: Sat, 11 Nov 2017 13:57:33 -0800 (PST)
> From: Drew Adams <[email-masked]>
> 
> 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.