emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] unicode nbsp in org-emphasis-regexp-components
Date: Sun, 24 Oct 2010 18:05:40 +0200	[thread overview]
Message-ID: <2FD034DB-D8AF-4EA3-8510-F279DA93739E@gmail.com> (raw)
In-Reply-To: <87lj5p7sy4.fsf@kotik.lan>

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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-10-24 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22 22:39 [PATCH] unicode nbsp in org-emphasis-regexp-components Łukasz Stelmach
2010-10-24 16:05 ` Carsten Dominik [this message]
2010-10-24 21:05   ` Łukasz Stelmach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2FD034DB-D8AF-4EA3-8510-F279DA93739E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lukasz.stelmach@iem.pw.edu.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).