From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Hong Xu Newsgroups: gmane.emacs.bugs Subject: bug#24694: Document url--allow-chars for external use? Date: Fri, 4 Oct 2019 12:31:27 -0700 Message-ID: <7137f36f-983f-2e78-ebdc-4b2e277410a1@topbug.net> References: <8337jy4uv3.fsf@gnu.org> <87oa0vtk3y.fsf@topbug.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="119485"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: 24694@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 04 21:32:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iGTJD-000Uzg-1o for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Oct 2019 21:32:11 +0200 Original-Received: from localhost ([::1]:51620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGTJB-0003k1-Rr for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Oct 2019 15:32:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43576) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGTJ5-0003jv-Db for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2019 15:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGTJ4-0006g4-Di for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2019 15:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGTJ4-0006fw-Ax for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2019 15:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iGTJ4-0000Gl-4b for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2019 15:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Oct 2019 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24694 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24694-submit@debbugs.gnu.org id=B24694.15702174991002 (code B ref 24694); Fri, 04 Oct 2019 19:32:02 +0000 Original-Received: (at 24694) by debbugs.gnu.org; 4 Oct 2019 19:31:39 +0000 Original-Received: from localhost ([127.0.0.1]:43485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGTIh-0000G6-7F for submit@debbugs.gnu.org; Fri, 04 Oct 2019 15:31:39 -0400 Original-Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGTIf-0000Fx-D6 for 24694@debbugs.gnu.org; Fri, 04 Oct 2019 15:31:37 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1570217490; cv=none; d=zoho.com; s=zohoarc; b=bL2BaCDpv0kO+GQX6Sb+bnYMzMhQslWCVdjJ6cRhdTFTomZo7U+BHT6di+eaPhs3Hi33XoKyFOGqbvdmxH1mDy7tLACOwlQ4IIYfeuCzTxPFtS97fyDkO0Xi9CR2s3Ip3sPsCOsr8aIcm6Tiwr7Bt82mQdUtLCEeys8WowIeMXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570217490; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=xGYmq9+Z6HOZmqGsnXe+pBhNCChHk7ZxBiUqrG66/Og=; b=U1lh1nIUL37NSM/OAvj2vT5Vv5puAy/p5dBh98ICJ4dhviygQC7U8+3iTPES9ipFOGTUytNVldBVKLjGiAu2+j+JZnYLZYcSoLsY19BRrjTwI2vy4pajcOAzdpvseYQC10/lX6rg3uasYnVWORaIH4YExVle4GYuv5YwbaV9/l4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=topbug.net; spf=pass smtp.mailfrom=hong@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570217490; s=zoho; d=topbug.net; i=hong@topbug.net; h=Subject:From:To:Cc:Message-ID:References:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; l=1189; bh=xGYmq9+Z6HOZmqGsnXe+pBhNCChHk7ZxBiUqrG66/Og=; b=UhEms9PpHMjE6sp/5fPd8f4PQ3wcCIZ6Y0mSJ6qvtx6aGCsOpgf64gxqrTNf+wfN hVFqv+rEX7GqROllWuCH/FHp7AdKGKZVI89W81gPjJTqQ/LdzjJhOZ/5tF7V1lH9fPl GDKvY23PLjT8eWGX0xGX5ftWsShXpaXBGjWMSjxs= Original-Received: from [192.168.88.88] (69-215-149-151.lightspeed.sntcca.sbcglobal.net [69.215.149.151]) by mx.zohomail.com with SMTPS id 1570217488331107.73417285181779; Fri, 4 Oct 2019 12:31:28 -0700 (PDT) Openpgp: preference=signencrypt In-Reply-To: <87oa0vtk3y.fsf@topbug.net> Content-Language: en-US X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168342 Archived-At: On 12/1/16 1:28 PM, Hong Xu wrote: >=20 > On 2016-10-14 Fri 12:02 GMT-0800, Eli Zaretskii wrote: >=20 >>> From: Hong Xu >>> Date: Fri, 14 Oct 2016 11:24:52 -0700 >>> >>> Currently url-hexify-string has an optional argument allowed-chars, >>> which is a long vector. However, it is more natural to specify a list o= f >>> characters. Internally, the default value of allowed-chars is specified >>> by converting a list of chars to such a vector by using an internal >>> function url--allow-chars. I would like to suggest to document >>> url--allow-chars for external use, thus we can improve the interface of >>> the url-hexify-string function. >>> >>> I can draft the document change, if you agree with me. >> >> Isn't it better to teach url-hexify-string to accept lists as well? >=20 > The patch is attached. >=20 > Make url-hexify-string accept a list of allowed chars. >=20 > =09* url-util.el (url-hexify-string): Accept a list of allowed chars. > =09* url.texi (URI Encoding): Update url-hexify-string doc and index impr= ovements. >=20 It's been a few years... I'm wondering whether this patch is still interest= ing?