Index: sgml-mode.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/textmodes/sgml-mode.el,v retrieving revision 1.124 diff -c -r1.124 sgml-mode.el *** sgml-mode.el 17 May 2007 13:31:51 -0000 1.124 --- sgml-mode.el 17 May 2007 16:56:21 -0000 *************** *** 676,687 **** (if (stringp (car alist)) (progn (insert (if (eq (preceding-char) ?\s) "" ?\s) ! (funcall skeleton-transformation-function (car alist))) (sgml-value alist)) (setq i (length alist)) (while (> i 0) (insert ?\s) ! (insert (funcall skeleton-transformation-function (setq attribute (skeleton-read '(completing-read "Attribute: " --- 676,687 ---- (if (stringp (car alist)) (progn (insert (if (eq (preceding-char) ?\s) "" ?\s) ! (funcall sgml-transformation-function (car alist))) (sgml-value alist)) (setq i (length alist)) (while (> i 0) (insert ?\s) ! (insert (funcall sgml-transformation-function (setq attribute (skeleton-read '(completing-read "Attribute: " *************** *** 1921,2026 **** (define-skeleton html-href-anchor "HTML anchor tag with href attribute." "URL: " ! ;; '(setq input "http:") ! "" _ "") (define-skeleton html-name-anchor "HTML anchor tag with name attribute." "Name: " ! "" _ "") (define-skeleton html-headline-1 "HTML level 1 headline tags." nil ! "

" _ "

") (define-skeleton html-headline-2 "HTML level 2 headline tags." nil ! "

" _ "

") (define-skeleton html-headline-3 "HTML level 3 headline tags." nil ! "

" _ "

") (define-skeleton html-headline-4 "HTML level 4 headline tags." nil ! "

" _ "

") (define-skeleton html-headline-5 "HTML level 5 headline tags." nil ! "
" _ "
") (define-skeleton html-headline-6 "HTML level 6 headline tags." nil ! "
" _ "
") (define-skeleton html-horizontal-rule "HTML horizontal rule tag." nil ! (if sgml-xml-mode "
" "
") \n) (define-skeleton html-image "HTML image tag." "Image URL: " ! "\""" ">")) (define-skeleton html-line "HTML line break tag." nil ! (if sgml-xml-mode "
" "
") \n) (define-skeleton html-ordered-list "HTML ordered list tags." nil ! "
    " \n ! "
  1. " _ (if sgml-xml-mode "
  2. ") \n ! "
") (define-skeleton html-unordered-list "HTML unordered list tags." nil ! "") (define-skeleton html-list-item "HTML list item tag." nil (if (bolp) nil '\n) ! "
  • " _ (if sgml-xml-mode "
  • ")) (define-skeleton html-paragraph "HTML paragraph tag." nil (if (bolp) nil ?\n) ! "

    " _ (if sgml-xml-mode "

    ")) ! (define-skeleton html-checkboxes "Group of connected checkbox inputs." nil '(setq v1 nil v2 nil) ("Value: " ! "" ">") (skeleton-read "Text: " (capitalize str)) (or v2 (setq v2 (if (y-or-n-p "Newline after text? ") ! (funcall skeleton-transformation-function ! (if sgml-xml-mode "
    " "
    ")) ! ""))) \n)) (define-skeleton html-radio-buttons --- 1921,2058 ---- (define-skeleton html-href-anchor "HTML anchor tag with href attribute." "URL: " ! (funcall sgml-transformation-function "" _ (funcall sgml-transformation-function "")) (define-skeleton html-name-anchor "HTML anchor tag with name attribute." "Name: " ! (funcall sgml-transformation-function "" _ (funcall sgml-transformation-function "")) (define-skeleton html-headline-1 "HTML level 1 headline tags." nil ! (funcall sgml-transformation-function "

    ") ! _ ! (funcall sgml-transformation-function "

    ")) (define-skeleton html-headline-2 "HTML level 2 headline tags." nil ! (funcall sgml-transformation-function "

    ") ! _ ! (funcall sgml-transformation-function "

    ")) (define-skeleton html-headline-3 "HTML level 3 headline tags." nil ! (funcall sgml-transformation-function "

    ") ! _ ! (funcall sgml-transformation-function "

    ")) (define-skeleton html-headline-4 "HTML level 4 headline tags." nil ! (funcall sgml-transformation-function "

    ") ! _ ! (funcall sgml-transformation-function "

    ")) (define-skeleton html-headline-5 "HTML level 5 headline tags." nil ! (funcall sgml-transformation-function "
    ") ! _ ! (funcall sgml-transformation-function "
    ")) (define-skeleton html-headline-6 "HTML level 6 headline tags." nil ! (funcall sgml-transformation-function "
    ") ! _ ! (funcall sgml-transformation-function "
    ")) (define-skeleton html-horizontal-rule "HTML horizontal rule tag." nil ! (if sgml-xml-mode ! (funcall sgml-transformation-function "
    ") ! (funcall sgml-transformation-function "
    ")) \n) (define-skeleton html-image "HTML image tag." "Image URL: " ! (funcall sgml-transformation-function "\"")" ">")) (define-skeleton html-line "HTML line break tag." nil ! (if sgml-xml-mode ! (funcall sgml-transformation-function "
    ") ! (funcall sgml-transformation-function "
    ")) \n) (define-skeleton html-ordered-list "HTML ordered list tags." nil ! (funcall sgml-transformation-function "
      ") \n ! (funcall sgml-transformation-function "
    1. ") ! _ ! (if sgml-xml-mode (funcall sgml-transformation-function "
    2. ")) \n ! (funcall sgml-transformation-function "
    ")) (define-skeleton html-unordered-list "HTML unordered list tags." nil ! (funcall sgml-transformation-function "")) (define-skeleton html-list-item "HTML list item tag." nil (if (bolp) nil '\n) ! (funcall sgml-transformation-function "
  • ") ! _ ! (if sgml-xml-mode (funcall sgml-transformation-function "
  • "))) (define-skeleton html-paragraph "HTML paragraph tag." nil (if (bolp) nil ?\n) ! (funcall sgml-transformation-function "

    ") ! _ ! (if sgml-xml-mode (funcall sgml-transformation-function "

    "))) ! (define-skeleton html-checkboxes "Group of connected checkbox inputs." nil '(setq v1 nil v2 nil) ("Value: " ! (funcall sgml-transformation-function "" ">") (skeleton-read "Text: " (capitalize str)) (or v2 (setq v2 (if (y-or-n-p "Newline after text? ") ! (funcall sgml-transformation-function ! (if sgml-xml-mode "
    " "
    ")) ! ""))) \n)) (define-skeleton html-radio-buttons *************** *** 2029,2044 **** '(setq v1 nil v2 (cons nil nil)) ("Value: " ! "" ">") (skeleton-read "Text: " (capitalize str)) (or (cdr v2) (setcdr v2 (if (y-or-n-p "Newline after text? ") ! (funcall skeleton-transformation-function (if sgml-xml-mode "
    " "
    ")) ""))) \n)) --- 2061,2081 ---- '(setq v1 nil v2 (cons nil nil)) ("Value: " ! (funcall sgml-transformation-function "" ">") (skeleton-read "Text: " (capitalize str)) (or (cdr v2) (setcdr v2 (if (y-or-n-p "Newline after text? ") ! (funcall sgml-transformation-function (if sgml-xml-mode "
    " "
    ")) ""))) \n))