From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz?= Stelmach Subject: [PATCH] unicode nbsp in org-emphasis-regexp-components Date: Sat, 23 Oct 2010 00:39:47 +0200 Message-ID: <87lj5p7sy4.fsf@kotik.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=42587 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9QHH-0006HV-Nb for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 18:40:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9QHG-0000Cq-Ic for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 18:39:59 -0400 Received: from lo.gmane.org ([80.91.229.12]:40790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9QHG-0000Cf-90 for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 18:39:58 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P9QHD-0008Ie-42 for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 00:39:55 +0200 Received: from 87-205-172-252.adsl.inetia.pl ([87.205.172.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Oct 2010 00:39:55 +0200 Received: from lukasz.stelmach by 87-205-172-252.adsl.inetia.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Oct 2010 00:39:55 +0200 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: emacs-orgmode@gnu.org Hi. The Unicode contains a NON-BREAK SPACE character at position 0xA0. 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 to HTML. (I don't know if it goes properly through all the mailing 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 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 final --8<---------------cut here---------------end--------------->8--- -- Miłego dnia, Łukasz Stelmach