unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: &nbsp; and nXML mode
Date: Wed, 11 Aug 2021 13:19:04 +0700	[thread overview]
Message-ID: <CAP_d_8UCUdCRs5-usX5evOja-N0VPNw5PbQxyzX_TGUgHvMa_w@mail.gmail.com> (raw)
In-Reply-To: <jwv35rg4jzw.fsf-monnier+emacs@gnu.org>

On Wed, 11 Aug 2021 at 12:46, Stefan Monnier via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:

> I thought the recommended way to "do &bnsp;" in XML is to use an
> actual NBSP character (because XML can use utf-8).

It can, but it might be desirable to have visible and typeable[*]
representation for unusual space characters, especially if there’s not
much nbsp awareness among those who are going to collaborate on a
document.

[*]: I mean visibility and typeability by muggles, i.e. without
relying on Emacs fontification, C-x 8 RET, or Xkb options. Otherwise:

Co-worker: (sends you a patch)

You: This space here should be non-breaking, we don’t want
prepositions hanging on the previous line when the next word gets
wrapped.

Co-worker: What's a non-breaking space?

You: (explain)

Co-worker: But how do I type one? BTW I'm on Windows.

You: (try to explain but don’t remember how to configure Windows
keyboard layouts) Here, just copy one of those already in the text.

Co-worker: But how do I tell which are which? They look exactly the same to me.



      reply	other threads:[~2021-08-11  6:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09  2:22 &nbsp; and nXML mode Jean-Christophe Helary
2021-08-09  5:57 ` Yuri Khan
2021-08-11  0:41   ` Jean-Christophe Helary
2021-08-11  5:45   ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-08-11  6:19     ` Yuri Khan [this message]

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=CAP_d_8UCUdCRs5-usX5evOja-N0VPNw5PbQxyzX_TGUgHvMa_w@mail.gmail.com \
    --to=yuri.v.khan@gmail.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).