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: On language-dependent defaults for character-folding Date: Thu, 18 Feb 2016 19:46:00 +0200 Message-ID: <83h9h5ud2f.fsf@gnu.org> References: <87mvr9wxqz.fsf@wanadoo.es> <87io1xwq1e.fsf@wanadoo.es> <87vb5wvzfz.fsf@mail.linkov.net> <87io1wt4cc.fsf@wanadoo.es> <8737syoima.fsf@mail.linkov.net> <871t8iu277.fsf@wanadoo.es> <87y4apfpr6.fsf@mail.linkov.net> <87wpq9qwia.fsf@wanadoo.es> <87k2m7qse0.fsf@wanadoo.es> <878u2mqhnl.fsf@wanadoo.es> <878u2jpy0t.fsf@fastmail.fm> <834md7wdtg.fsf@gnu.org> <87si0rgd94.fsf@udel.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455817893 9367 80.91.229.3 (18 Feb 2016 17:51:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 17:51:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 18 18:51:33 2016 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 1aWSjj-0003b7-2I for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 18:51:31 +0100 Original-Received: from localhost ([::1]:43835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWSji-0004bO-Jm for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 12:51:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWSeC-0002v3-Jw for emacs-devel@gnu.org; Thu, 18 Feb 2016 12:45:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWSe9-0002nj-2V for emacs-devel@gnu.org; Thu, 18 Feb 2016 12:45:48 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWSe8-0002nU-VX; Thu, 18 Feb 2016 12:45:45 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1941 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aWSe8-0001bi-B1; Thu, 18 Feb 2016 12:45:44 -0500 In-reply-to: <87si0rgd94.fsf@udel.edu> (message from Mark Oteiza on Wed, 17 Feb 2016 17:53:27 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:200139 Archived-At: > From: Mark Oteiza > Date: Wed, 17 Feb 2016 17:53:27 -0500 > > I didn't know what character folding was before this was implemented in > Emacs, and AFAICT the only other thing I happen to have installed that > does this is Chromium. We don't have to always be the Nth application on the block to implement something useful. When Emacs was first introduced, it pioneered many features that nowadays are taken for granted. There's no reason why this trend should stop, IMO. > While it's a neat feature, it should default to off. Thanks for providing feedback. > It appears that char-folding's dependence on elisp regex is a > crutch. You (or anyone else) are welcome to work on re-implementing this in search.c similarly to case-folding we already have there. The current implementation was accepted because the feature was deemed important, and no one stepped forward to do it in C. > Long PS: I think the news items in "** Search and Replace" need to be > clearer. In particular: > > - *** New user option ... should perhaps mention character-fold-to-regexp if > that ends up being the default Done. > - *** `isearch' and ... should mention how to disable/enable character > folding for isearch, whatever the default ends up being I added that. > - *** New function ... should mention that it is to be added to > `search-default-regexp-mode' The first item above already does (after the changes you proposed above), so this sounds redundant. > To me, these appear to be completely disjoint despite having everything > to do with char-folding. I think one would have to know how isearch > actually works in order to put it together from reading the NEWS as it > is currently. The grouping in NEWS is not meant to facilitate putting it all together, in the sense of creating some overall picture of the underlying implementation. The grouping is there to make it easier to grasp changes related to the same feature or group of features, that's all. Thanks.