From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Your last change to browse-url is bogus. Date: Thu, 13 Sep 2007 08:29:03 +0900 Message-ID: <87sl5jjwe8.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87zlzs2qm1.fsf@cadilhac.name> <20070912102039.GD12104@saeurebad.de> <87ejh42mo4.fsf@cadilhac.name> <20070912.215405.160495149.mituharu@math.s.chiba-u.ac.jp> <87sl5k10yl.fsf@cadilhac.name> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189639729 8437 80.91.229.12 (12 Sep 2007 23:28:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 23:28:49 +0000 (UTC) Cc: Johannes Weiner , YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 13 01:28:44 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 1IVbdU-0000tD-5w for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2007 01:28:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVbdT-0008Pf-Ia for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2007 19:28:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVbdQ-0008Pa-Cp for emacs-devel@gnu.org; Wed, 12 Sep 2007 19:28:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVbdM-0008PO-R7 for emacs-devel@gnu.org; Wed, 12 Sep 2007 19:28:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVbdM-0008PL-MD for emacs-devel@gnu.org; Wed, 12 Sep 2007 19:28:36 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVbdM-0007Uj-8o for emacs-devel@gnu.org; Wed, 12 Sep 2007 19:28:36 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (unknown [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 8E87E7FFA; Thu, 13 Sep 2007 08:28:34 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id E5F351A2E11; Thu, 13 Sep 2007 08:29:03 +0900 (JST) In-Reply-To: <87sl5k10yl.fsf@cadilhac.name> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" (+CVS-20070621) XEmacs Lucid X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:78720 Archived-At: Micha=EBl Cadilhac writes: > YAMAMOTO Mitsuharu writes: >=20 > > %-escaping in browse-url-file-url (filename -> url) and those in other > > places such as browse-url-netscape (url -> url) are inherently > > different operations. >=20 > Not quite. I may have a too low-level point of view, but they are the > same operations, they are just not used for the same purpose. That depends on how you look at it. If you think of them as operations on characters, they're the same. If you think of them as operations on strings, they're different (ie, it's possible to find strings which are not transformed tthe same way by both operations). I tend to agree with Yamamoto-san, because even if the string->string maps were identical, having the names specify the intended domain helps with deciding when to apply them at all. > Well, I'm not so sure. Their purpose is to escape characters in a way > we don't want to duplicate too much. The =ABproblem=BB you're pointing = out > is the reason why I made the escaping function take the set of > characters to escape in a first place. In that case it would make sense to give the escaping function that takes the set of characters an "-internal" or "-helper" name (excuse me, I don't know the GNU conventions for this), and use nice efficient defsubsts for the semantically mnemonic public entry points.