From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Plate Newsgroups: gmane.emacs.devel Subject: Re: [pot@gnu.org: (setq sgml-transformation 'upcase) has no effect] Date: Thu, 17 May 2007 19:00:02 +0200 Message-ID: <200705171900.02464.cplate@web.de> References: <200705171329.36410.cplate@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_SoITGz0Dprt0Z1G" X-Trace: sea.gmane.org 1179421278 16989 80.91.229.12 (17 May 2007 17:01:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 May 2007 17:01:18 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 17 19:01:17 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HojLm-0006Zl-Tg for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 19:01:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HojTt-0008HH-MW for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 13:09:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HojTB-0007zi-Mz for emacs-devel@gnu.org; Thu, 17 May 2007 13:08:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HojTB-0007zM-8f for emacs-devel@gnu.org; Thu, 17 May 2007 13:08:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HojTA-0007zG-NW for emacs-devel@gnu.org; Thu, 17 May 2007 13:08:52 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HojL1-0001hC-3N; Thu, 17 May 2007 13:00:27 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id CBFDD7E78D85; Thu, 17 May 2007 19:00:01 +0200 (CEST) Original-Received: from [84.163.103.198] (helo=noname) by smtp07.web.de with esmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1HojKa-0007Z5-00; Thu, 17 May 2007 19:00:01 +0200 User-Agent: KMail/1.9.5 In-Reply-To: X-Sender: cplate@web.de X-Provags-ID: V01U2FsdGVkX1/TGn2d1Jn8olCg2kBrxgND1f0ALWUJZJcOEhjL CNBemuV+TzN/2jig4690Fl2U1+E5WFJAZIH7i9XcVx6GghhaUt e1E1+y16k= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71261 Archived-At: --Boundary-00=_SoITGz0Dprt0Z1G Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 17 May 2007 16:14, Stefan Monnier wrote: > That will only fix some cases, but not all. I have attached the fix for all cases. Regards, Christian --Boundary-00=_SoITGz0Dprt0Z1G Content-Type: text/x-diff; charset="iso-8859-1"; name="sgml-mode.el.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sgml-mode.el.diff" 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 ! "
    " \n ! "
  • " _ (if sgml-xml-mode "
  • ") \n ! "
") (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 "
      ") \n ! (funcall sgml-transformation-function "
    • ") ! _ ! (if sgml-xml-mode (funcall sgml-transformation-function "
    • ")) \n ! (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)) --Boundary-00=_SoITGz0Dprt0Z1G Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --Boundary-00=_SoITGz0Dprt0Z1G--