From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] unicode nbsp in org-emphasis-regexp-components Date: Sun, 24 Oct 2010 18:05:40 +0200 Message-ID: <2FD034DB-D8AF-4EA3-8510-F279DA93739E@gmail.com> References: <87lj5p7sy4.fsf@kotik.lan> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=44543 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA34y-0001ZJ-CG for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 12:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PA34u-0003AD-Su for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 12:05:49 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:42980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PA34u-00039v-HQ for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 12:05:48 -0400 Received: by eydd26 with SMTP id d26so1126605eyd.0 for ; Sun, 24 Oct 2010 09:05:47 -0700 (PDT) In-Reply-To: <87lj5p7sy4.fsf@kotik.lan> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?Q?=C5=81ukasz_Stelmach?= Cc: emacs-orgmode@gnu.org Hi Lukasz, I am aftraid that this will break flavors of Emacs which do not support unicode characters, like Emacs 22. Org-mode still supports Emacs 22. And I do not know how to write this in a way that it will remaind compatible. Do you? - Carsten On Oct 23, 2010, at 12:39 AM, =C5=81ukasz Stelmach wrote: > Hi. > > The Unicode contains a NON-BREAK SPACE character at position 0xA0. =20 > IMHO > org-mode's emphasis code should by default treat this (any other?) > character the same as normal space. When i write: > > It was a /big bang/. > > I'd like the "big bang" to be put in italic especially when exported =20= > to > HTML. (I don't know if it goes properly through all the mailing =20 > systems > but I put the "\u00A0" between "a" and "/" above.) > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/org.el b/lisp/org.el > index 6ea9d25..b8cd38e 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -3419,7 +3419,7 @@ After a match, the match groups contain these =20= > elements: > "\\([" post "]\\|$\\)"))))) > > (defcustom org-emphasis-regexp-components > - '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1) > + '(" \t('\"{\u00A0" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1) > "Components used to build the regular expression for emphasis. > This is a list with 6 entries. Terminology: In an emphasis string > like \" *strong word* \", we call the initial space PREMATCH, the =20 > final > --8<---------------cut here---------------end--------------->8--- > > --=20 > Mi=C5=82ego dnia, > =C5=81ukasz Stelmach > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode