From: Eli Zaretskii <eliz@gnu.org>
To: Chong Yidong <cyd@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: non-breaking hyphens
Date: Mon, 17 Oct 2011 10:45:40 -0400 [thread overview]
Message-ID: <E1RFoRg-0000YS-Vf@fencepost.gnu.org> (raw)
In-Reply-To: <87d3dvg1r5.fsf@gnu.org> (message from Chong Yidong on Mon, 17 Oct 2011 09:56:46 -0400)
> From: Chong Yidong <cyd@gnu.org>
> Date: Mon, 17 Oct 2011 09:56:46 -0400
>
> >From the Text Display node in the Emacs manual:
>
> Some character sets define "no-break" versions of the space and
> hyphen characters, which are used where a line should not be broken.
> Emacs normally displays these characters with special faces
> (respectively, `nobreak-space' and `escape-glyph') to distinguish them
> from ordinary spaces and hyphens.
>
> Hmm---inserting #x2011 (NON-BREAKING HYPHEN) into the buffer does not
> show the character in the `escape-glyph' face. Does anyone know if
> #x2011 is indeed the character that manual is referring to? Is the
> manual description obsolete or is the Emacs behavior buggy?
The manual is referring to #xAD, see this fragment from
get_next_display_element (and the code thereafter which references
nbsp_or_shy):
if (! ASCII_CHAR_P (c) && ! NILP (Vnobreak_char_display))
nbsp_or_shy = (c == 0xA0 ? char_is_nbsp
: c == 0xAD ? char_is_soft_hyphen
: char_is_other);
Based on this, I'd say that the implementation is incomplete: it only
supports a subset of no-break characters defined by the Unicode
standard.
Note that the no-break characters should be displayed with the
`nobreak-space' face, not `escape-glyph' face. I think that the
manual should also mention the nobreak-char-display variable.
next prev parent reply other threads:[~2011-10-17 14:45 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 [this message]
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
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=E1RFoRg-0000YS-Vf@fencepost.gnu.org \
--to=eliz@gnu.org \
--cc=cyd@gnu.org \
--cc=emacs-devel@gnu.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.