aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-15 23:19:40 +0000
committerRichard M. Stallman1996-06-15 23:19:40 +0000
commit7e49eef26e84cd506dda1e697d4388f6cf246669 (patch)
treed45cd81cb415a2a4fb8179315521be786a691d86
parent4131662fb8014d2601411c2f82ee0e05b6b2e65f (diff)
downloademacs-7e49eef26e84cd506dda1e697d4388f6cf246669.tar.gz
emacs-7e49eef26e84cd506dda1e697d4388f6cf246669.zip
(html-list): Definition deleted.
(html-headline): Definition deleted. (html-ordered-list, html-unordered-list): New definitions. (html-headline-1 ... html-headline-6): New definitions. (html-mode-map): Use new commands.
-rw-r--r--lisp/textmodes/sgml-mode.el86
1 files changed, 59 insertions, 27 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index e9f8324ae2c..e3cb71c569e 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -761,17 +761,17 @@ This takes effect when first loading the library.")
761(defvar html-mode-map 761(defvar html-mode-map
762 (let ((map (nconc (make-sparse-keymap) sgml-mode-map)) 762 (let ((map (nconc (make-sparse-keymap) sgml-mode-map))
763 (menu-map (make-sparse-keymap "HTML"))) 763 (menu-map (make-sparse-keymap "HTML")))
764 (define-key map "\C-c6" 'html-headline) 764 (define-key map "\C-c6" 'html-headline-6)
765 (define-key map "\C-c5" 'html-headline) 765 (define-key map "\C-c5" 'html-headline-5)
766 (define-key map "\C-c4" 'html-headline) 766 (define-key map "\C-c4" 'html-headline-4)
767 (define-key map "\C-c3" 'html-headline) 767 (define-key map "\C-c3" 'html-headline-3)
768 (define-key map "\C-c2" 'html-headline) 768 (define-key map "\C-c2" 'html-headline-2)
769 (define-key map "\C-c1" 'html-headline) 769 (define-key map "\C-c1" 'html-headline-1)
770 (define-key map "\C-c\r" 'html-paragraph) 770 (define-key map "\C-c\r" 'html-paragraph)
771 (define-key map "\C-c\n" 'html-line) 771 (define-key map "\C-c\n" 'html-line)
772 (define-key map "\C-c\C-c-" 'html-horizontal-rule) 772 (define-key map "\C-c\C-c-" 'html-horizontal-rule)
773 (define-key map "\C-c\C-co" 'html-list) 773 (define-key map "\C-c\C-co" 'html-ordered-list)
774 (define-key map "\C-c\C-cu" 'html-list) 774 (define-key map "\C-c\C-cu" 'html-unordered-list)
775 (define-key map "\C-c\C-cr" 'html-radio-buttons) 775 (define-key map "\C-c\C-cr" 'html-radio-buttons)
776 (define-key map "\C-c\C-cc" 'html-checkboxes) 776 (define-key map "\C-c\C-cc" 'html-checkboxes)
777 (define-key map "\C-c\C-cl" 'html-list-item) 777 (define-key map "\C-c\C-cl" 'html-list-item)
@@ -781,8 +781,8 @@ This takes effect when first loading the library.")
781 (if html-quick-keys 781 (if html-quick-keys
782 (progn 782 (progn
783 (define-key map "\C-c-" 'html-horizontal-rule) 783 (define-key map "\C-c-" 'html-horizontal-rule)
784 (define-key map "\C-co" 'html-list) 784 (define-key map "\C-co" 'html-ordered-list)
785 (define-key map "\C-cu" 'html-list) 785 (define-key map "\C-cu" 'html-unordered-list)
786 (define-key map "\C-cr" 'html-radio-buttons) 786 (define-key map "\C-cr" 'html-radio-buttons)
787 (define-key map "\C-cc" 'html-checkboxes) 787 (define-key map "\C-cc" 'html-checkboxes)
788 (define-key map "\C-cl" 'html-list-item) 788 (define-key map "\C-cl" 'html-list-item)
@@ -797,17 +797,17 @@ This takes effect when first loading the library.")
797 (define-key menu-map [browse-url-of-buffer] 797 (define-key menu-map [browse-url-of-buffer]
798 '("View Buffer Contents" . browse-url-of-buffer)) 798 '("View Buffer Contents" . browse-url-of-buffer))
799 (define-key menu-map [nil] '("--")) 799 (define-key menu-map [nil] '("--"))
800 ;;(define-key menu-map "6" '("Heading 6" . html-headline)) 800 ;;(define-key menu-map "6" '("Heading 6" . html-headline-6))
801 ;;(define-key menu-map "5" '("Heading 5" . html-headline)) 801 ;;(define-key menu-map "5" '("Heading 5" . html-headline-5))
802 ;;(define-key menu-map "4" '("Heading 4" . html-headline)) 802 ;;(define-key menu-map "4" '("Heading 4" . html-headline-4))
803 (define-key menu-map "3" '("Heading 3" . html-headline)) 803 (define-key menu-map "3" '("Heading 3" . html-headline-3))
804 (define-key menu-map "2" '("Heading 2" . html-headline)) 804 (define-key menu-map "2" '("Heading 2" . html-headline-2))
805 (define-key menu-map "1" '("Heading 1" . html-headline)) 805 (define-key menu-map "1" '("Heading 1" . html-headline-1))
806 (define-key menu-map "l" '("Radio Buttons" . html-radio-buttons)) 806 (define-key menu-map "l" '("Radio Buttons" . html-radio-buttons))
807 (define-key menu-map "c" '("Checkboxes" . html-checkboxes)) 807 (define-key menu-map "c" '("Checkboxes" . html-checkboxes))
808 (define-key menu-map "l" '("List Item" . html-list-item)) 808 (define-key menu-map "l" '("List Item" . html-list-item))
809 (define-key menu-map "u" '("Unordered List" . html-list)) 809 (define-key menu-map "u" '("Unordered List" . html-unordered-list))
810 (define-key menu-map "o" '("Ordered List" . html-list)) 810 (define-key menu-map "o" '("Ordered List" . html-ordered-list))
811 (define-key menu-map "-" '("Horizontal Rule" . html-horizontal-rule)) 811 (define-key menu-map "-" '("Horizontal Rule" . html-horizontal-rule))
812 (define-key menu-map "\n" '("Line Break" . html-line)) 812 (define-key menu-map "\n" '("Line Break" . html-line))
813 (define-key menu-map "\r" '("Paragraph" . html-paragraph)) 813 (define-key menu-map "\r" '("Paragraph" . html-paragraph))
@@ -1148,10 +1148,35 @@ do:
1148 nil 1148 nil
1149 "<a name=\"" _ "\"></a>") 1149 "<a name=\"" _ "\"></a>")
1150 1150
1151(define-skeleton html-headline 1151(define-skeleton html-headline-1
1152 "HTML headline tags." 1152 "HTML level 1 headline tags."
1153 last-command-char 1153 nil
1154 "<h" str ?> _ "</h" str ?>) 1154 "<h1>" _ "</h1>")
1155
1156(define-skeleton html-headline-2
1157 "HTML level 2 headline tags."
1158 nil
1159 "<h2>" _ "</h2>")
1160
1161(define-skeleton html-headline-3
1162 "HTML level 3 headline tags."
1163 nil
1164 "<h3>" _ "</h3>")
1165
1166(define-skeleton html-headline-4
1167 "HTML level 4 headline tags."
1168 nil
1169 "<h4>" _ "</h4>")
1170
1171(define-skeleton html-headline-5
1172 "HTML level 5 headline tags."
1173 nil
1174 "<h5>" _ "</h5>")
1175
1176(define-skeleton html-headline-6
1177 "HTML level 6 headline tags."
1178 nil
1179 "<h6>" _ "</h6>")
1155 1180
1156(define-skeleton html-horizontal-rule 1181(define-skeleton html-horizontal-rule
1157 "HTML horizontal rule tag." 1182 "HTML horizontal rule tag."
@@ -1168,12 +1193,19 @@ do:
1168 nil 1193 nil
1169 "<br>" \n) 1194 "<br>" \n)
1170 1195
1171(define-skeleton html-list 1196(define-skeleton html-ordered-list
1172 "HTML unordered/ordered list tags." 1197 "HTML ordered list tags."
1173 last-command-char 1198 nil
1174 ?< str "l>" \n 1199 ?< "ol>" \n
1200 "<li>" _ \n
1201 "</ol>")
1202
1203(define-skeleton html-unordered-list
1204 "HTML unordered list tags."
1205 nil
1206 ?< "ul>" \n
1175 "<li>" _ \n 1207 "<li>" _ \n
1176 "</" str "l>") 1208 "</ul>")
1177 1209
1178(define-skeleton html-list-item 1210(define-skeleton html-list-item
1179 "HTML list item tag." 1211 "HTML list item tag."