From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#35381: 26.2; nxml-mode doesn't fontify attributes in single quotes Date: Wed, 24 Apr 2019 22:24:57 -0400 Message-ID: <87mukerfd2.fsf@gmail.com> References: <87imv6rpig.fsf@gmail.com> <87v9z4qjit.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="143722"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 35381@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 25 04:26:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJU5d-000bDB-CB for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 04:26:21 +0200 Original-Received: from localhost ([127.0.0.1]:50008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJU5c-0004lt-Cr for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 22:26:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJU5M-0004a9-Vk for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 22:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJU5L-0005J4-52 for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 22:26:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43470) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJU5K-0005Ic-VE for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 22:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJU5J-00021F-VQ for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 22:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Apr 2019 02:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35381 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35381-submit@debbugs.gnu.org id=B35381.15561591077687 (code B ref 35381); Thu, 25 Apr 2019 02:26:01 +0000 Original-Received: (at 35381) by debbugs.gnu.org; 25 Apr 2019 02:25:07 +0000 Original-Received: from localhost ([127.0.0.1]:57011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJU4Q-0001zu-Vy for submit@debbugs.gnu.org; Wed, 24 Apr 2019 22:25:07 -0400 Original-Received: from mail-qt1-f178.google.com ([209.85.160.178]:38735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJU4P-0001zG-CY for 35381@debbugs.gnu.org; Wed, 24 Apr 2019 22:25:05 -0400 Original-Received: by mail-qt1-f178.google.com with SMTP id d13so22771716qth.5 for <35381@debbugs.gnu.org>; Wed, 24 Apr 2019 19:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=EVtTIvYbzIEcl6O5Wm1aTOXu+dgQit0XCLH9Uqr8qFg=; b=T65rrt8rbzUbmcLqX4Um1x3xdWJXXhrvES229mx86FHGKUYN32TfemEEIanD/zTNuK cGCYrpixVxuaE7VT6Hcin803omukrI+zIrBA+oJpYbHr04T8PT9j7KCZyHDEiPmLqWfo hWOyqi3i4t/ZbEtO+qmrUL1EqGjfmiMjZsOxtEuzK94hnSaWNuiIu57FAqIIfvQMsRag lxX0EXVA//mvVj22cPOwb4S7JfElBSLcJQKPNCeO7S2zQ95DYPVdo/1GGeA23sOzXDtd 4eGz1sspviBM+L2wOjaQ5PinPx+zpT3W8w4bPo+rPW3NZPILYPUtMWnlAKJvXMT3h9FD jWdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=EVtTIvYbzIEcl6O5Wm1aTOXu+dgQit0XCLH9Uqr8qFg=; b=Ta1S+IObH695SU551KSR1haaxMBZKwQDF0KSVl0xLbqu0Wo5mSLOUXmbwLWtGlZDbC aKVNWJ8uKKNh2WaWXFWmHw3FpsRdTKU6F1W7WWBTH1f7tXMCpSMZFohx1prtqnjbSiOX G/W4ay9ZYeWXIUhWJrDVx5q85tJy2jtZZ3o/xt6UnpBRK6Adiwrv6kfLlUFyH+XHHm8I aWVcSRiJntmXI1UFirbb7b0kWmwtjGZ/vJbU/S2ujAJXbMIPbBaYO0zZE7yMCHPHAK+R N+XIuPpVLce+UL0NTQX3JIRNkoHKXYBo/hmOsHk5lWCj6I04zvw1BPzG87uXw9eTT1Uy Cz5Q== X-Gm-Message-State: APjAAAVR+xDDxolU8qEJHKp+EU6d2fVqqklwU+HE8SM8OeZh6pmBdoCX 20PQIP7h6Byl6iqrYeuFS9f39Llm X-Google-Smtp-Source: APXvYqz8sPa/Es1DxgaVNGsaQOqrQEknMaP43B93s9u1i9ZX9WYj1V/qC9MMq0MUJw4SR79brzeDkA== X-Received: by 2002:ac8:3773:: with SMTP id p48mr18260130qtb.381.1556159099626; Wed, 24 Apr 2019 19:24:59 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e4sm10953071qtb.61.2019.04.24.19.24.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2019 19:24:59 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 24 Apr 2019 10:52:01 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158220 Archived-At: Stefan Monnier 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.")