aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimen Heggestøyl2016-04-15 17:36:10 +0200
committerSimen Heggestøyl2016-04-17 19:34:26 +0200
commit5f265490b646e43bdaa0c5ce5102172f7b117d84 (patch)
tree477629d78d14df9fd5cb43a69b71056affa076cf
parent84c4cc589ddd5fcd5bf5ca5256727255c4819043 (diff)
downloademacs-5f265490b646e43bdaa0c5ce5102172f7b117d84.tar.gz
emacs-5f265490b646e43bdaa0c5ce5102172f7b117d84.zip
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.
-rw-r--r--lisp/textmodes/sgml-mode.el51
1 files changed, 51 insertions, 0 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 0937c00fbd0..990c09bfda7 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1818,6 +1818,8 @@ This takes effect when first loading the library.")
1818 ("col" t ,@cellhalign ,@cellvalign ("span") ("width")) 1818 ("col" t ,@cellhalign ,@cellvalign ("span") ("width"))
1819 ("colgroup" \n ,@cellhalign ,@cellvalign ("span") ("width")) 1819 ("colgroup" \n ,@cellhalign ,@cellvalign ("span") ("width"))
1820 ("dir" ,@list) 1820 ("dir" ,@list)
1821 ("figcaption")
1822 ("figure" \n)
1821 ("font" nil "size" ("-1") ("+1") ("-2") ("+2") ,@1-7) 1823 ("font" nil "size" ("-1") ("+1") ("-2") ("+2") ,@1-7)
1822 ("form" (\n _ \n "<input type=\"submit\" value=\"\"" 1824 ("form" (\n _ \n "<input type=\"submit\" value=\"\""
1823 (if sgml-xml-mode " />" ">")) 1825 (if sgml-xml-mode " />" ">"))
@@ -1872,7 +1874,13 @@ This takes effect when first loading the library.")
1872 ("article" \n) 1874 ("article" \n)
1873 ("aside" \n) 1875 ("aside" \n)
1874 ("au") 1876 ("au")
1877 ("audio" \n
1878 ("src") ("crossorigin" ("anonymous") ("use-credentials"))
1879 ("preload" ("none") ("metadata") ("auto"))
1880 ("autoplay" "autoplay") ("mediagroup") ("loop" "loop")
1881 ("muted" "muted") ("controls" "controls"))
1875 ("b") 1882 ("b")
1883 ("bdi")
1876 ("bdo" nil ("lang") ("dir" ("ltr") ("rtl"))) 1884 ("bdo" nil ("lang") ("dir" ("ltr") ("rtl")))
1877 ("big") 1885 ("big")
1878 ("blink") 1886 ("blink")
@@ -1885,10 +1893,12 @@ This takes effect when first loading the library.")
1885 ("type" ("submit") ("reset") ("button")) 1893 ("type" ("submit") ("reset") ("button"))
1886 ("disabled" "disabled") 1894 ("disabled" "disabled")
1887 ("tabindex") ("accesskey") ("onfocus") ("onblur")) 1895 ("tabindex") ("accesskey") ("onfocus") ("onblur"))
1896 ("canvas" \n ("width") ("height"))
1888 ("caption" ("valign" ("top") ("bottom"))) 1897 ("caption" ("valign" ("top") ("bottom")))
1889 ("center" \n) 1898 ("center" \n)
1890 ("cite") 1899 ("cite")
1891 ("code" \n) 1900 ("code" \n)
1901 ("datalist" \n)
1892 ("dd" ,(not sgml-xml-mode)) 1902 ("dd" ,(not sgml-xml-mode))
1893 ("del" nil ("cite") ("datetime")) 1903 ("del" nil ("cite") ("datetime"))
1894 ("dfn") 1904 ("dfn")
@@ -1900,6 +1910,7 @@ This takes effect when first loading the library.")
1900 ("dt" (t _ (if sgml-xml-mode "</dt>") 1910 ("dt" (t _ (if sgml-xml-mode "</dt>")
1901 "<dd>" (if sgml-xml-mode "</dd>") \n)) 1911 "<dd>" (if sgml-xml-mode "</dd>") \n))
1902 ("em") 1912 ("em")
1913 ("embed" t ("src") ("type") ("width") ("height"))
1903 ("fieldset" \n) 1914 ("fieldset" \n)
1904 ("fn" "id" "fn") ;; Footnotes were deprecated in HTML 3.2 1915 ("fn" "id" "fn") ;; Footnotes were deprecated in HTML 3.2
1905 ("footer" \n) 1916 ("footer" \n)
@@ -1928,9 +1939,13 @@ This takes effect when first loading the library.")
1928 ("lang") 1939 ("lang")
1929 ("legend" nil ("accesskey")) 1940 ("legend" nil ("accesskey"))
1930 ("li" ,(not sgml-xml-mode)) 1941 ("li" ,(not sgml-xml-mode))
1942 ("main" \n)
1931 ("map" \n ("name")) 1943 ("map" \n ("name"))
1944 ("mark")
1932 ("math" \n) 1945 ("math" \n)
1933 ("meta" t ("http-equiv") ("name") ("content") ("scheme")) 1946 ("meta" t ("http-equiv") ("name") ("content") ("scheme"))
1947 ("meter" nil ("value") ("min") ("max") ("low") ("high")
1948 ("optimum"))
1934 ("nav" \n) 1949 ("nav" \n)
1935 ("nobr") 1950 ("nobr")
1936 ("noframes" \n) 1951 ("noframes" \n)
@@ -1942,18 +1957,24 @@ This takes effect when first loading the library.")
1942 ("disabled" "disabled") ("tabindex") ("onfocus") ("onblur") 1957 ("disabled" "disabled") ("tabindex") ("onfocus") ("onblur")
1943 ("onchange")) 1958 ("onchange"))
1944 ("option" t ("value") ("label") ("selected" t)) 1959 ("option" t ("value") ("label") ("selected" t))
1960 ("output" nil ("for") ("form") ("name"))
1945 ("over" t) 1961 ("over" t)
1946 ("param" t ("name") ("value") 1962 ("param" t ("name") ("value")
1947 ("valuetype" ("data") ("ref") ("object")) ("type")) 1963 ("valuetype" ("data") ("ref") ("object")) ("type"))
1948 ("person") ;; Tag for person's name tag deprecated in HTML 3.2 1964 ("person") ;; Tag for person's name tag deprecated in HTML 3.2
1949 ("pre" \n) 1965 ("pre" \n)
1966 ("progress" nil ("value") ("max"))
1950 ("q" nil ("cite")) 1967 ("q" nil ("cite"))
1951 ("rev") 1968 ("rev")
1969 ("rp" t)
1970 ("rt" t)
1971 ("ruby")
1952 ("s") 1972 ("s")
1953 ("samp") 1973 ("samp")
1954 ("script" nil ("charset") ("type") ("src") ("defer" "defer")) 1974 ("script" nil ("charset") ("type") ("src") ("defer" "defer"))
1955 ("section" \n) 1975 ("section" \n)
1956 ("small") 1976 ("small")
1977 ("source" t ("src") ("type") ("media"))
1957 ("span" nil 1978 ("span" nil
1958 ("class" 1979 ("class"
1959 ("builtin") 1980 ("builtin")
@@ -1968,12 +1989,23 @@ This takes effect when first loading the library.")
1968 ("strong") 1989 ("strong")
1969 ("style" \n ("type") ("media") ("title")) 1990 ("style" \n ("type") ("media") ("title"))
1970 ("sub") 1991 ("sub")
1992 ("summary")
1971 ("sup") 1993 ("sup")
1994 ("time" nil ("datetime"))
1972 ("title") 1995 ("title")
1973 ("tr" t) 1996 ("tr" t)
1997 ("track" t
1998 ("kind" ("subtitles") ("captions") ("descriptions")
1999 ("chapters") ("metadata"))
2000 ("src") ("srclang") ("label") ("default"))
1974 ("tt") 2001 ("tt")
1975 ("u") 2002 ("u")
1976 ("var") 2003 ("var")
2004 ("video" \n
2005 ("src") ("crossorigin" ("anonymous") ("use-credentials"))
2006 ("poster") ("preload" ("none") ("metadata") ("auto"))
2007 ("autoplay" "autoplay") ("mediagroup") ("loop" "loop")
2008 ("muted" "muted") ("controls" "controls") ("width") ("height"))
1977 ("wbr" t))) 2009 ("wbr" t)))
1978 "Value of `sgml-tag-alist' for HTML mode.") 2010 "Value of `sgml-tag-alist' for HTML mode.")
1979 2011
@@ -1988,8 +2020,10 @@ This takes effect when first loading the library.")
1988 ("article" . "An independent part of document or site") 2020 ("article" . "An independent part of document or site")
1989 ("aside" . "Secondary content related to surrounding content (e.g. page or article)") 2021 ("aside" . "Secondary content related to surrounding content (e.g. page or article)")
1990 ("au" . "Author") 2022 ("au" . "Author")
2023 ("audio" . "Sound or audio stream")
1991 ("b" . "Bold face") 2024 ("b" . "Bold face")
1992 ("base" . "Base address for URLs") 2025 ("base" . "Base address for URLs")
2026 ("bdi" . "Text isolated for bidirectional formatting")
1993 ("bdo" . "Override text directionality") 2027 ("bdo" . "Override text directionality")
1994 ("big" . "Font size") 2028 ("big" . "Font size")
1995 ("blink" . "Blinking text") 2029 ("blink" . "Blinking text")
@@ -1998,6 +2032,7 @@ This takes effect when first loading the library.")
1998 ("box" . "Math fraction") 2032 ("box" . "Math fraction")
1999 ("br" . "Line break") 2033 ("br" . "Line break")
2000 ("button" . "Clickable button") 2034 ("button" . "Clickable button")
2035 ("canvas" . "Script generated graphics canvas")
2001 ("caption" . "Table caption") 2036 ("caption" . "Table caption")
2002 ("center" . "Centered text") 2037 ("center" . "Centered text")
2003 ("changed" . "Change bars") 2038 ("changed" . "Change bars")
@@ -2005,6 +2040,7 @@ This takes effect when first loading the library.")
2005 ("code" . "Formatted source code") 2040 ("code" . "Formatted source code")
2006 ("col" . "Group of attribute specifications for table columns") 2041 ("col" . "Group of attribute specifications for table columns")
2007 ("colgroup" . "Group of columns") 2042 ("colgroup" . "Group of columns")
2043 ("datalist" . "A set of predefined options")
2008 ("dd" . "Definition of term") 2044 ("dd" . "Definition of term")
2009 ("del" . "Deleted text") 2045 ("del" . "Deleted text")
2010 ("dfn" . "Defining instance of a term") 2046 ("dfn" . "Defining instance of a term")
@@ -2017,8 +2053,10 @@ This takes effect when first loading the library.")
2017 ("fieldset" . "Group of related controls and labels") 2053 ("fieldset" . "Group of related controls and labels")
2018 ("fig" . "Figure") 2054 ("fig" . "Figure")
2019 ("figa" . "Figure anchor") 2055 ("figa" . "Figure anchor")
2056 ("figcaption" . "Caption for a figure")
2020 ("figd" . "Figure description") 2057 ("figd" . "Figure description")
2021 ("figt" . "Figure text") 2058 ("figt" . "Figure text")
2059 ("figure" . "Self-contained content, often with a caption")
2022 ("fn" . "Footnote") ;; No one supports special footnote rendering. 2060 ("fn" . "Footnote") ;; No one supports special footnote rendering.
2023 ("font" . "Font size") 2061 ("font" . "Font size")
2024 ("footer" . "Footer of a section") 2062 ("footer" . "Footer of a section")
@@ -2049,10 +2087,13 @@ This takes effect when first loading the library.")
2049 ("legend" . "Caption for a fieldset") 2087 ("legend" . "Caption for a fieldset")
2050 ("li" . "List item") 2088 ("li" . "List item")
2051 ("link" . "Link relationship") 2089 ("link" . "Link relationship")
2090 ("main" . "Main content of the document body")
2052 ("map" . "Image map (a clickable link area") 2091 ("map" . "Image map (a clickable link area")
2092 ("mark" . "Highlighted text")
2053 ("math" . "Math formula") 2093 ("math" . "Math formula")
2054 ("menu" . "List of commands") 2094 ("menu" . "List of commands")
2055 ("meta" . "Document properties") 2095 ("meta" . "Document properties")
2096 ("meter" . "Scalar measurement within a known range")
2056 ("mh" . "Form mail header") 2097 ("mh" . "Form mail header")
2057 ("nav" . "Group of navigational links") 2098 ("nav" . "Group of navigational links")
2058 ("nextid" . "Allocate new id") 2099 ("nextid" . "Allocate new id")
@@ -2063,25 +2104,32 @@ This takes effect when first loading the library.")
2063 ("ol" . "Ordered list") 2104 ("ol" . "Ordered list")
2064 ("optgroup" . "Group of options") 2105 ("optgroup" . "Group of options")
2065 ("option" . "Selection list item") 2106 ("option" . "Selection list item")
2107 ("output" . "Result of a calculation or user action")
2066 ("over" . "Math fraction rule") 2108 ("over" . "Math fraction rule")
2067 ("p" . "Paragraph start") 2109 ("p" . "Paragraph start")
2068 ("panel" . "Floating panel") 2110 ("panel" . "Floating panel")
2069 ("param" . "Parameters for an object") 2111 ("param" . "Parameters for an object")
2070 ("person" . "Person's name") 2112 ("person" . "Person's name")
2071 ("pre" . "Preformatted fixed width text") 2113 ("pre" . "Preformatted fixed width text")
2114 ("progress" . "Completion progress of a task")
2072 ("q" . "Quotation") 2115 ("q" . "Quotation")
2073 ("rev" . "Reverse video") 2116 ("rev" . "Reverse video")
2117 ("rp" . "Fallback text for when ruby annotations aren't supported")
2118 ("rt" . "Ruby text component of a ruby annotation")
2119 ("ruby" . "Ruby annotation")
2074 ("s" . "Strikeout") 2120 ("s" . "Strikeout")
2075 ("samp" . "Sample text") 2121 ("samp" . "Sample text")
2076 ("script" . "Executable script within a document") 2122 ("script" . "Executable script within a document")
2077 ("section" . "Section of a document") 2123 ("section" . "Section of a document")
2078 ("select" . "Selection list") 2124 ("select" . "Selection list")
2079 ("small" . "Font size") 2125 ("small" . "Font size")
2126 ("source" . "Media resource for media elements")
2080 ("sp" . "Nobreak space") 2127 ("sp" . "Nobreak space")
2081 ("span" . "Generic inline container") 2128 ("span" . "Generic inline container")
2082 ("strong" . "Standout text") 2129 ("strong" . "Standout text")
2083 ("style" . "Style information") 2130 ("style" . "Style information")
2084 ("sub" . "Subscript") 2131 ("sub" . "Subscript")
2132 ("summary" . "Summary, caption, or legend")
2085 ("sup" . "Superscript") 2133 ("sup" . "Superscript")
2086 ("table" . "Table with rows and columns") 2134 ("table" . "Table with rows and columns")
2087 ("tb" . "Table vertical break") 2135 ("tb" . "Table vertical break")
@@ -2091,12 +2139,15 @@ This takes effect when first loading the library.")
2091 ("tfoot" . "Table foot") 2139 ("tfoot" . "Table foot")
2092 ("th" . "Table header cell") 2140 ("th" . "Table header cell")
2093 ("thead" . "Table head") 2141 ("thead" . "Table head")
2142 ("time" . "Content with optional machine-readable timestamp")
2094 ("title" . "Document title") 2143 ("title" . "Document title")
2095 ("tr" . "Table row separator") 2144 ("tr" . "Table row separator")
2145 ("track" . "Timed text track for media elements")
2096 ("tt" . "Typewriter face") 2146 ("tt" . "Typewriter face")
2097 ("u" . "Underlined text") 2147 ("u" . "Underlined text")
2098 ("ul" . "Unordered list") 2148 ("ul" . "Unordered list")
2099 ("var" . "Math variable face") 2149 ("var" . "Math variable face")
2150 ("video" . "Video or movie")
2100 ("wbr" . "Enable <br> within <nobr>")) 2151 ("wbr" . "Enable <br> within <nobr>"))
2101 "Value of variable `sgml-tag-help' for HTML mode.") 2152 "Value of variable `sgml-tag-help' for HTML mode.")
2102 2153