From unknown Sat Jun 14 19:40:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23297: [PATCH] Add HTML5 tags to HTML mode Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Apr 2016 15:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 23297@debbugs.gnu.org Cc: Stefan Monnier X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146073502516939 (code B ref -1); Fri, 15 Apr 2016 15:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Apr 2016 15:43:45 +0000 Received: from localhost ([127.0.0.1]:36885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar5uK-0004P9-SL for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar5uJ-0004Ot-GP for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar5uD-0003vR-3e for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar5uC-0003vK-W6 for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar5uB-0001kZ-Fi for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 11:43:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar5u7-0003uC-DC for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 11:43:35 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:38191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar5u7-0003tt-0p for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 11:43:31 -0400 Received: by mail-wm0-x231.google.com with SMTP id u206so38134514wme.1 for ; Fri, 15 Apr 2016 08:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:mime-version; bh=pRduAab0ZqNQLJSUwzkJ/XpsJOjEOBW+Cuxp1BIk1C8=; b=j7TCN+RAB96vDsv6Rv1kla4BPjWAnOdmaqMCc6063r/dyUQnX8XwaKazWTW4GLbs40 NYFcRroQ8HMt7TJlhajCmq2YydB9WwChGo+/U1sHNFPzpdtRNHoqj6vg0DRo/N00vGYH pIGs+8ptfRo60s8iWjnHnA0axJXqD/RTrTp3p4MEqjPFVhQJJ61MvSzjKdDqlxoNyYm1 Lq1b0tkFNe0PXj5YhFKDB+F4ViL3DjddplAXbIrYHbVLz2+/vHY4fzIcY7TgzG//JiBy 55PCnS2kbnfj+6WivZwcUI/sDJtmgMIke0gdj0HQ7a2XmVL4gPSzuV5Mh44GhSCRvFiN HzyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:cc:message-id:mime-version; bh=pRduAab0ZqNQLJSUwzkJ/XpsJOjEOBW+Cuxp1BIk1C8=; b=dPkChw2QuDCIvg+GLq9bq/OsJXmtwxYfbI9vA2IyvuZo6HV3v9dlhPaF7kVkZo13a3 OMU/Mu5G7Ojwha2RB8two3tJtOS/+tdqGi/dT/OBr2/dIW+ExkrnzMayG3grvuXwFowx sZhfmJvzaY9voyWsxczSnvs2/U9I9Afc8X94tOci80Vk3i6KNzKdGWV8H1CoTl6NwyM6 n078WXoyw1CQytOLQWQUGFK9D3ZO8Ieexl82hqI/ZbK+EcXU8UNiyb8ynwX9Uw4R//z+ mCpdkJ4niUk/6GnnojYNrAFdBWbJG1vC5aEbp0GEZyTokWzwmsro2uI2+TpszIHW+7yd upHg== X-Gm-Message-State: AOPr4FVFnm9wWHEAqNmabsEHCQbZV30haaoU457LFm83cPewZPA593oF+IiLG4W5EFyWqw== X-Received: by 10.194.170.201 with SMTP id ao9mr11163283wjc.100.1460735010177; Fri, 15 Apr 2016 08:43:30 -0700 (PDT) Received: from [192.168.101.25] ([77.40.215.202]) by smtp.gmail.com with ESMTPSA id kj9sm49653008wjb.14.2016.04.15.08.43.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Apr 2016 08:43:29 -0700 (PDT) Date: Fri, 15 Apr 2016 17:43:27 +0200 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Message-Id: <1460735007.2242.3@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-4CvRIXXG8k5JcQKSV/Vi" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-4CvRIXXG8k5JcQKSV/Vi Content-Type: multipart/alternative; boundary="=-+mh/DA+PnshLA9VEwyc0" --=-+mh/DA+PnshLA9VEwyc0 Content-Type: text/plain; charset=utf-8; format=flowed The attached patch adds a bunch of HTML5 tags to `html-tag-alist' and descriptions of those to `html-tag-help'. This will benefit CSS mode in the future, since I'm planning to let it use `html-tag-alist' to provide completion candidates for HTML tags in CSS selectors. -- Simen --=-+mh/DA+PnshLA9VEwyc0 Content-Type: text/html; charset=utf-8
The attached patch adds a bunch of HTML5 tags to `html-tag-alist' and
descriptions of those to `html-tag-help'.

This will benefit CSS mode in the future, since I'm planning to let it
use `html-tag-alist' to provide completion candidates for HTML tags in
CSS selectors.

-- Simen
--=-+mh/DA+PnshLA9VEwyc0-- --=-4CvRIXXG8k5JcQKSV/Vi Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-HTML5-tags-to-HTML-mode.patch >From 2030bca157d51df4ddc3e5c3e4d14f30d9061f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Fri, 15 Apr 2016 17:36:10 +0200 Subject: [PATCH] Add HTML5 tags to HTML mode * lisp/textmodes/sgml-mode.el (html-tag-alist): Add HTML5 tags. (html-tag-help): Add short descriptions of those tags. --- lisp/textmodes/sgml-mode.el | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 0937c00..990c09b 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1818,6 +1818,8 @@ html-tag-alist ("col" t ,@cellhalign ,@cellvalign ("span") ("width")) ("colgroup" \n ,@cellhalign ,@cellvalign ("span") ("width")) ("dir" ,@list) + ("figcaption") + ("figure" \n) ("font" nil "size" ("-1") ("+1") ("-2") ("+2") ,@1-7) ("form" (\n _ \n "" ">")) @@ -1872,7 +1874,13 @@ html-tag-alist ("article" \n) ("aside" \n) ("au") + ("audio" \n + ("src") ("crossorigin" ("anonymous") ("use-credentials")) + ("preload" ("none") ("metadata") ("auto")) + ("autoplay" "autoplay") ("mediagroup") ("loop" "loop") + ("muted" "muted") ("controls" "controls")) ("b") + ("bdi") ("bdo" nil ("lang") ("dir" ("ltr") ("rtl"))) ("big") ("blink") @@ -1885,10 +1893,12 @@ html-tag-alist ("type" ("submit") ("reset") ("button")) ("disabled" "disabled") ("tabindex") ("accesskey") ("onfocus") ("onblur")) + ("canvas" \n ("width") ("height")) ("caption" ("valign" ("top") ("bottom"))) ("center" \n) ("cite") ("code" \n) + ("datalist" \n) ("dd" ,(not sgml-xml-mode)) ("del" nil ("cite") ("datetime")) ("dfn") @@ -1900,6 +1910,7 @@ html-tag-alist ("dt" (t _ (if sgml-xml-mode "") "
" (if sgml-xml-mode "
") \n)) ("em") + ("embed" t ("src") ("type") ("width") ("height")) ("fieldset" \n) ("fn" "id" "fn") ;; Footnotes were deprecated in HTML 3.2 ("footer" \n) @@ -1928,9 +1939,13 @@ html-tag-alist ("lang") ("legend" nil ("accesskey")) ("li" ,(not sgml-xml-mode)) + ("main" \n) ("map" \n ("name")) + ("mark") ("math" \n) ("meta" t ("http-equiv") ("name") ("content") ("scheme")) + ("meter" nil ("value") ("min") ("max") ("low") ("high") + ("optimum")) ("nav" \n) ("nobr") ("noframes" \n) @@ -1942,18 +1957,24 @@ html-tag-alist ("disabled" "disabled") ("tabindex") ("onfocus") ("onblur") ("onchange")) ("option" t ("value") ("label") ("selected" t)) + ("output" nil ("for") ("form") ("name")) ("over" t) ("param" t ("name") ("value") ("valuetype" ("data") ("ref") ("object")) ("type")) ("person") ;; Tag for person's name tag deprecated in HTML 3.2 ("pre" \n) + ("progress" nil ("value") ("max")) ("q" nil ("cite")) ("rev") + ("rp" t) + ("rt" t) + ("ruby") ("s") ("samp") ("script" nil ("charset") ("type") ("src") ("defer" "defer")) ("section" \n) ("small") + ("source" t ("src") ("type") ("media")) ("span" nil ("class" ("builtin") @@ -1968,12 +1989,23 @@ html-tag-alist ("strong") ("style" \n ("type") ("media") ("title")) ("sub") + ("summary") ("sup") + ("time" nil ("datetime")) ("title") ("tr" t) + ("track" t + ("kind" ("subtitles") ("captions") ("descriptions") + ("chapters") ("metadata")) + ("src") ("srclang") ("label") ("default")) ("tt") ("u") ("var") + ("video" \n + ("src") ("crossorigin" ("anonymous") ("use-credentials")) + ("poster") ("preload" ("none") ("metadata") ("auto")) + ("autoplay" "autoplay") ("mediagroup") ("loop" "loop") + ("muted" "muted") ("controls" "controls") ("width") ("height")) ("wbr" t))) "Value of `sgml-tag-alist' for HTML mode.") @@ -1988,8 +2020,10 @@ html-tag-help ("article" . "An independent part of document or site") ("aside" . "Secondary content related to surrounding content (e.g. page or article)") ("au" . "Author") + ("audio" . "Sound or audio stream") ("b" . "Bold face") ("base" . "Base address for URLs") + ("bdi" . "Text isolated for bidirectional formatting") ("bdo" . "Override text directionality") ("big" . "Font size") ("blink" . "Blinking text") @@ -1998,6 +2032,7 @@ html-tag-help ("box" . "Math fraction") ("br" . "Line break") ("button" . "Clickable button") + ("canvas" . "Script generated graphics canvas") ("caption" . "Table caption") ("center" . "Centered text") ("changed" . "Change bars") @@ -2005,6 +2040,7 @@ html-tag-help ("code" . "Formatted source code") ("col" . "Group of attribute specifications for table columns") ("colgroup" . "Group of columns") + ("datalist" . "A set of predefined options") ("dd" . "Definition of term") ("del" . "Deleted text") ("dfn" . "Defining instance of a term") @@ -2017,8 +2053,10 @@ html-tag-help ("fieldset" . "Group of related controls and labels") ("fig" . "Figure") ("figa" . "Figure anchor") + ("figcaption" . "Caption for a figure") ("figd" . "Figure description") ("figt" . "Figure text") + ("figure" . "Self-contained content, often with a caption") ("fn" . "Footnote") ;; No one supports special footnote rendering. ("font" . "Font size") ("footer" . "Footer of a section") @@ -2049,10 +2087,13 @@ html-tag-help ("legend" . "Caption for a fieldset") ("li" . "List item") ("link" . "Link relationship") + ("main" . "Main content of the document body") ("map" . "Image map (a clickable link area") + ("mark" . "Highlighted text") ("math" . "Math formula") ("menu" . "List of commands") ("meta" . "Document properties") + ("meter" . "Scalar measurement within a known range") ("mh" . "Form mail header") ("nav" . "Group of navigational links") ("nextid" . "Allocate new id") @@ -2063,25 +2104,32 @@ html-tag-help ("ol" . "Ordered list") ("optgroup" . "Group of options") ("option" . "Selection list item") + ("output" . "Result of a calculation or user action") ("over" . "Math fraction rule") ("p" . "Paragraph start") ("panel" . "Floating panel") ("param" . "Parameters for an object") ("person" . "Person's name") ("pre" . "Preformatted fixed width text") + ("progress" . "Completion progress of a task") ("q" . "Quotation") ("rev" . "Reverse video") + ("rp" . "Fallback text for when ruby annotations aren't supported") + ("rt" . "Ruby text component of a ruby annotation") + ("ruby" . "Ruby annotation") ("s" . "Strikeout") ("samp" . "Sample text") ("script" . "Executable script within a document") ("section" . "Section of a document") ("select" . "Selection list") ("small" . "Font size") + ("source" . "Media resource for media elements") ("sp" . "Nobreak space") ("span" . "Generic inline container") ("strong" . "Standout text") ("style" . "Style information") ("sub" . "Subscript") + ("summary" . "Summary, caption, or legend") ("sup" . "Superscript") ("table" . "Table with rows and columns") ("tb" . "Table vertical break") @@ -2091,12 +2139,15 @@ html-tag-help ("tfoot" . "Table foot") ("th" . "Table header cell") ("thead" . "Table head") + ("time" . "Content with optional machine-readable timestamp") ("title" . "Document title") ("tr" . "Table row separator") + ("track" . "Timed text track for media elements") ("tt" . "Typewriter face") ("u" . "Underlined text") ("ul" . "Unordered list") ("var" . "Math variable face") + ("video" . "Video or movie") ("wbr" . "Enable
within ")) "Value of variable `sgml-tag-help' for HTML mode.") -- 2.8.0.rc3 --=-4CvRIXXG8k5JcQKSV/Vi-- From unknown Sat Jun 14 19:40:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23297: [PATCH] Add HTML5 tags to HTML mode Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Apr 2016 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Cc: 23297@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14607486655148 (code B ref -1); Fri, 15 Apr 2016 19:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Apr 2016 19:31:05 +0000 Received: from localhost ([127.0.0.1]:36927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9SL-0001Kx-Jr for submit@debbugs.gnu.org; Fri, 15 Apr 2016 15:31:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9SK-0001KQ-3y for submit@debbugs.gnu.org; Fri, 15 Apr 2016 15:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar9SA-00059q-1n for submit@debbugs.gnu.org; Fri, 15 Apr 2016 15:30:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar9S9-00059f-SZ for submit@debbugs.gnu.org; Fri, 15 Apr 2016 15:30:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar9S5-0005hE-Lz for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 15:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar9Ru-0004ww-Cb for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 15:30:47 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:53212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar9Ru-0004vm-1c for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 15:30:38 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.7) with ESMTP id u3FJU6PV021903; Fri, 15 Apr 2016 15:30:06 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 23F88661DB; Fri, 15 Apr 2016 15:30:46 -0400 (EDT) From: Stefan Monnier Message-ID: References: <1460735007.2242.3@smtp.gmail.com> Date: Fri, 15 Apr 2016 15:30:46 -0400 In-Reply-To: <1460735007.2242.3@smtp.gmail.com> ("Simen =?UTF-8?Q?Heggest=C3=B8yl?="'s message of "Fri, 15 Apr 2016 17:43:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5643=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5643> : inlines <4683> : streams <1619886> : uri <2188178> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) > The attached patch adds a bunch of HTML5 tags to `html-tag-alist' and > descriptions of those to `html-tag-help'. Looks fine to me. It'd be great to extract that from the relaxng compact schema, tho (i.e. use nxml). Stefan From unknown Sat Jun 14 19:40:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Subject: bug#23297: closed (Re: bug#23297: [PATCH] Add HTML5 tags to HTML mode) Message-ID: References: <1460914855.3803.0@smtp.gmail.com> <1460735007.2242.3@smtp.gmail.com> X-Gnu-PR-Message: they-closed 23297 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 23297@debbugs.gnu.org Date: Sun, 17 Apr 2016 17:42:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1460914923-20023-1" This is a multi-part message in MIME format... ------------=_1460914923-20023-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23297: [PATCH] Add HTML5 tags to HTML mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23297@debbugs.gnu.org. --=20 23297: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23297 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1460914923-20023-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23297-done) by debbugs.gnu.org; 17 Apr 2016 17:41:04 +0000 Received: from localhost ([127.0.0.1]:38629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arqgy-0005BU-K8 for submit@debbugs.gnu.org; Sun, 17 Apr 2016 13:41:04 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:33256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arqgx-0005At-Jo for 23297-done@debbugs.gnu.org; Sun, 17 Apr 2016 13:41:04 -0400 Received: by mail-lf0-f41.google.com with SMTP id e190so194163158lfe.0 for <23297-done@debbugs.gnu.org>; Sun, 17 Apr 2016 10:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=0nf8epoWcAfgCHwAocqWNxglUqXESWqDRwqSOBqPWEI=; b=mT7ZE7HWiGnr7pRhKF/JIejfdPZvanH5Uf+S7lgaJNaNfI3JZ1YHZm1gnu9fODK8BM oGNdFIG2EJG52UI6DqCZ2BhpcRM8plNdzlrE5HNAWA0V1zimJdCJNfyUIf6lp23zy74f YcRbmW9HHhac2rAZp2clG9TsVQivVmZo3aohGfqyNXL7BB4sZT7IFwXhhLZh+du2M7Az N5mKfcoQJPE1iDfd9wwYLxn/sfWE1CpTSBBeQ5bbkRBwL/1dD9tW0zNEoevUYEeAcf9w ytpeAG9Bb5PWymYij42gqKxjYrztaTlQS7bTxwgaMDkb/bShL3sCbEHyvdRmS0Ww6Y1a 0ipw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=0nf8epoWcAfgCHwAocqWNxglUqXESWqDRwqSOBqPWEI=; b=GAFQgdQ3eoBqUlsnydDr+V766OD9eer88L6/UHuWP/O0jvjrv+KGH/jyjHv/tQWfed PwcR0Y402jl6WU/QxVSqFUOtHPElgS591QpZs6gzGAXOoXZ/wYtXUUBWqk0W8ouDY5dR krNqj4eQHuy7sitjKLmw09GLg1RLPp7tFas1uNtKIHZOTjuBy9OacDrFbiejKnh/2CRh iVrUqDkpIllHt4HjzNtaU8Tx55HwtQlRjJ82PKTJLktWJ3BpttqsD99NIU7eBe216xF/ 5kjRMZJtLipmVPp8isa2auC4TrcpmYVjCYalkwkYMNSr3xcPpuF2sGfDprbiTnIBn+UI Z8Cg== X-Gm-Message-State: AOPr4FVG/Fwc0aDN3Rb/hyoVmETyqP1b6uxzbj/hmJHC7+u8LZTKL/L95s9kmamjGgvbmg== X-Received: by 10.112.30.163 with SMTP id t3mr13526460lbh.15.1460914857594; Sun, 17 Apr 2016 10:40:57 -0700 (PDT) Received: from [192.168.100.5] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id e141sm9820184lfe.18.2016.04.17.10.40.56 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Apr 2016 10:40:57 -0700 (PDT) Date: Sun, 17 Apr 2016 19:40:55 +0200 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: Re: bug#23297: [PATCH] Add HTML5 tags to HTML mode To: Stefan Monnier Message-Id: <1460914855.3803.0@smtp.gmail.com> In-Reply-To: References: <1460735007.2242.3@smtp.gmail.com> <=?ISO-8859-1?Q?1460735007.2242.3@smtp.gmail.com> <"Simen_Heggest=F8?= =?ISO-8859-1?Q?yl"'s_message_of_"Fri, _15_Apr_2016_17:43:27_+0200"> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-9xnFc354gaO5sRAPdHCT" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 23297-done Cc: 23297-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-9xnFc354gaO5sRAPdHCT Content-Type: text/plain; charset=utf-8; format=flowed On Fri, Apr 15, 2016 at 9:30 PM, Stefan Monnier wrote: > Looks fine to me. Thanks, installed in master. > It'd be great to extract that from the relaxng compact schema, tho > (i.e. use nxml). I don't understand what that means. Could you elaborate? -- Simen --=-9xnFc354gaO5sRAPdHCT Content-Type: text/html; charset=utf-8 On Fri, Apr 15, 2016 at 9:30 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
Looks fine to me.

Thanks, installed in master.

It'd be great to extract that from the relaxng compact schema, tho (i.e. use nxml).

I don't understand what that means. Could you elaborate?

-- Simen
--=-9xnFc354gaO5sRAPdHCT-- ------------=_1460914923-20023-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Apr 2016 15:43:45 +0000 Received: from localhost ([127.0.0.1]:36885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar5uK-0004P9-SL for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar5uJ-0004Ot-GP for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar5uD-0003vR-3e for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar5uC-0003vK-W6 for submit@debbugs.gnu.org; Fri, 15 Apr 2016 11:43:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar5uB-0001kZ-Fi for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 11:43:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar5u7-0003uC-DC for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 11:43:35 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:38191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar5u7-0003tt-0p for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 11:43:31 -0400 Received: by mail-wm0-x231.google.com with SMTP id u206so38134514wme.1 for ; Fri, 15 Apr 2016 08:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:mime-version; bh=pRduAab0ZqNQLJSUwzkJ/XpsJOjEOBW+Cuxp1BIk1C8=; b=j7TCN+RAB96vDsv6Rv1kla4BPjWAnOdmaqMCc6063r/dyUQnX8XwaKazWTW4GLbs40 NYFcRroQ8HMt7TJlhajCmq2YydB9WwChGo+/U1sHNFPzpdtRNHoqj6vg0DRo/N00vGYH pIGs+8ptfRo60s8iWjnHnA0axJXqD/RTrTp3p4MEqjPFVhQJJ61MvSzjKdDqlxoNyYm1 Lq1b0tkFNe0PXj5YhFKDB+F4ViL3DjddplAXbIrYHbVLz2+/vHY4fzIcY7TgzG//JiBy 55PCnS2kbnfj+6WivZwcUI/sDJtmgMIke0gdj0HQ7a2XmVL4gPSzuV5Mh44GhSCRvFiN HzyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:cc:message-id:mime-version; bh=pRduAab0ZqNQLJSUwzkJ/XpsJOjEOBW+Cuxp1BIk1C8=; b=dPkChw2QuDCIvg+GLq9bq/OsJXmtwxYfbI9vA2IyvuZo6HV3v9dlhPaF7kVkZo13a3 OMU/Mu5G7Ojwha2RB8two3tJtOS/+tdqGi/dT/OBr2/dIW+ExkrnzMayG3grvuXwFowx sZhfmJvzaY9voyWsxczSnvs2/U9I9Afc8X94tOci80Vk3i6KNzKdGWV8H1CoTl6NwyM6 n078WXoyw1CQytOLQWQUGFK9D3ZO8Ieexl82hqI/ZbK+EcXU8UNiyb8ynwX9Uw4R//z+ mCpdkJ4niUk/6GnnojYNrAFdBWbJG1vC5aEbp0GEZyTokWzwmsro2uI2+TpszIHW+7yd upHg== X-Gm-Message-State: AOPr4FVFnm9wWHEAqNmabsEHCQbZV30haaoU457LFm83cPewZPA593oF+IiLG4W5EFyWqw== X-Received: by 10.194.170.201 with SMTP id ao9mr11163283wjc.100.1460735010177; Fri, 15 Apr 2016 08:43:30 -0700 (PDT) Received: from [192.168.101.25] ([77.40.215.202]) by smtp.gmail.com with ESMTPSA id kj9sm49653008wjb.14.2016.04.15.08.43.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Apr 2016 08:43:29 -0700 (PDT) Date: Fri, 15 Apr 2016 17:43:27 +0200 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: [PATCH] Add HTML5 tags to HTML mode To: bug-gnu-emacs@gnu.org Message-Id: <1460735007.2242.3@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-4CvRIXXG8k5JcQKSV/Vi" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-4CvRIXXG8k5JcQKSV/Vi Content-Type: multipart/alternative; boundary="=-+mh/DA+PnshLA9VEwyc0" --=-+mh/DA+PnshLA9VEwyc0 Content-Type: text/plain; charset=utf-8; format=flowed The attached patch adds a bunch of HTML5 tags to `html-tag-alist' and descriptions of those to `html-tag-help'. This will benefit CSS mode in the future, since I'm planning to let it use `html-tag-alist' to provide completion candidates for HTML tags in CSS selectors. -- Simen --=-+mh/DA+PnshLA9VEwyc0 Content-Type: text/html; charset=utf-8
The attached patch adds a bunch of HTML5 tags to `html-tag-alist' and
descriptions of those to `html-tag-help'.

This will benefit CSS mode in the future, since I'm planning to let it
use `html-tag-alist' to provide completion candidates for HTML tags in
CSS selectors.

-- Simen
--=-+mh/DA+PnshLA9VEwyc0-- --=-4CvRIXXG8k5JcQKSV/Vi Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-HTML5-tags-to-HTML-mode.patch >From 2030bca157d51df4ddc3e5c3e4d14f30d9061f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Fri, 15 Apr 2016 17:36:10 +0200 Subject: [PATCH] Add HTML5 tags to HTML mode * lisp/textmodes/sgml-mode.el (html-tag-alist): Add HTML5 tags. (html-tag-help): Add short descriptions of those tags. --- lisp/textmodes/sgml-mode.el | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 0937c00..990c09b 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1818,6 +1818,8 @@ html-tag-alist ("col" t ,@cellhalign ,@cellvalign ("span") ("width")) ("colgroup" \n ,@cellhalign ,@cellvalign ("span") ("width")) ("dir" ,@list) + ("figcaption") + ("figure" \n) ("font" nil "size" ("-1") ("+1") ("-2") ("+2") ,@1-7) ("form" (\n _ \n "" ">")) @@ -1872,7 +1874,13 @@ html-tag-alist ("article" \n) ("aside" \n) ("au") + ("audio" \n + ("src") ("crossorigin" ("anonymous") ("use-credentials")) + ("preload" ("none") ("metadata") ("auto")) + ("autoplay" "autoplay") ("mediagroup") ("loop" "loop") + ("muted" "muted") ("controls" "controls")) ("b") + ("bdi") ("bdo" nil ("lang") ("dir" ("ltr") ("rtl"))) ("big") ("blink") @@ -1885,10 +1893,12 @@ html-tag-alist ("type" ("submit") ("reset") ("button")) ("disabled" "disabled") ("tabindex") ("accesskey") ("onfocus") ("onblur")) + ("canvas" \n ("width") ("height")) ("caption" ("valign" ("top") ("bottom"))) ("center" \n) ("cite") ("code" \n) + ("datalist" \n) ("dd" ,(not sgml-xml-mode)) ("del" nil ("cite") ("datetime")) ("dfn") @@ -1900,6 +1910,7 @@ html-tag-alist ("dt" (t _ (if sgml-xml-mode "") "
" (if sgml-xml-mode "
") \n)) ("em") + ("embed" t ("src") ("type") ("width") ("height")) ("fieldset" \n) ("fn" "id" "fn") ;; Footnotes were deprecated in HTML 3.2 ("footer" \n) @@ -1928,9 +1939,13 @@ html-tag-alist ("lang") ("legend" nil ("accesskey")) ("li" ,(not sgml-xml-mode)) + ("main" \n) ("map" \n ("name")) + ("mark") ("math" \n) ("meta" t ("http-equiv") ("name") ("content") ("scheme")) + ("meter" nil ("value") ("min") ("max") ("low") ("high") + ("optimum")) ("nav" \n) ("nobr") ("noframes" \n) @@ -1942,18 +1957,24 @@ html-tag-alist ("disabled" "disabled") ("tabindex") ("onfocus") ("onblur") ("onchange")) ("option" t ("value") ("label") ("selected" t)) + ("output" nil ("for") ("form") ("name")) ("over" t) ("param" t ("name") ("value") ("valuetype" ("data") ("ref") ("object")) ("type")) ("person") ;; Tag for person's name tag deprecated in HTML 3.2 ("pre" \n) + ("progress" nil ("value") ("max")) ("q" nil ("cite")) ("rev") + ("rp" t) + ("rt" t) + ("ruby") ("s") ("samp") ("script" nil ("charset") ("type") ("src") ("defer" "defer")) ("section" \n) ("small") + ("source" t ("src") ("type") ("media")) ("span" nil ("class" ("builtin") @@ -1968,12 +1989,23 @@ html-tag-alist ("strong") ("style" \n ("type") ("media") ("title")) ("sub") + ("summary") ("sup") + ("time" nil ("datetime")) ("title") ("tr" t) + ("track" t + ("kind" ("subtitles") ("captions") ("descriptions") + ("chapters") ("metadata")) + ("src") ("srclang") ("label") ("default")) ("tt") ("u") ("var") + ("video" \n + ("src") ("crossorigin" ("anonymous") ("use-credentials")) + ("poster") ("preload" ("none") ("metadata") ("auto")) + ("autoplay" "autoplay") ("mediagroup") ("loop" "loop") + ("muted" "muted") ("controls" "controls") ("width") ("height")) ("wbr" t))) "Value of `sgml-tag-alist' for HTML mode.") @@ -1988,8 +2020,10 @@ html-tag-help ("article" . "An independent part of document or site") ("aside" . "Secondary content related to surrounding content (e.g. page or article)") ("au" . "Author") + ("audio" . "Sound or audio stream") ("b" . "Bold face") ("base" . "Base address for URLs") + ("bdi" . "Text isolated for bidirectional formatting") ("bdo" . "Override text directionality") ("big" . "Font size") ("blink" . "Blinking text") @@ -1998,6 +2032,7 @@ html-tag-help ("box" . "Math fraction") ("br" . "Line break") ("button" . "Clickable button") + ("canvas" . "Script generated graphics canvas") ("caption" . "Table caption") ("center" . "Centered text") ("changed" . "Change bars") @@ -2005,6 +2040,7 @@ html-tag-help ("code" . "Formatted source code") ("col" . "Group of attribute specifications for table columns") ("colgroup" . "Group of columns") + ("datalist" . "A set of predefined options") ("dd" . "Definition of term") ("del" . "Deleted text") ("dfn" . "Defining instance of a term") @@ -2017,8 +2053,10 @@ html-tag-help ("fieldset" . "Group of related controls and labels") ("fig" . "Figure") ("figa" . "Figure anchor") + ("figcaption" . "Caption for a figure") ("figd" . "Figure description") ("figt" . "Figure text") + ("figure" . "Self-contained content, often with a caption") ("fn" . "Footnote") ;; No one supports special footnote rendering. ("font" . "Font size") ("footer" . "Footer of a section") @@ -2049,10 +2087,13 @@ html-tag-help ("legend" . "Caption for a fieldset") ("li" . "List item") ("link" . "Link relationship") + ("main" . "Main content of the document body") ("map" . "Image map (a clickable link area") + ("mark" . "Highlighted text") ("math" . "Math formula") ("menu" . "List of commands") ("meta" . "Document properties") + ("meter" . "Scalar measurement within a known range") ("mh" . "Form mail header") ("nav" . "Group of navigational links") ("nextid" . "Allocate new id") @@ -2063,25 +2104,32 @@ html-tag-help ("ol" . "Ordered list") ("optgroup" . "Group of options") ("option" . "Selection list item") + ("output" . "Result of a calculation or user action") ("over" . "Math fraction rule") ("p" . "Paragraph start") ("panel" . "Floating panel") ("param" . "Parameters for an object") ("person" . "Person's name") ("pre" . "Preformatted fixed width text") + ("progress" . "Completion progress of a task") ("q" . "Quotation") ("rev" . "Reverse video") + ("rp" . "Fallback text for when ruby annotations aren't supported") + ("rt" . "Ruby text component of a ruby annotation") + ("ruby" . "Ruby annotation") ("s" . "Strikeout") ("samp" . "Sample text") ("script" . "Executable script within a document") ("section" . "Section of a document") ("select" . "Selection list") ("small" . "Font size") + ("source" . "Media resource for media elements") ("sp" . "Nobreak space") ("span" . "Generic inline container") ("strong" . "Standout text") ("style" . "Style information") ("sub" . "Subscript") + ("summary" . "Summary, caption, or legend") ("sup" . "Superscript") ("table" . "Table with rows and columns") ("tb" . "Table vertical break") @@ -2091,12 +2139,15 @@ html-tag-help ("tfoot" . "Table foot") ("th" . "Table header cell") ("thead" . "Table head") + ("time" . "Content with optional machine-readable timestamp") ("title" . "Document title") ("tr" . "Table row separator") + ("track" . "Timed text track for media elements") ("tt" . "Typewriter face") ("u" . "Underlined text") ("ul" . "Unordered list") ("var" . "Math variable face") + ("video" . "Video or movie") ("wbr" . "Enable
within
")) "Value of variable `sgml-tag-help' for HTML mode.") -- 2.8.0.rc3 --=-4CvRIXXG8k5JcQKSV/Vi-- ------------=_1460914923-20023-1-- From unknown Sat Jun 14 19:40:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23297: [PATCH] Add HTML5 tags to HTML mode Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Apr 2016 00:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Cc: 23297-done@debbugs.gnu.org Received: via spool by 23297-done@debbugs.gnu.org id=D23297.146093826029161 (code D ref 23297); Mon, 18 Apr 2016 00:11:02 +0000 Received: (at 23297-done) by debbugs.gnu.org; 18 Apr 2016 00:11:00 +0000 Received: from localhost ([127.0.0.1]:38723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arwmK-0007aG-9h for submit@debbugs.gnu.org; Sun, 17 Apr 2016 20:11:00 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:57873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arwmI-0007a9-V1 for 23297-done@debbugs.gnu.org; Sun, 17 Apr 2016 20:10:59 -0400 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.7) with ESMTP id u3I0ATgH025292; Sun, 17 Apr 2016 20:10:29 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id CEC8BAE0C3; Sun, 17 Apr 2016 20:10:55 -0400 (EDT) From: Stefan Monnier Message-ID: References: <1460735007.2242.3@smtp.gmail.com> <=?ISO-8859-1?Q?1460735007.2242.3@smtp.gmail.com> <1460914855.3803.0@smtp.gmail.com> Date: Sun, 17 Apr 2016 20:10:55 -0400 In-Reply-To: <1460914855.3803.0@smtp.gmail.com> ("Simen =?UTF-8?Q?Heggest=C3=B8yl?="'s message of "Sun, 17 Apr 2016 19:40:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5645=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5645> : inlines <4684> : streams <1621052> : uri <2190052> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >> It'd be great to extract that from the relaxng compact schema, tho >> (i.e. use nxml). > I don't understand what that means. Could you elaborate? The nxml mode knows how to read a relaxng schema which describes the valid grammar of a given kind of XML document. E.g. it can use it to give you things like context-aware completion of xml elements and attributes. Emacs comes with the relaxng schema for HTML4 and there's a relaxng schema for HTML5 in GNU ELPA. So nxml can provide in an automated way most of what's in html-tag-alist. Stefan From unknown Sat Jun 14 19:40:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23297: [PATCH] Add HTML5 tags to HTML mode Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Apr 2016 17:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Monnier Cc: 23297-done@debbugs.gnu.org Received: via spool by 23297-done@debbugs.gnu.org id=D23297.14611747518417 (code D ref 23297); Wed, 20 Apr 2016 17:53:01 +0000 Received: (at 23297-done) by debbugs.gnu.org; 20 Apr 2016 17:52:31 +0000 Received: from localhost ([127.0.0.1]:41615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aswIg-0002Bh-Vp for submit@debbugs.gnu.org; Wed, 20 Apr 2016 13:52:31 -0400 Received: from mail-lf0-f48.google.com ([209.85.215.48]:36695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aswIe-0002BP-G1 for 23297-done@debbugs.gnu.org; Wed, 20 Apr 2016 13:52:29 -0400 Received: by mail-lf0-f48.google.com with SMTP id g184so45668782lfb.3 for <23297-done@debbugs.gnu.org>; Wed, 20 Apr 2016 10:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=U43dEW6+2NyNJtH6aONWfK834AGtVDvcYyQ2itOUKDw=; b=YkF1vYKR5tXoqkW/QUSjFaj0JI2ET1aad6+AWSIQmjJafluGd3ieGDB+6VCol4Domt Ef7v7np1eXisrP9o1Jx4z7g5rnDIR1dPQDCVj+JrIl63EPm0TeHo/ofcW80AG7hSKZy8 7WL27WvXXxs1cxUWqHRTC6Rm0sKRf3xNYjBItO7pCRZMN490zASIpxin+mZatK27idsA 4SphbXg5XAZzCdDvRc0fPaU78+OpIiAb2lx3Fpo+lHQviAN7txoFc3yzrS7g22zksBtj PQI68BoHJP7O3fpIL48dwUi6bGCFafGUD1Pau/X9HSHWSJwLYSkuBxfTq2sNHlFJcORU 1z3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=U43dEW6+2NyNJtH6aONWfK834AGtVDvcYyQ2itOUKDw=; b=BwbfxzBnBMAZ+2Yv/bdMBCpRFzVcyIEM4ne8oAmCymm53DMS8UI8mlT+P8fPKZ/WOq PZX7uk9GS+JMBtIDlbj/hFSdYWxrD/FEnXsQZFOQkZX0krdIyg0+j5wc4jW/M3tdXkKl rMKk80QJF7o5YFMK5+jdUsK0KIkyTXCpJDYBda5fRtKlv6rHaWtiIYVfCXrHf448XPOE y1JHSg6NtdeV/7CfQtqL6JXyDeIRrVpwTry2lU31084P2vsU3u4ajqQHtjLPyRbd5Gq6 7XaLpQNPZod7AkWgSNuO3UFZXmc3vHn2osMn7jQysarIjSThA/VrDJ5XKjNZyOmUkxsg /oFw== X-Gm-Message-State: AOPr4FW4jTDF8Q5c+7pRKWth9TLWhfPaEGn46TNJT0bRD7zIPfn2gnwchO6QPXZa7nQJZA== X-Received: by 10.25.30.206 with SMTP id e197mr4291163lfe.144.1461174742378; Wed, 20 Apr 2016 10:52:22 -0700 (PDT) Received: from [192.168.100.5] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id z21sm1350467lff.0.2016.04.20.10.52.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 10:52:21 -0700 (PDT) Date: Wed, 20 Apr 2016 19:52:20 +0200 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Message-Id: <1461174740.19488.0@smtp.gmail.com> In-Reply-To: References: <1460735007.2242.3@smtp.gmail.com> <=?ISO-8859-1?Q?1460735007.2242.3@smtp.gmail.com> <1460914855.3803.0@smtp.gmail.com> <"Simen =?UTF-8?Q?Heggest=C3=B8yl?="'s message of "Sun, 17 Apr 2016 19:40:55 +0200"> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-5n8lMghMQraVAcG8aQiI" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-5n8lMghMQraVAcG8aQiI Content-Type: text/plain; charset=utf-8; format=flowed On Mon, Apr 18, 2016 at 2:10 AM, Stefan Monnier wrote: > The nxml mode knows how to read a relaxng schema which describes the > valid grammar of a given kind of XML document. E.g. it can use it to > give you things like context-aware completion of xml elements > and attributes. > > Emacs comes with the relaxng schema for HTML4 and there's a relaxng > schema for HTML5 in GNU ELPA. > > So nxml can provide in an automated way most of what's in > html-tag-alist. > > > Stefan I see, thanks for the explanation. It sounds like a good idea. -- Simen --=-5n8lMghMQraVAcG8aQiI Content-Type: text/html; charset=utf-8 On Mon, Apr 18, 2016 at 2:10 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
The nxml mode knows how to read a relaxng schema which describes the valid grammar of a given kind of XML document. E.g. it can use it to give you things like context-aware completion of xml elements and attributes. Emacs comes with the relaxng schema for HTML4 and there's a relaxng schema for HTML5 in GNU ELPA. So nxml can provide in an automated way most of what's in html-tag-alist. Stefan

I see, thanks for the explanation. It sounds like a good idea.

-- Simen
--=-5n8lMghMQraVAcG8aQiI--