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.