GNU bug report logs -
#3473
[PATCH] sgml-tag-help fixes for HTML mode
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3473 in the body.
You can then email your comments to 3473 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3473
; Package
emacs
.
(Fri, 05 Jun 2009 04:55:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 05 Jun 2009 04:55:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
I noticed that `C-c ?' in HTML mode doesn't work as it is described in
the Emacs manual, and for a few of the tags that it supports. Some of
the tags lacked descriptions, notably DIV and SPAN. The patch below
tries to rectify both of these.
Here's the Emacs manual's description of `C-c ?':
`C-c ? TAG <RET>'
Display a description of the meaning of tag TAG (`sgml-tag-help').
If the argument TAG is empty, describe the tag at point.
Thanks for Emacs,
/a
Index: sgml-mode.el
===================================================================
2009-06-05 Aaron S. Hawley <aaron.s.hawley <at> gmail.com>
* textmodes/sgml-mode.el (sgml-tag-help): Prompt user for tag as
the documentation describes.
(html-tag-alist, html-tag-help): Add descriptions for undocumented
entries and make note of obsolete tags.
--- sgml-mode.el 9 Jan 2009 04:19:12 -0000 1.139
+++ sgml-mode.el 5 Jun 2009 04:31:18 -0000
@@ -720,8 +720,10 @@
(defun sgml-tag-help (&optional tag)
"Display description of tag TAG. If TAG is omitted, use the tag at point."
- (interactive)
- (or tag
+ (interactive
+ (list (completing-read "Tag: "
+ sgml-tag-alist nil nil nil 'sgml-tag-history)))
+ (or (and tag (> (length tag) 0))
(save-excursion
(if (eq (following-char) ?<)
(forward-char))
@@ -1731,7 +1733,7 @@
("array" (nil \n
("Item: " "<item>" str (if sgml-xml-mode "</item>") \n))
"align")
- ("au")
+ ("au") ;; Cite an author.
("b")
("big")
("blink")
@@ -1755,7 +1757,7 @@
("dt" (t _ (if sgml-xml-mode "</dt>")
"<dd>" (if sgml-xml-mode "</dd>") \n))
("em")
- ;("fn" "id" "fn") ; ???
+ ("fn" "id" "fn") ;; Footnotes were deprecated in HTML 3.2
("head" \n)
("html" (\n
"<head>\n"
@@ -1777,7 +1779,7 @@
("nobr")
("option" t ("value") ("label") ("selected" t))
("over" t)
- ("person")
+ ("person") ;; Tag for person's name tag deprecated in HTML 3.2
("pre" \n)
("q")
("rev")
@@ -1809,11 +1811,11 @@
(defvar html-tag-help
`(,@sgml-tag-help
("a" . "Anchor of point or link elsewhere")
- ("abbrev" . "?")
- ("acronym" . "?")
+ ("abbrev" . "Abbreviation")
+ ("acronym" . "Acronym")
("address" . "Formatted mail address")
("array" . "Math array")
- ("au" . "?")
+ ("au" . "Author")
("b" . "Bold face")
("base" . "Base address for URLs")
("big" . "Font size")
@@ -1828,9 +1830,10 @@
("cite" . "Citation of a document")
("code" . "Formatted source code")
("dd" . "Definition of term")
- ("del" . "?")
- ("dfn" . "?")
+ ("del" . "Deleted text")
+ ("dfn" . "Defining instance of a term")
("dir" . "Directory list (obsolete)")
+ ("div" . "Generic block-level container")
("dl" . "Definition list")
("dt" . "Term to be definined")
("em" . "Emphasized")
@@ -1839,7 +1842,7 @@
("figa" . "Figure anchor")
("figd" . "Figure description")
("figt" . "Figure text")
- ;("fn" . "?") ; ???
+ ("fn" . "Footnote") ;; No one supports special footnote rendering.
("font" . "Font size")
("form" . "Form with input fields")
("group" . "Document grouping")
@@ -1855,7 +1858,7 @@
("i" . "Italic face")
("img" . "Graphic image")
("input" . "Form input field")
- ("ins" . "?")
+ ("ins" . "Inserted text")
("isindex" . "Input field for index search")
("kbd" . "Keybard example face")
("lang" . "Natural language")
@@ -1871,15 +1874,16 @@
("over" . "Math fraction rule")
("p" . "Paragraph start")
("panel" . "Floating panel")
- ("person" . "?")
+ ("person" . "Person's name") ;; Originally for people harvesting.
("pre" . "Preformatted fixed width text")
- ("q" . "?")
+ ("q" . "Quotation")
("rev" . "Reverse video")
- ("s" . "?")
+ ("s" . "Strikeout")
("samp" . "Sample text")
("select" . "Selection list")
("small" . "Font size")
("sp" . "Nobreak space")
+ ("span" . "Generic inline container")
("strong" . "Standout text")
("sub" . "Subscript")
("sup" . "Superscript")
--
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember! Poor computer. -- Guy Lewis Steele Jr.
[sgml-mode.el.diff (application/octet-stream, attachment)]
Reply sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
(Sun, 18 Oct 2009 04:15:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 18 Oct 2009 04:15:04 GMT)
Full text and
rfc822 format available.
Message #10 received at 3473-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> I noticed that `C-c ?' in HTML mode doesn't work as it is described in
> the Emacs manual, and for a few of the tags that it supports. Some of
> the tags lacked descriptions, notably DIV and SPAN. The patch below
> tries to rectify both of these.
Thanks, and sorry for the late reply. I've checked in your patch, with
minor modifications (adding a default argument to completing read).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sun, 15 Nov 2009 15:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 279 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.