On Jan 24, 6:24 am, "Edward K. Ream" <[email protected]> wrote:

> A simple change will allow v.createOutlineFromCacheList to know
> whether it was called from itself or not.  If not, it is creating the
> top-level node, so it can scan the body text of that node or @all
> directives.

Thinking about this has uncovered what is probably a long-standing bug
in Leo.  Leo honors directives in @doc parts.  For example:

    @ A doc part
    @language rest
    @c
    *bold*

*bold* is indeed colored with @language rest. This is surprising.

I am inclined not to fix this buglet, for two reasons.  First, people
may be relying on it knowingly or unknowingly.  "Fixing" the bug may
break existing usage.  Second, leaving things as they are will allow
v.createOutlineFromCacheList to scan for @all directives very easily.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to