all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 29263@debbugs.gnu.org
Subject: bug#29263: 26.0.90; Regression in doc-string highlighting
Date: Sat, 11 Nov 2017 13:57:33 -0800 (PST)	[thread overview]
Message-ID: <1c1ef01a-2739-4f8a-b3c1-103ca80902fa@default> (raw)

 (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





             reply	other threads:[~2017-11-11 21:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-11 21:57 Drew Adams [this message]
2017-11-12  5:20 ` bug#29263: 26.0.90; Regression in doc-string highlighting 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c1ef01a-2739-4f8a-b3c1-103ca80902fa@default \
    --to=drew.adams@oracle.com \
    --cc=29263@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.