unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 35381@debbugs.gnu.org
Subject: bug#35381: 26.2; nxml-mode doesn't fontify attributes in single quotes
Date: Wed, 24 Apr 2019 22:24:57 -0400	[thread overview]
Message-ID: <87mukerfd2.fsf@gmail.com> (raw)
In-Reply-To: <jwva7gfqx6a.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 24 Apr 2019 10:52:01 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> +(defvar sgml-specials '(?\" ?\')
>>    "List of characters that have a special meaning for SGML mode.
>>  This list is used when first loading the `sgml-mode' library.
>>  The supported characters and potential disadvantages are:
>
> I think this "disadvantages" part of the docstring is out of date.
> Can you update it while you're at it?
>
> Also, we probably want to mark this var as obsolete.

I'm not sure about this, is the disadvantage of the ?- also out of date?
There's some FIXME on the "--" rule of sgml-syntax-propertize-rules,
 
-;; As long as Emacs's syntax can't be complemented with predicates to context
-;; sensitively confirm the syntax of characters, we have to live with this
-;; kludgy kind of tradeoff.
 (defvar sgml-specials '(?\" ?\')
   "List of characters that have a special meaning for SGML mode.
 This list is used when first loading the `sgml-mode' library.
-The supported characters and potential disadvantages are:
-
-  ?\\\"	Makes \" in text start a string.
-  ?\\='	Makes \\=' in text start a string.
-  ?-	Makes -- in text start a comment.
-
-When only one of ?\\\" or ?\\=' are included, \"\\='\" or \\='\"\\=', as can be found in
-DTDs, start a string.  To partially avoid this problem this also makes these
-self insert as named entities depending on `sgml-quick-keys'.
+The supported characters are ?\\\", ?\\=', and ?-.
 
 Including ?- has the problem of affecting dashes that have nothing to do
 with comments, so we normally turn it off.")






  reply	other threads:[~2019-04-25  2:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-22 16:08 bug#35381: 26.2; nxml-mode doesn't fontify attributes in single quotes Noam Postavsky
2019-04-23 16:09 ` Stefan Monnier
2019-04-24  1:28   ` Noam Postavsky
2019-04-24 14:52     ` Stefan Monnier
2019-04-25  2:24       ` Noam Postavsky [this message]
2019-04-25 12:47         ` Stefan Monnier
2019-04-26 11:32           ` Noam Postavsky
2019-04-29 21:23             ` Stefan Monnier
2019-05-05  3:52               ` Noam Postavsky
2019-05-05 13:06                 ` Stefan Monnier
2019-05-05 13:49                   ` Noam Postavsky
2019-05-05 14:20                     ` martin rudalics
2019-05-05 14:36                       ` Noam Postavsky
2019-05-09 11:45                 ` Noam Postavsky

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87mukerfd2.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=35381@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).