[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Add zero width nbsp to pre component of org-emphasis-regexp-comp

From: Nicolas Goaziou
Subject: Re: [O] Add zero width nbsp to pre component of org-emphasis-regexp-components
Date: Mon, 18 Dec 2017 14:03:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


address@hidden (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)


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]