all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: RE: non-breaking hyphens
Date: Wed, 19 Oct 2011 06:59:12 -0700	[thread overview]
Message-ID: <CFC4398730EB4F4BAF495698C36DF1AF@us.oracle.com> (raw)
In-Reply-To: <87d3dtl9j7.fsf@mail.jurta.org>

> > 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.




  reply	other threads:[~2011-10-19 13:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 13:56 non-breaking hyphens Chong Yidong
2011-10-17 14:45 ` Eli Zaretskii
2011-10-18  3:39   ` Chong Yidong
2011-10-18  4:00     ` Eli Zaretskii
2011-10-18 12:08       ` Chong Yidong
2011-10-18 13:11         ` Stefan Monnier
2011-10-18 17:43           ` Drew Adams
2011-10-19  8:28             ` Juri Linkov
2011-10-19 13:59               ` Drew Adams [this message]
2011-10-19 14:37                 ` Stefan Monnier
2011-10-18 13:41         ` Eli Zaretskii
2011-10-19  8:27         ` Juri Linkov
2011-10-19  8:39           ` Eli Zaretskii
2011-10-19 13:59             ` Drew Adams
2011-10-19 15:12               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CFC4398730EB4F4BAF495698C36DF1AF@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.