From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: One more string functions change Date: Fri, 27 Jun 2014 22:46:55 +0300 Message-ID: <83simq6spc.fsf@gnu.org> References: <53AD8D59.5000207@yandex.ru> <53AD9FDB.80705@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403898453 18632 80.91.229.3 (27 Jun 2014 19:47:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2014 19:47:33 +0000 (UTC) Cc: dmantipov@yandex.ru, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 27 21:47:26 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X0c7J-0008CA-SP for ged-emacs-devel@m.gmane.org; Fri, 27 Jun 2014 21:47:26 +0200 Original-Received: from localhost ([::1]:52270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0c7J-00087j-Ce for ged-emacs-devel@m.gmane.org; Fri, 27 Jun 2014 15:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0c79-0007yW-Pj for emacs-devel@gnu.org; Fri, 27 Jun 2014 15:47:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0c73-0003H5-Sv for emacs-devel@gnu.org; Fri, 27 Jun 2014 15:47:15 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:49494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0c73-0003Gf-Gn for emacs-devel@gnu.org; Fri, 27 Jun 2014 15:47:09 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N7U00A00EIDRP00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 27 Jun 2014 22:47:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7U00AX9EYJSO00@a-mtaout22.012.net.il>; Fri, 27 Jun 2014 22:47:08 +0300 (IDT) In-reply-to: <53AD9FDB.80705@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172774 Archived-At: > Date: Fri, 27 Jun 2014 09:46:19 -0700 > From: Paul Eggert > > Perhaps some day Emacs will support better case conversion, e.g., we > could extend the third argument so that if it's a case table, that case > table is used rather than the default one. That's not enough. Currently, Emacs down-cases using the current buffer's settings. This is TRT in some cases, but very wrong in others. It is especially wrong when down-casing strings (as opposed to portions of a buffer), because there's no reason to believe that a particular string being processed has any relevance to the current buffer and its defaults. IOW, we don't have any good way of specifying language- or locale-specific case-folding. E.g., try writing a function that compares file names case-insensitively for a given locale. FWIW, I think _that_ is where we should concentrate our energy, not on nano-improvements such as the one proposed here. But hey! 90% of Emacs development energy goes to such changes, while important missing features are being left unimplemented for years. So who am I to complain?