From: Robert Klein <roklein@roklein.de>
To: Reuben Thomas <rrt@sc3d.org>
Cc: emacs-org list <emacs-orgmode@gnu.org>,
Kaushal Modi <kaushal.modi@gmail.com>
Subject: Re: Recent regression in Org master with parsing of verbatim code with spaces
Date: Wed, 11 Oct 2017 10:12:23 +0200 [thread overview]
Message-ID: <20171011101223.25017f72@lt70.mpip-mainz.mpg.de> (raw)
In-Reply-To: <CAOnWdogijyDOV=LrfRgCQc7w7LmFz0GT_Er4Rywcw9h3VYC30Q@mail.gmail.com>
Hi,
On Wed, 11 Oct 2017 00:47:04 +0100
Reuben Thomas <rrt@sc3d.org> wrote:
> On 10 October 2017 at 18:29, Kaushal Modi <kaushal.modi@gmail.com>
> wrote:
>
> > On Tue, Oct 10, 2017 at 1:08 PM Kaushal Modi
> > <kaushal.modi@gmail.com> wrote:
> >
> >> I scanned through recent commits, but haven't yet figured out which
> >> commit affected this. Before I end up with git bisect, does anyone
> >> know a master branch commit that could have caused this?
> >>
> >
> > Hello,
> >
> > I found the commit causing this change:
> >
> > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=
> > 8383f7e08b964e129b175ef1c0297b1f4a8ed235
> >
>
> I haven't seen the rest of this thread, but at a guess is the
> problem to do with [:space:] matching vertical space such as newline
> and vertical tab? Fixing that is a bit painful, since as far as I
> know there's no regex for "horizontal space"; I guess it would be a
> matter of enumerating a suitable range of code points.
I'm fiddling with org-emphasis-regexp-components in my .emacs. I
put all horizontal whitespace characters (Wikipedia: "whitespace
character" with Unicode character property WSpace="y") in a string and
concat org-emphasis-regexp-components. Note, I include some extra
characters for pre, post, and borders (typographical double quotes).
(setq horizontal-whitespace
(string
(cdr (assoc-string "CHARACTER TABULATION" (ucs-names)))
(cdr (assoc-string "SPACE" (ucs-names)))
(cdr (assoc-string "NO-BREAK SPACE" (ucs-names)))
(cdr (assoc-string "OGHAM SPACE MARK" (ucs-names)))
(cdr (assoc-string "EN QUAD" (ucs-names)))
(cdr (assoc-string "EM QUAD" (ucs-names)))
(cdr (assoc-string "EN SPACE" (ucs-names)))
(cdr (assoc-string "EM SPACE" (ucs-names)))
(cdr (assoc-string "THREE-PER-EM SPACE" (ucs-names)))
(cdr (assoc-string "FOUR-PER-EM SPACE" (ucs-names)))
(cdr (assoc-string "SIX-PER-EM SPACE" (ucs-names)))
(cdr (assoc-string "FIGURE SPACE" (ucs-names)))
(cdr (assoc-string "PUNCTUATION SPACE" (ucs-names)))
(cdr (assoc-string "THIN SPACE" (ucs-names)))
(cdr (assoc-string "HAIR SPACE" (ucs-names)))
(cdr (assoc-string "NARROW NO-BREAK SPACE" (ucs-names)))
(cdr (assoc-string "MEDIUM MATHEMATICAL SPACE" (ucs-names)))
(cdr (assoc-string "IDEOGRAPHIC SPACE" (ucs-names)))))
(setq org-emphasis-regexp-components
`(,(concat horizontal-whitespace
"('\"{„“")
,(concat "-"
horizontal-whitespace
".,:!?;'\")}\\[“”")
,(concat horizontal-whitespace
"[:space:],\"'„“”")
"."
10))
Best regards
Robert
next prev parent reply other threads:[~2017-10-11 8:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 17:08 Recent regression in Org master with parsing of verbatim code with spaces Kaushal Modi
2017-10-10 17:29 ` Kaushal Modi
2017-10-10 23:47 ` Reuben Thomas
2017-10-11 8:12 ` Robert Klein [this message]
2017-10-10 18:31 ` Eric S Fraga
2017-10-10 18:36 ` Kaushal Modi
2017-10-12 15:01 ` Nicolas Goaziou
2017-10-12 15:20 ` Kaushal Modi
2017-10-12 15:29 ` Kaushal Modi
2017-10-12 15:33 ` Nicolas Goaziou
2017-10-12 15:43 ` Kaushal Modi
2017-10-12 15:53 ` Nicolas Goaziou
2017-10-12 16:08 ` Kaushal Modi
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=20171011101223.25017f72@lt70.mpip-mainz.mpg.de \
--to=roklein@roklein.de \
--cc=emacs-orgmode@gnu.org \
--cc=kaushal.modi@gmail.com \
--cc=rrt@sc3d.org \
/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).