From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: RE: line adjustment at the end of a sentence
Date: Thu, 27 Sep 2012 07:57:16 -0700 [thread overview]
Message-ID: <CB1FE4856C76492D8563F37C593098C6@us.oracle.com> (raw)
In-Reply-To: <jwv4nmjzmlz.fsf-monnier+INBOX@gnu.org>
> > I agree generally with everything you said. Wrt showing no-break
> > space and non-breaking hyphen so that you can distinguish them from
> > SPC and ASCII hyphen, `show-wspace.el' can help.
>
> I don't think any of those comes anywhere close to the convenient of
> "SPC vs SPC-SPC" in terms of showing the difference without getting in
> the way.
That was not the point. I was responding to your point that:
> how to distinguish on screen a SPC from a NBSP. Emacs highlights
> the NBSP specially (because accidental use of NBSP in program code
> leads to trouble) but that's not ideal when reading text that uses
> NBSP between Dr. and Watson or between < and the quoted text.
The `nobreak-char-display' highlighting provided by Emacs is all or nothing (one
variable for both chars together, and not a user option), face not separately
customizable from escape glyph highlighting, and no toggles.
Those are the weaknesses that `show-wspace.el' overcomes for these two chars and
the reason it can help distinguishing them without that always getting in the
way.
And not just those two chars. You can use it to distinguish any chars you like.
> > There are commands that toggle the distinguishing display
> > of each on/off
>
> A really good solution would not require turning it on/off.
It's not about requiring. Sometimes (and perhaps in some places) you want to
distinguish such chars, sometimes you do not. You want to be able to pick those
times - i.e., on demand.
Other editors and word processors do this kind of thing all the time, not only
wrt hard-to-detect chars but wrt other things that you sometimes want to see and
sometimes do not: XML element boundaries and attributes, editor text
symbols/artifacts (e.g. pilcro), conditionalized text, and so on.
Just as in Emacs you can choose whether to see control chars using ^ syntax or
\ooo syntax, so you can choose whether and when to see other chars in particular
ways.
No DWIM will ever guess just when you want to see what. You can add heuristics
to try to fit common use cases, but that's all.
See what XML and WYSIWYG editors do in this regard: they offer different "views"
that correspond to common use cases, showing different sets of such things, and
they offer individual toggle commands to handle individual such things. See
Framemaker, Arbortext Epic, Oxygen, and other XML editors, for example.
next prev parent reply other threads:[~2012-09-27 14:57 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 10:56 line adjustment at the end of a sentence T.F. Torrey
2012-09-26 12:00 ` Tom Kramer
2012-09-26 17:12 ` Ludwig, Mark
2012-09-26 17:44 ` Yuri Khan
2012-09-26 19:23 ` Eli Zaretskii
2012-09-26 17:50 ` Drew Adams
[not found] ` <mailman.9789.1348681498.855.help-gnu-emacs@gnu.org>
2012-09-27 0:34 ` Stefan Monnier
2012-09-27 5:26 ` Drew Adams
2012-09-27 12:19 ` Stefan Monnier
2012-09-27 14:57 ` Drew Adams [this message]
2012-09-27 16:37 ` Stefan Monnier
2012-09-27 17:00 ` Drew Adams
[not found] ` <mailman.9862.1348765244.855.help-gnu-emacs@gnu.org>
2012-09-27 18:04 ` Stefan Monnier
[not found] ` <mailman.9790.1348681903.855.help-gnu-emacs@gnu.org>
2012-09-26 20:35 ` Barry Margolin
2012-09-27 3:21 ` Eric Abrahamsen
2012-09-29 14:09 ` Sivaram Neelakantan
[not found] ` <mailman.9978.1348927764.855.help-gnu-emacs@gnu.org>
2012-09-29 17:13 ` Stefan Monnier
2012-10-14 1:21 ` David Combs
2012-10-14 15:58 ` Joe Fineman
2012-10-14 18:13 ` PJ Weisberg
[not found] ` <mailman.10975.1350238417.855.help-gnu-emacs@gnu.org>
2012-11-25 1:05 ` David Combs
2012-12-02 3:03 ` J. David Boyd
2012-10-19 22:03 ` Stefan Monnier
[not found] <mailman.9731.1348608357.855.help-gnu-emacs@gnu.org>
2012-09-25 21:41 ` Pascal J. Bourguignon
-- strict thread matches above, loose matches on Subject: below --
2012-09-25 21:25 Tom Kramer
2012-09-25 21:50 ` Eli Zaretskii
2012-09-25 23:28 ` Peter Dyballa
2012-09-25 12:54 Tom Kramer
2012-09-25 16:29 ` Eli Zaretskii
2012-09-25 18:40 ` Óscar Fuentes
2012-09-25 21:18 ` Pascal J. Bourguignon
2012-09-25 21:53 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CB1FE4856C76492D8563F37C593098C6@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).