[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Please make org-emphasis-regexp-components respect all whit
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: Please make org-emphasis-regexp-components respect all whitespace [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)] |
Date: |
Fri, 15 Sep 2017 00:22:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Reuben Thomas <address@hidden> writes:
> I currently have in my Emacs init:
>
> (setq org-emphasis-regexp-components ;; define before loading org
> '("[:space:]('\"{" "-[:space:].,:!?;'\")}\\[" "[:space:]\r\n" "." 1))
>
> In other words, I added [:space:] to the BORDER pattern too.
>
> It would seem reasonable to have something like this be the default. In
> particular, worg/dev/org-syntax.org already talks about “whitespace”,
> not specifically “spaces, tabs etc.”.
>
> But, I wonder, is it a problem that [:space:] contains vertical
> whitespace characters too? (I left “\r\n” in the BORDER pattern as a
> reminder that they are there on purpose, whereas PRE and POST previously
> contained only space and tab, i.e. horizontal whitespace.) On the other
> hand, since PRE and POST are anchored to the start and end of a line,
> and the number of newlines is by default limited to 1, perhaps it’s not
> a problem?
I don't think it is a problem with vertical spaces.
IIRC, that change was request by someone else some months ago, but the
request probably felt through the cracks.
Anyway, I made that change to master branch. We'll see what happens.
Thank you.
--
Nicolas Goaziou