From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: non-breaking hyphens Date: Wed, 19 Oct 2011 06:59:12 -0700 Message-ID: References: <87d3dvg1r5.fsf@gnu.org> <87ehybm0i0.fsf@gnu.org> <83r52buey8.fsf@gnu.org><87pqhuwli7.fsf@gnu.org> <87d3dtl9j7.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319032774 8545 80.91.229.12 (19 Oct 2011 13:59:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 13:59:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 19 15:59:30 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGWg6-0006xR-3h for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2011 15:59:30 +0200 Original-Received: from localhost ([::1]:35293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGWg5-0005Pq-Ge for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2011 09:59:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGWg0-0005K0-1q for emacs-devel@gnu.org; Wed, 19 Oct 2011 09:59:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGWfu-00088e-6k for emacs-devel@gnu.org; Wed, 19 Oct 2011 09:59:23 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:38337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGWft-00088N-J6 for emacs-devel@gnu.org; Wed, 19 Oct 2011 09:59:17 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p9JDxDDK032278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 Oct 2011 13:59:15 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p9JDxCkc014025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Oct 2011 13:59:13 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p9JDx7gf031645; Wed, 19 Oct 2011 08:59:07 -0500 Original-Received: from dradamslap1 (/10.159.53.26) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 19 Oct 2011 06:59:07 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <87d3dtl9j7.fsf@mail.jurta.org> Thread-Index: AcyOOSTiT8XUte2HRFGk1e8NHLWtZAALNKJw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4E9ED7B3.029D:SCFMA922111,ss=1,re=-4.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:145330 Archived-At: > > FWIW, I suggest adding simple search and search-and-replace > > commands to check for such groups of "false friends". This > > would be in addition to the display changes that you are discussing. > > What you suggest reminds UI used when trying to save a file > with characters > that can't be encoded with default coding systems, i.e. that displays: > > Click on a character (or switch to this window by `C-x o' > and select the characters by RET) to jump to the place it appears, > where `C-u C-x =' will give information about it. Maybe. But my suggestion was to drive everything off of a user-customizable data structure: groups of confusables together with an identified preferred value for each group (could be just the first or last confusable in the list, or could be a separate entry for the group). If, for example, the UI part was to provide a query-replace-faux-amis command for a given group of confusables (or for all groups at once), every confusable in a given group would be sought, and the default replacement would be the identified preferred value for the group. If you think that the preferred value for a group might often depend on the context (e.g. mode), then the data structure could have a 3rd field for a predicate or mode variable (or t or nil for always). In case of overlapping groups and predicates, the data-structure order would govern. And so on.