emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-mode fontification error [6 times]


From: Henning Redestig
Subject: Re: [O] org-mode fontification error [6 times]
Date: Wed, 4 Apr 2012 19:46:46 +0200

Better now but still some issues here, now if I start a new org buffer and type

<s [TAB]

to complete the source block, I get org-mode fontification error again.

2012/4/4 Bastien <address@hidden>:
> Hi Nick,
>
> Nick Dokos <address@hidden> writes:
>
>> Confirmed. It only happens when you start typing into an empty buffer.
>> Looks like an off-by-one error in org.el:org-fontify-meta-lines-and-blocks-1,
>> aroung line 5487:
>>
>> ,----
>> |         ;; just any other in-buffer setting, but not indented
>> |         (add-text-properties
>> |          beg (1+ (match-end 0))
>> |          '(font-lock-fontified t face org-meta-line))
>> `----
>>
>> The second arg should probably be just (match-end 0).
>
> That's correct.  I first thought (min (point-max) (1+ (match-end 0)))
> would have been safer, but I really don't see why the 1+.
>
> Please confirm this is fixed.
>
> Thanks,
>
> --
>  Bastien



-- 
/Henning



reply via email to

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