GNU bug report logs -
#29263
26.0.90; Regression in doc-string highlighting
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sat, 11 Nov 2017 21:58:01 UTC
Severity: normal
Found in version 26.0.90
Done: Drew Adams <drew.adams <at> oracle.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Sat, 11 Nov 2017 13:57:33 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
>
> 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.
This bug report was last modified 7 years and 275 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.