all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#29263: 26.0.90; Regression in doc-string highlighting
@ 2017-11-11 21:57 Drew Adams
  2017-11-12  5:20 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2017-11-11 21:57 UTC (permalink / raw)
  To: 29263

 (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=142 of 41521 (0%) column=35

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#29263: 26.0.90; Regression in doc-string highlighting
  2017-11-11 21:57 bug#29263: 26.0.90; Regression in doc-string highlighting Drew Adams
@ 2017-11-12  5:20 ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2017-11-12  5:20 UTC (permalink / raw)
  To: Drew Adams; +Cc: 29263

> Date: Sat, 11 Nov 2017 13:57:33 -0800 (PST)
> From: Drew Adams <drew.adams@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#29263: 26.0.90; Regression in doc-string highlighting
       [not found] ` <<83y3ncm5tr.fsf@gnu.org>
@ 2017-11-12  5:31   ` Drew Adams
  2017-11-12  6:08     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2017-11-12  5:31 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: 29263

> The reason will show itself if you move the mouse pointer on those
> backslashes.

I already closed this, immediately after I opened it.
As you no doubt know.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#29263: 26.0.90; Regression in doc-string highlighting
  2017-11-12  5:31   ` Drew Adams
@ 2017-11-12  6:08     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2017-11-12  6:08 UTC (permalink / raw)
  To: Drew Adams; +Cc: 29263

> Date: Sat, 11 Nov 2017 21:31:53 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 29263@debbugs.gnu.org
> 
> I already closed this, immediately after I opened it.
> As you no doubt know.

If you close without any message sent to the bug address, then no, I
don't get any messages when you close it.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-12  6:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-11 21:57 bug#29263: 26.0.90; Regression in doc-string highlighting Drew Adams
2017-11-12  5:20 ` Eli Zaretskii
     [not found] <<1c1ef01a-2739-4f8a-b3c1-103ca80902fa@default>
     [not found] ` <<83y3ncm5tr.fsf@gnu.org>
2017-11-12  5:31   ` Drew Adams
2017-11-12  6:08     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.