From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: [bug] Fontification of bold and italics Date: Fri, 14 Mar 2014 11:34:12 +0100 Message-ID: <86wqfxul0b.fsf@somewhere.org> References: <86fvn6gncq.fsf@somewhere.org> <87pplqozk9.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 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