emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Christoffer Stjernlöf" <k@rdw.se>
Cc: emacs-orgmode@gnu.org
Subject: Re: Add zero width nbsp to pre component of org-emphasis-regexp-components
Date: Mon, 18 Dec 2017 14:03:28 +0100	[thread overview]
Message-ID: <87wp1kkx27.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87tvwoz9sg.fsf@rdw.se> ("Christoffer Stjernlöf"'s message of "Mon, 18 Dec 2017 10:04:47 +0100")

Hello,

k@rdw.se (Christoffer Stjernlöf) writes:

> I'm sure there's a reason this hasn't been done, so I'll suggest it and
> hope for a lecture. :) Sometimes I want to emphasise just part of a word
> (I'll use the company name socialgrow as a running example), so I insert
> a zero width non-breaking space around the emphasis marks, like so:
> social[zewinbsp]*grow*. My thinking is that this will let Org think
> they are two separate words, but in any real sense they stick together
> (no linebreak across them, zero spacing between them.)
>
> However, this requires one to add the zero width non breaking space
> to the pre component of org-emphasis-regexp-components, which is
> not the default. Any reason that is so?

It is the default in Org development branch, using [:space:] character
class. The change will be available in Org 9.2.  Meanwhile, you can use
the default value:

  '("-[:space:]('\"{" "-[:space:].,:!?;'\")}\\[" "[:space:]" "." 1)


Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2017-12-18 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18  9:04 Add zero width nbsp to pre component of org-emphasis-regexp-components Christoffer Stjernlöf
2017-12-18 13:03 ` Nicolas Goaziou [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.orgmode.org/

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

  git send-email \
    --in-reply-to=87wp1kkx27.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=k@rdw.se \
    /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 public inbox

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

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