From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Add zero width nbsp to pre component of org-emphasis-regexp-components Date: Mon, 18 Dec 2017 14:03:28 +0100 Message-ID: <87wp1kkx27.fsf@nicolasgoaziou.fr> References: <87tvwoz9sg.fsf@rdw.se> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQv52-0004UF-Ja for emacs-orgmode@gnu.org; Mon, 18 Dec 2017 08:03:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQv4v-00012W-HT for emacs-orgmode@gnu.org; Mon, 18 Dec 2017 08:03:40 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:41558) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQv4v-00010n-CA for emacs-orgmode@gnu.org; Mon, 18 Dec 2017 08:03:33 -0500 In-Reply-To: <87tvwoz9sg.fsf@rdw.se> ("Christoffer =?utf-8?Q?Stjernl=C3=B6?= =?utf-8?Q?f=22's?= message of "Mon, 18 Dec 2017 10:04:47 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Christoffer =?utf-8?Q?Stjernl=C3=B6f?= Cc: emacs-orgmode@gnu.org Hello, k@rdw.se (Christoffer Stjernl=C3=B6f) 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, --=20 Nicolas Goaziou