From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Single quotes in Info Date: Thu, 29 Jan 2015 12:31:12 -0200 Message-ID: References: <87twzhgk84.fsf@wmi.amu.edu.pl> <83lhksshdm.fsf@gnu.org> <9ee0c895-a178-40e1-b1c8-ed2b97071c6b@default> <87h9vgglkz.fsf@wmi.amu.edu.pl> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0118225efdd9bf050dcb5624 X-Trace: ger.gmane.org 1422541911 3199 80.91.229.3 (29 Jan 2015 14:31:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2015 14:31:51 +0000 (UTC) Cc: emacs-devel , Marcin Borkowski To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 29 15:31:46 2015 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 1YGq8G-000365-Ay for ged-emacs-devel@m.gmane.org; Thu, 29 Jan 2015 15:31:44 +0100 Original-Received: from localhost ([::1]:60030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGq8E-0000wx-Qf for ged-emacs-devel@m.gmane.org; Thu, 29 Jan 2015 09:31:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGq7p-0000uc-Gk for emacs-devel@gnu.org; Thu, 29 Jan 2015 09:31:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGq7l-0004e8-8G for emacs-devel@gnu.org; Thu, 29 Jan 2015 09:31:17 -0500 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:35457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGq7l-0004dz-3D for emacs-devel@gnu.org; Thu, 29 Jan 2015 09:31:13 -0500 Original-Received: by mail-oi0-f41.google.com with SMTP id z81so27149087oif.0 for ; Thu, 29 Jan 2015 06:31:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=B/5ZyoTO545ick2MI/M5GJ9wvZwK0ZTWjqN6nLIj4xQ=; b=0twmoQgNFXUuMXnJmKvhZOclVUJC2r41jlaJM31qey/40iQyKK6mlLhFNtDCXD/99F EIHev3EwQUqIHyFsqXWh7q2cycBfwOegbhVoEnoGdr9YwJ+B9VVgNua8N4k7UP5zXqot XvjRFAoMuYz43CmMFOl9I5NEA9yUABwbFhWhnfpW79wZktaKCsvkuNEvEARncvukJmxr UgvmUCxdpXIm854RQqZX1m4GmC0w7M1aQdWdVCgqTdrwArfb33eTkel9vKy1X+Sod9D9 NqJGWKC6r8hUxt/DQoVleaSWow9KP/yTTThOZU+POtAOjy8WalN/8E2dgdUJ2GJD5MWM aQoQ== X-Received: by 10.60.176.8 with SMTP id ce8mr501691oec.71.1422541872550; Thu, 29 Jan 2015 06:31:12 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Thu, 29 Jan 2015 06:31:12 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Thu, 29 Jan 2015 06:31:12 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: t6DuuoEW5Lb7CPrwotwBVi8JbV0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::229 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:181978 Archived-At: --089e0118225efdd9bf050dcb5624 Content-Type: text/plain; charset=UTF-8 Ok, here's how I can see this being done: 1. define a new field for the buffer object which is a char-table. 2. Populate this table in lisp code. 3. Use it instead of the case folding table as the translation table for searches, if some given variable is non-nil. Would that be desirable? We could also use the equivalence class folding table in addition to the case folding table. But that would (in the very least) involve changing the c search functions to take an additional argument. On 28 Jan 2015 20:23, "Stefan Monnier" wrote: > > Ok, I'll be getting on a 10 hour flight now, so I'll be looking into > > the case-fold machinery. > > I did have a brief look already and it doesn't seem horribly absurd. > > > Any other pointers that might be useful before I jump into no-internet > > land? :-) > > Just a warning: the case-tables are threatened. They should be replaced by > Unicode-aware (locale-dependent?) case folding for the 99.99% of the > cases, the only remaining case is the "ASCII upcase/downcase" operation > used in sendmail.el (IIRC), which we can hopefully solve some other way. > > > Stefan > --089e0118225efdd9bf050dcb5624 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Ok, here's how I can see this being done:
1. define a new field for the buffer object which is a char-table.
2. Populate this table in lisp code.
3. Use it instead of the case folding table as the translation table for se= arches, if some given variable is non-nil.

Would that be desirable?

We could also use the equivalence class folding table in add= ition to the case folding table. But that would (in the very least) involve= changing the c search functions to take an additional argument.

--089e0118225efdd9bf050dcb5624--