From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: RFC: locale-sensitive Emacs functions Date: Mon, 27 Mar 2017 23:06:30 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87lgrq5ccp.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490670448 17098 195.159.176.226 (28 Mar 2017 03:07:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2017 03:07:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 28 05:07:23 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cshTb-0003Zv-Dg for ged-emacs-devel@m.gmane.org; Tue, 28 Mar 2017 05:07:19 +0200 Original-Received: from localhost ([::1]:49721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cshTh-0001U1-9T for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 23:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cshTC-0001Rc-BN for emacs-devel@gnu.org; Mon, 27 Mar 2017 23:06:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cshT8-0000co-Uz for emacs-devel@gnu.org; Mon, 27 Mar 2017 23:06:54 -0400 Original-Received: from [195.159.176.226] (port=52464 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cshT8-0000cW-On for emacs-devel@gnu.org; Mon, 27 Mar 2017 23:06:50 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cshSu-0007wL-8O for emacs-devel@gnu.org; Tue, 28 Mar 2017 05:06:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org 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" Mail-Copies-To: never Cancel-Lock: sha1:0bY992lESCmRDXHjqQ5IgYqbEZQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213435 Archived-At: Eli and I discussed adding commas to separate digits of a number, a very common need mentioned here and also addressed in the Emacs Wiki etc.: https://www.reddit.com/r/emacs/comments/61mhyx/creating_a_function_to_add_commasseparators_to/dfga1h4/ I mentioned that commas are only used in some regions, and the C libraries often support "%'d" to do this in a locale-sensitive way. I think it makes sense to provide this specifier in `format' as well, even though it's locale-sensitive. Eli wasn't sure. What do you think? Thanks Ted