From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Maxwell Newsgroups: gmane.emacs.devel Subject: Re: HTML and URL escaping functions Date: Tue, 15 Jun 2010 08:39:27 -0700 Message-ID: <201006150839.27607.amax@redsymbol.net> References: <201006131226.27512.amax@redsymbol.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276616484 19016 80.91.229.12 (15 Jun 2010 15:41:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Jun 2010 15:41:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 15 17:41:23 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OOYGQ-0005Tz-8R for ged-emacs-devel@m.gmane.org; Tue, 15 Jun 2010 17:41:22 +0200 Original-Received: from localhost ([127.0.0.1]:48757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOYGO-0004wI-87 for ged-emacs-devel@m.gmane.org; Tue, 15 Jun 2010 11:41:20 -0400 Original-Received: from [140.186.70.92] (port=50998 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOYEw-0004BN-8F for emacs-devel@gnu.org; Tue, 15 Jun 2010 11:39:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOYEv-0006eT-1i for emacs-devel@gnu.org; Tue, 15 Jun 2010 11:39:50 -0400 Original-Received: from smtp-gw55.mailanyone.net ([208.70.132.29]:58707) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOYEu-0006eG-Uo for emacs-devel@gnu.org; Tue, 15 Jun 2010 11:39:49 -0400 Original-Received: from mailanyone.net by smtp-gw55.mailanyone.net with esmtpsa (TLSv1:AES256-SHA:256) (MailAnyone extSMTP redsymbol) id 1OOYFR-00036Y-H4; Tue, 15 Jun 2010 10:40:22 -0500 User-Agent: KMail/1.9.9 In-Reply-To: Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:125959 Archived-At: On Sunday 13 June 2010 12:31:17 pm you wrote: > About the HTML entities: I'm not sure how you implemented it, but e.g. > sgml-mode.el has `sgml-char-names' (along with sgml-name-8bit-mode) > and I'm pretty sure nxhtml has something for it as well. I don't know > about the "URL quoting". Thanks, wasn't familiar with that (it's actually named sgml-name-char). One difference I see is that sgml-name-char works on a single character, while html-escape-region finds all non-html-safe characters in a region, and escapes them. I couldn't find anything in nxml, anyone know of a specific command or function? Cheers, Aaron -- Aaron Maxwell http://redsymbol.net/