From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: table.el downcase HTML tags Date: Tue, 30 May 2006 10:13:35 -0700 (PDT) Organization: Sony Electronics Inc. Message-ID: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149015225 5679 80.91.229.2 (30 May 2006 18:53:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 18:53:45 +0000 (UTC) Cc: carsten.dominik@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 20:53:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fl9LV-0007u9-BT for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 20:53:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl9LU-00084U-RC for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 14:53:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fl7mn-0004nW-NS for emacs-devel@gnu.org; Tue, 30 May 2006 13:13:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fl7ml-0004nK-5K for emacs-devel@gnu.org; Tue, 30 May 2006 13:13:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl7ml-0004nH-03 for emacs-devel@gnu.org; Tue, 30 May 2006 13:13:39 -0400 Original-Received: from [160.33.98.75] (helo=mail8.fw-bc.sony.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fl7sa-0003QR-T2 for emacs-devel@gnu.org; Tue, 30 May 2006 13:19:40 -0400 Original-Received: from mail1.sgo.in.sel.sony.com (mail1.sgo.in.sel.sony.com [43.130.1.111]) by mail8.fw-bc.sony.com (8.12.11/8.12.11) with ESMTP id k4UHDahW009119; Tue, 30 May 2006 17:13:36 GMT Original-Received: from localhost (us00065bd5fa01.am.sony.com [43.191.36.137]) by mail1.sgo.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id k4UHDaaa018229; Tue, 30 May 2006 17:13:36 GMT Original-To: emacs-devel@gnu.org X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-5.0.53 on Emacs-22.0.50.1 (i386-mingw-nt5.1.2600 built on 2006-05-15) X-Mailman-Approved-At: Tue, 30 May 2006 14:52:08 -0400 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:55489 Archived-At: This has been requested for many times that HTML tags that table.el generates to be downcased to be compatible with XHTML standard. If no one objects could someone check the following change into the repository. Thanks. -Tak 2006-05-30 Takaaki Ota * textmodes/table.el: Convert all HTML tags to lower case for XHTML compatibility. bash-3.1$ diff ../../../../d/pub/emacs/pure/emacs/lisp/textmodes/table.el table.el 9c9 < ;; Revised: Sat Aug 06 2005 19:42:54 (CEST) --- > ;; Revised: Tue May 30 2006 10:01:43 (PDT) 3107c3107 < (format "\n" table-html-table-attribute) --- > (format "
\n" table-html-table-attribute) 3110c3110 < (format " \n" caption) --- > (format " \n" caption) 3134c3134 < (insert "
%s%s
\n")) --- > (insert "\n")) 3155c3155 < (insert " \n")) --- > (insert " \n")) 3163c3163 < (insert " \n")) --- > (insert " \n")) 3210c3210 < "TH" "TD")))) --- > "th" "td")))) 3269c3269 < (insert "
") --- > (insert "
") From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Tue, 30 May 2006 21:23:50 +0200 Message-ID: <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149017119 13744 80.91.229.2 (30 May 2006 19:25:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 19:25:19 +0000 (UTC) Cc: carsten.dominik@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 21:25:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fl9p3-0005DR-Fq for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 21:24:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl9p2-0007Sy-Md for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 15:24:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fl9oo-0007Sj-AT for emacs-devel@gnu.org; Tue, 30 May 2006 15:23:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fl9om-0007RO-J5 for emacs-devel@gnu.org; Tue, 30 May 2006 15:23:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl9om-0007R3-DM for emacs-devel@gnu.org; Tue, 30 May 2006 15:23:52 -0400 Original-Received: from [64.233.182.189] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fl9ud-0006js-Dt for emacs-devel@gnu.org; Tue, 30 May 2006 15:29:55 -0400 Original-Received: by nf-out-0910.google.com with SMTP id m18so15998nfc for ; Tue, 30 May 2006 12:23:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oclgf/+Rkl4BJg6bO155CZL8JrTryWBn5GQYbG9j+KMrU38zDo0UnufNIxkBh+8GVu+y42pWhCs0JRYvZiaI7SCV+sP1zL1IGUlKFr5HsLA/ZYeGcwhcB7OBAhNgo1puqVZyWJ3Evu1qio4c1Z5bgKGMX2RDeoEQj0YWn95te0I= Original-Received: by 10.49.28.8 with SMTP id f8mr52976nfj; Tue, 30 May 2006 12:23:50 -0700 (PDT) Original-Received: by 10.67.19.5 with HTTP; Tue, 30 May 2006 12:23:50 -0700 (PDT) Original-To: "Tak Ota" In-Reply-To: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> Content-Disposition: inline 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:55493 Archived-At: > This has been requested for many times that HTML tags that table.el > generates to be downcased to be compatible with XHTML standard. If no > one objects could someone check the following change into the > repository. Thanks. > > < (format "\n" table-html-table-attribute) Why not making it configurable? I don't care about the case in this case (haha!) but I am sure some do. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Tue, 30 May 2006 21:58:20 +0200 Message-ID: <447CA3DC.4060006@student.lu.se> References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149019138 21884 80.91.229.2 (30 May 2006 19:58:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 19:58:58 +0000 (UTC) Cc: emacs-devel@gnu.org, Tak Ota , carsten.dominik@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 21:58:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlAMS-0002zV-0K for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 21:58:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlAMR-0005CL-JW for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 15:58:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlAMG-0005AO-9j for emacs-devel@gnu.org; Tue, 30 May 2006 15:58:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlAME-00059S-EF for emacs-devel@gnu.org; Tue, 30 May 2006 15:58:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlAME-00059P-76 for emacs-devel@gnu.org; Tue, 30 May 2006 15:58:26 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlAS5-0001F0-Cy for emacs-devel@gnu.org; Tue, 30 May 2006 16:04:29 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.072.1) id 447BEE610003A8ED; Tue, 30 May 2006 21:58:22 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: Mathias Dahl In-Reply-To: <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> 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:55496 Archived-At: Mathias Dahl wrote: >> This has been requested for many times that HTML tags that table.el >> generates to be downcased to be compatible with XHTML standard. If no >> one objects could someone check the following change into the >> repository. Thanks. >> >> < (format "
\n" table-html-table-attribute) > > Why not making it configurable? I don't care about the case in this > case (haha!) but I am sure some do. I do not know of any case where uppercase tags is useful. Are there really any such cases? From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Tue, 30 May 2006 16:18:29 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149020367 26963 80.91.229.2 (30 May 2006 20:19:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 20:19:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 22:19:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlAgN-0006NW-Th for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 22:19:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlAgN-00041m-Bf for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 16:19:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlAg6-0003th-16 for emacs-devel@gnu.org; Tue, 30 May 2006 16:18:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlAg5-0003tB-B5 for emacs-devel@gnu.org; Tue, 30 May 2006 16:18:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlAg5-0003t4-3Q for emacs-devel@gnu.org; Tue, 30 May 2006 16:18:57 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FlAlw-0002in-Cn for emacs-devel@gnu.org; Tue, 30 May 2006 16:25:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FlAfs-0006Hn-Dl for emacs-devel@gnu.org; Tue, 30 May 2006 22:18:44 +0200 Original-Received: from fw01.cmbrmaks.akamai.com ([80.67.64.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 May 2006 22:18:44 +0200 Original-Received: from tzz by fw01.cmbrmaks.akamai.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 May 2006 22:18:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fw01.cmbrmaks.akamai.com X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:bfNlUKfpH7qH8DhYWpR8L8Hvc28= 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:55498 Archived-At: On 30 May 2006, lennart.borgman.073@student.lu.se wrote: > I do not know of any case where uppercase tags is useful. Are there > really any such cases? Old, badly written parsers may look for "TABLE" and break with "table". Generally, why break old behavior if it can be left in as an option? For table.el, why not define something like this: (defcustom table-uppercase-html-tags nil "*All generated HTML tags are in uppercase when this is set." :tag "Uppercase HTML tags" :type 'boolean :group 'table) (defun table--generate-source-html-tag (tag-symbol text &optional options) (let ((tag-symbol (if table-uppercase-html-tags (upcase tag-symbol) tag-symbol))) (format "<%s %s> %s " tag-symbol options text tag-symbol))) This would also simplify a lot of the table.el code that generates HTML :) Ted From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Tue, 30 May 2006 15:00:16 -0600 Organization: IHS Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149022943 5037 80.91.229.2 (30 May 2006 21:02:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 21:02:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 23:02:20 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlBLq-0005eS-H1 for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 23:02:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlBLq-0000Fw-2v for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 17:02:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlBLe-0000Fh-3a for emacs-devel@gnu.org; Tue, 30 May 2006 17:01:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlBLc-0000DI-QE for emacs-devel@gnu.org; Tue, 30 May 2006 17:01:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlBLc-0000DA-Ew for emacs-devel@gnu.org; Tue, 30 May 2006 17:01:52 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FlBRU-0005dF-87 for emacs-devel@gnu.org; Tue, 30 May 2006 17:07:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FlBKw-0005XU-6b for emacs-devel@gnu.org; Tue, 30 May 2006 23:01:10 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 May 2006 23:01:10 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 May 2006 23:01:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 44 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: <447CA3DC.4060006@student.lu.se> 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:55499 Archived-At: Lennart Borgman wrote: > Mathias Dahl wrote: >>> This has been requested for many times that HTML tags that table.el >>> generates to be downcased to be compatible with XHTML standard. If no >>> one objects could someone check the following change into the >>> repository. Thanks. >>> >>> < (format "
\n" table-html-table-attribute) >> >> Why not making it configurable? I don't care about the case in this >> case (haha!) but I am sure some do. > I do not know of any case where uppercase tags is useful. Are there > really any such cases? No, because HTML is a case-insensitive SGML application: See http://www.w3.org/TR/html4/ HTML 4 is an SGML application conforming to International Standard ISO 8879 -- Standard Generalized Markup Language [ISO8879]. See http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1 Element names are always case-insensitive. See http://www.w3.org/TR/html4/sgml/sgmldecl.html NAMECASE GENERAL YES ENTITY NO Note however, that clause 9.3 of ISO 8879 states that The upper-case form of each character in a name, name token, number, or number token, as specified by the "NAMECASE" parameter of the SGML declaration, is substituted for the character actually entered. so the uppercase names are actually canonical in HTML, whereas the lowercase names are mandatory in XHTML which is a (case-sensitive) XML application. -- Kevin From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Tue, 30 May 2006 15:08:51 -0700 (PDT) Message-ID: <37314.128.165.123.132.1149026931.squirrel@webmail.lanl.gov> References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com><7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com><447CA3DC.4060006@student.lu.se> Reply-To: herring@lanl.gov NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1149026951 20617 80.91.229.2 (30 May 2006 22:09:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 22:09:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 00:09:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlCOi-0000i3-DN for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 00:09:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlCOh-0005T4-QT for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 18:09:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlCOW-0005Sz-9d for emacs-devel@gnu.org; Tue, 30 May 2006 18:08:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlCOU-0005Sn-PM for emacs-devel@gnu.org; Tue, 30 May 2006 18:08:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlCOU-0005Sk-IE for emacs-devel@gnu.org; Tue, 30 May 2006 18:08:54 -0400 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FlCUM-0001pf-VY for emacs-devel@gnu.org; Tue, 30 May 2006 18:14:59 -0400 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.6/8.13.6/(ccn-5)) with ESMTP id k4UM8qUn031105 for ; Tue, 30 May 2006 16:08:52 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.6/8.13.6/(ccn-5)) with ESMTP id k4UM8pIs027420; Tue, 30 May 2006 16:08:51 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id k4UM8pfv032225; Tue, 30 May 2006 16:08:51 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id k4UM8p8u032223; Tue, 30 May 2006 15:08:51 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.132 (SquirrelMail authenticated user 196434); by webmail.lanl.gov with HTTP; Tue, 30 May 2006 15:08:51 -0700 (PDT) In-Reply-To: Original-To: "Ted Zlatanov" User-Agent: SquirrelMail/1.4.3a-11.EL3 X-Mailer: SquirrelMail/1.4.3a-11.EL3 X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 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:55501 Archived-At: [Sorry if this is a resend; mail client broke.] > (defun table--generate-source-html-tag (tag-symbol text &optional options) > (let ((tag-symbol (if table-uppercase-html-tags > (upcase tag-symbol) > tag-symbol))) > (format "<%s %s> %s " tag-symbol options text tag-symbol))) > > This would also simplify a lot of the table.el code that generates HTML :) The resulting HTML would be ugly and somewhat incorrect: (table--generate-source-html-tag "a" "") => " " I'd use (defun table--generate-source-html-tag (tag &optional body attrs) (when table-uppercase-html-tags (setq tag (upcase tag))) (concat "<" tag (if attrs " ") attrs (if body (concat ">" body "")) giving (table--generate-source-html-tag "a" "b" "c=d") => "b" (table--generate-source-html-tag "a") => "" I removed the spaces around the body because they could break things and are trivial to include in the argument. I'd really be tempted to make attrs an alist, but that might be overengineering the problem. The XML-style empty tags might be undesirable, but they're optional: (table--generate-source-html-tag "a" "") => "" Hope it helps, Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 00:42:22 +0200 Message-ID: <447CCA4E.5060404@student.lu.se> References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> <37314.128.165.123.132.1149026931.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149031729 4110 80.91.229.2 (30 May 2006 23:28:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 23:28:49 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 01:28:45 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlDdh-0007JJ-8U for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 01:28:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlDdg-0005F4-Nq for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 19:28:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlDdT-0005Ez-V3 for emacs-devel@gnu.org; Tue, 30 May 2006 19:28:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlDdS-0005Em-E7 for emacs-devel@gnu.org; Tue, 30 May 2006 19:28:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlDdS-0005Ei-AP for emacs-devel@gnu.org; Tue, 30 May 2006 19:28:26 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlDjL-0006se-Nj for emacs-devel@gnu.org; Tue, 30 May 2006 19:34:31 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.072.1) id 447AF0DC0007BBB7; Wed, 31 May 2006 00:42:27 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: herring@lanl.gov In-Reply-To: <37314.128.165.123.132.1149026931.squirrel@webmail.lanl.gov> 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:55504 Archived-At: Stuart D. Herring wrote: > I'd use > > (defun table--generate-source-html-tag (tag &optional body attrs) > (when table-uppercase-html-tags (setq tag (upcase tag))) > (concat "<" tag (if attrs " ") attrs > (if body (concat ">" body "")) > > giving > > (table--generate-source-html-tag "a" "b" "c=d") > => "b" > (table--generate-source-html-tag "a") > => "" > > I removed the spaces around the body because they could break things and > are trivial to include in the argument. I'd really be tempted to make > attrs an alist, but that might be overengineering the problem. The > XML-style empty tags might be undesirable, but they're optional: > Option values should be surrounded by "". An alist should be better to avoid problems with this. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 09:52:52 +0200 Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149062140 2446 80.91.229.2 (31 May 2006 07:55:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 07:55:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 09:55:39 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlLYC-0007RC-8f for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 09:55:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlLYB-0005TP-SQ for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 03:55:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlLXz-0005TH-5p for emacs-devel@gnu.org; Wed, 31 May 2006 03:55:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlLXw-0005Sh-2Q for emacs-devel@gnu.org; Wed, 31 May 2006 03:55:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlLXv-0005Se-Sg for emacs-devel@gnu.org; Wed, 31 May 2006 03:55:15 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlLdt-0002hr-Vo for emacs-devel@gnu.org; Wed, 31 May 2006 04:01:26 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id 834CD8A0076; Wed, 31 May 2006 09:55:06 +0200 (CEST) Original-To: Ted Zlatanov In-Reply-To: (Ted Zlatanov's message of "Tue, 30 May 2006 16:18:29 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:55512 Archived-At: Ted Zlatanov writes: > On 30 May 2006, lennart.borgman.073@student.lu.se wrote: > > Old, badly written parsers may look for "TABLE" and break with > "table". This is not a reason for us to output badly written HTML... > Generally, why break old behavior if it can be left in as an > option? table.el is new in emacs 22.x, so we still are free to change it, without considering what those changes might break. If Tak thinks this change is good, he's the one to judge it. -- Kim F. Storm http://www.cua.dk From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 10:00:47 +0200 Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149062608 3891 80.91.229.2 (31 May 2006 08:03:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 08:03:28 +0000 (UTC) Cc: carsten.dominik@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 10:03:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlLfn-0000Gd-Ax for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 10:03:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlLfm-0007v2-Ta for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 04:03:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlLfW-0007ux-7b for emacs-devel@gnu.org; Wed, 31 May 2006 04:03:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlLfT-0007ul-M9 for emacs-devel@gnu.org; Wed, 31 May 2006 04:03:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlLfT-0007ui-Dj for emacs-devel@gnu.org; Wed, 31 May 2006 04:03:03 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlLlR-000386-KZ for emacs-devel@gnu.org; Wed, 31 May 2006 04:09:13 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id B6435A50032; Wed, 31 May 2006 10:03:01 +0200 (CEST) Original-To: Tak Ota In-Reply-To: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> (Tak Ota's message of "Tue, 30 May 2006 10:13:35 -0700 (PDT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:55513 Archived-At: Tak Ota writes: > This has been requested for many times that HTML tags that table.el > generates to be downcased to be compatible with XHTML standard. If no > one objects could someone check the following change into the > repository. Thanks. Done. -- Kim F. Storm http://www.cua.dk From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 10:26:14 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149085655 20064 80.91.229.2 (31 May 2006 14:27:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 14:27:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 16:27:35 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlRfZ-0004W9-Rj for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 16:27:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlRfZ-0003Tg-8l for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 10:27:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlRer-00037H-J2 for emacs-devel@gnu.org; Wed, 31 May 2006 10:26:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlReo-00035S-My for emacs-devel@gnu.org; Wed, 31 May 2006 10:26:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlReo-00035L-9u for emacs-devel@gnu.org; Wed, 31 May 2006 10:26:46 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FlRkq-0002Hu-CD for emacs-devel@gnu.org; Wed, 31 May 2006 10:33:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FlRed-0004Kl-3H for emacs-devel@gnu.org; Wed, 31 May 2006 16:26:35 +0200 Original-Received: from fw01.cmbrmaks.akamai.com ([80.67.64.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 May 2006 16:26:35 +0200 Original-Received: from tzz by fw01.cmbrmaks.akamai.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 May 2006 16:26:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fw01.cmbrmaks.akamai.com X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:6tgDUgcPYvgx+dca07pj9LMPwRE= 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:55516 Archived-At: On 31 May 2006, storm@cua.dk wrote: > Ted Zlatanov writes: > >> On 30 May 2006, lennart.borgman.073@student.lu.se wrote: >> >> Old, badly written parsers may look for "TABLE" and break with >> "table". > > This is not a reason for us to output badly written HTML... I'm sure it's not badly written, in fact (as pointed out) it's "more" valid to output uppercase tags with HTML 4.0 and earlier. I simply offered an option to preserve the old behavior, which also (IMHO) would simplify the code. >> Generally, why break old behavior if it can be left in as an >> option? > > table.el is new in emacs 22.x, so we still are free to change it, > without considering what those changes might break. > > If Tak thinks this change is good, he's the one to judge it. Sure. Ted From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 10:33:25 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> <37314.128.165.123.132.1149026931.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149086067 21728 80.91.229.2 (31 May 2006 14:34:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 14:34:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 16:34:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlRm9-0005us-8h for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 16:34:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlRm8-0006X4-MD for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 10:34:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlRlv-0006Wn-OB for emacs-devel@gnu.org; Wed, 31 May 2006 10:34:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlRlv-0006WZ-8n for emacs-devel@gnu.org; Wed, 31 May 2006 10:34:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlRlv-0006WV-3t for emacs-devel@gnu.org; Wed, 31 May 2006 10:34:07 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FlRrx-0002sF-0f for emacs-devel@gnu.org; Wed, 31 May 2006 10:40:21 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FlRlg-0005ps-Em for emacs-devel@gnu.org; Wed, 31 May 2006 16:33:52 +0200 Original-Received: from fw01.cmbrmaks.akamai.com ([80.67.64.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 May 2006 16:33:52 +0200 Original-Received: from tzz by fw01.cmbrmaks.akamai.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 May 2006 16:33:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fw01.cmbrmaks.akamai.com X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:G3LMNTep8DRsKxpsNplMEdP6iic= 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:55517 Archived-At: On 30 May 2006, herring@lanl.gov wrote: > I'd use > > (defun table--generate-source-html-tag (tag &optional body attrs) > (when table-uppercase-html-tags (setq tag (upcase tag))) > (concat "<" tag (if attrs " ") attrs > (if body (concat ">" body "")) > > giving > > (table--generate-source-html-tag "a" "b" "c=d") > => "b" > (table--generate-source-html-tag "a") > => "" Sure, that works :) > I removed the spaces around the body because they could break things and > are trivial to include in the argument. I'd really be tempted to make > attrs an alist, but that might be overengineering the problem. The > XML-style empty tags might be undesirable, but they're optional: > > (table--generate-source-html-tag "a" "") > => "" Actually all this and more is covered by sgml-mode's sgml-tag (and friends). Perhaps they should be used here instead of reinventing the wheel. Ted From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 17:10:12 +0200 Message-ID: References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> <447CA3DC.4060006@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149088400 31211 80.91.229.2 (31 May 2006 15:13:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 15:13:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 17:13:18 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlSNO-0004ui-Ro for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 17:12:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlSNN-0003ch-Td for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 11:12:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlSN9-0003bM-Ue for emacs-devel@gnu.org; Wed, 31 May 2006 11:12:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlSN8-0003am-Rz for emacs-devel@gnu.org; Wed, 31 May 2006 11:12:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlSN8-0003aj-Nq for emacs-devel@gnu.org; Wed, 31 May 2006 11:12:34 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlSTB-0006Om-CH for emacs-devel@gnu.org; Wed, 31 May 2006 11:18:49 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id AA9C3A5005F; Wed, 31 May 2006 17:12:27 +0200 (CEST) Original-To: Ted Zlatanov In-Reply-To: (Ted Zlatanov's message of "Wed, 31 May 2006 10:26:14 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:55518 Archived-At: Ted Zlatanov writes: > I simply offered an option to preserve the old behavior, which also > (IMHO) would simplify the code. But table.el already used a mixture of lower and uppercase tags, so making all of them lowercase does not make things worse. A more thorough cleanup (if needed), should wait until after the release. -- Kim F. Storm http://www.cua.dk From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.devel Subject: Re: table.el downcase HTML tags Date: Wed, 31 May 2006 16:19:15 +0200 Message-ID: <8a210f8d39ebef3ea7fa45cfbe99d85f@gmail.com> References: <20060530.101335.127866384.Takaaki.Ota@am.sony.com> <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149105471 31030 80.91.229.2 (31 May 2006 19:57:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 19:57:51 +0000 (UTC) Cc: Tak Ota , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 31 21:57:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FlWo6-00070O-Iq for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 21:56:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlWo6-000119-5L for ged-emacs-devel@m.gmane.org; Wed, 31 May 2006 15:56:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlRXb-0000BP-Go for emacs-devel@gnu.org; Wed, 31 May 2006 10:19:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlRXZ-0000AV-Ke for emacs-devel@gnu.org; Wed, 31 May 2006 10:19:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlRXZ-0000AK-Bk for emacs-devel@gnu.org; Wed, 31 May 2006 10:19:17 -0400 Original-Received: from [64.233.182.185] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlRdb-0001Yn-C1 for emacs-devel@gnu.org; Wed, 31 May 2006 10:25:31 -0400 Original-Received: by nf-out-0910.google.com with SMTP id l37so63621nfc for ; Wed, 31 May 2006 07:19:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; b=KOsGM5kJGhVfaLnSpPRHDr7FrpkI4w7bah5F4M5NI9IEfvKYi7e34HK7GHGY8uwrQ5RQrwoaEBlbm9qaFnJbL2ZCoLPlAEc27I6HnlGWeBYe9TLVJ6mMtnQsvyHh35LcXA5fjBYgWO+HcpOVFey6THloPXwkTEU401BkH35nCKI= Original-Received: by 10.48.218.9 with SMTP id q9mr323930nfg; Wed, 31 May 2006 07:19:15 -0700 (PDT) Original-Received: from ?172.16.1.23? ( [80.13.82.85]) by mx.gmail.com with ESMTP id q1sm6931652uge.2006.05.31.07.19.13; Wed, 31 May 2006 07:19:14 -0700 (PDT) In-Reply-To: <7dbe73ed0605301223s23b0bee6x6f458068ad408a79@mail.gmail.com> Original-To: "Mathias Dahl" X-Mailer: Apple Mail (2.623) X-Mailman-Approved-At: Wed, 31 May 2006 15:56:00 -0400 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:55524 Archived-At: No, this should not be configurable. What a waste of resources. - Carsten On May 30, 2006, at 21:23, Mathias Dahl wrote: >> This has been requested for many times that HTML tags that table.el >> generates to be downcased to be compatible with XHTML standard. If no >> one objects could someone check the following change into the >> repository. Thanks. >> >> < (format "
\n" table-html-table-attribute) > > Why not making it configurable? I don't care about the case in this > case (haha!) but I am sure some do. > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477