GNU bug report logs - #23297
[PATCH] Add HTML5 tags to HTML mode

Previous Next

Package: emacs;

Reported by: Simen Heggestøyl <simenheg <at> gmail.com>

Date: Fri, 15 Apr 2016 15:44:01 UTC

Severity: minor

Tags: patch

Done: Simen Heggestøyl <simenheg <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23297 in the body.
You can then email your comments to 23297 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23297; Package emacs. (Fri, 15 Apr 2016 15:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simen Heggestøyl <simenheg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 15 Apr 2016 15:44:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simen Heggestøyl <simenheg <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: [PATCH] Add HTML5 tags to HTML mode
Date: Fri, 15 Apr 2016 17:43:27 +0200
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
[0001-Add-HTML5-tags-to-HTML-mode.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23297; Package emacs. (Fri, 15 Apr 2016 19:32:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Simen Heggestøyl <simenheg <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: [PATCH] Add HTML5 tags to HTML mode
Date: Fri, 15 Apr 2016 15:30:46 -0400
> 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




Reply sent to Simen Heggestøyl <simenheg <at> gmail.com>:
You have taken responsibility. (Sun, 17 Apr 2016 17:42:02 GMT) Full text and rfc822 format available.

Notification sent to Simen Heggestøyl <simenheg <at> gmail.com>:
bug acknowledged by developer. (Sun, 17 Apr 2016 17:42:03 GMT) Full text and rfc822 format available.

Message #13 received at 23297-done <at> debbugs.gnu.org (full text, mbox):

From: Simen Heggestøyl <simenheg <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 23297-done <at> debbugs.gnu.org
Subject: Re: bug#23297: [PATCH] Add HTML5 tags to HTML mode
Date: Sun, 17 Apr 2016 19:40:55 +0200
[Message part 1 (text/plain, inline)]
On Fri, Apr 15, 2016 at 9:30 PM, Stefan Monnier 
<monnier <at> 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
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23297; Package emacs. (Mon, 18 Apr 2016 00:11:02 GMT) Full text and rfc822 format available.

Message #16 received at 23297-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Simen Heggestøyl <simenheg <at> gmail.com>
Cc: 23297-done <at> debbugs.gnu.org
Subject: Re: bug#23297: [PATCH] Add HTML5 tags to HTML mode
Date: Sun, 17 Apr 2016 20:10:55 -0400
>> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23297; Package emacs. (Wed, 20 Apr 2016 17:53:01 GMT) Full text and rfc822 format available.

Message #19 received at 23297-done <at> debbugs.gnu.org (full text, mbox):

From: Simen Heggestøyl <simenheg <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 23297-done <at> debbugs.gnu.org
Subject: Re: bug#23297: [PATCH] Add HTML5 tags to HTML mode
Date: Wed, 20 Apr 2016 19:52:20 +0200
[Message part 1 (text/plain, inline)]
On Mon, Apr 18, 2016 at 2:10 AM, Stefan Monnier 
<monnier <at> 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
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 19 May 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.