emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [bug] Fontification of bold and italics


From: Sebastien Vauban
Subject: Re: [O] [bug] Fontification of bold and italics
Date: Fri, 14 Mar 2014 11:34:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

Hi Bastien,

Bastien wrote:
> Sebastien Vauban writes:
>
>> With recent Org, sentences such as [1]:
>>
>> Explanation *answers the question "why?"*: show *why* the facts make sense.
>>
>> Explanation *makes people /care/*, so they are more motivated about learning
>> more. "Why would I want to do /that/?"
>>
>> are badly fontified. Tested with a minimal Emacs file.
>
> I vaguely remember this is a side-effect of another choice we made on
> purpose, but if you can bisect and find the commit, I'd be interested.

--8<---------------cut here---------------start------------->8---
f21150f1853180f63741083e427ef4e6bec1ea52 is the first bad commit
commit f21150f1853180f63741083e427ef4e6bec1ea52
Author: Bastien Guerry <address@hidden>
Date:   Fri Jan 3 11:16:14 2014 +0100

    org.el (org-do-emphasis-faces): Fix false positives handling

    * org.el (org-do-emphasis-faces): Handle false positives by
    restarting the re-search one char after the beginning of the
    match, not one char before its ending.

    Before this fix, consider this buffer

    ** Headline
      - *Bold* non-bold
      - *Bold* non-bold

    The first false positive is "** Headline\n  - *Bold*"

    Starting the search again from the last "*" will skip
    the "*Bold*" string.  Starting again at "* Headline" will
    find it.
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

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