emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [PATCH] unicode nbsp in org-emphasis-regexp-components


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] unicode nbsp in org-emphasis-regexp-components
Date: Sun, 24 Oct 2010 18:05:40 +0200

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, Łukasz Stelmach wrote:

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


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

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