On Fri, Aug 12, 2016 at 4:40 PM, Nikolai Weibull <[email protected]> wrote:

> On Thu, Aug 4, 2016 at 3:26 PM, Robert Weiner <[email protected]> wrote:
> >
> > On Thu, Aug 4, 2016 at 8:59 AM, Robert Weiner <[email protected]> wrote:
> >>
> >> For now, I would create a command that you can bind to a key and invoke
> >> that when you want the highlighting applied unless you want to try using
> >> something like pre-command-hook.
> >
> > I meant post-command-hook.  We could also look at adding pre- and post-
> > hooks to the Koutliner knode:set-attr and knode:remove-attr functions.
>
> Hi!
>
> Sorry for not replying earlier.  I’ve been on vacation.
>
> I suppose one could advice the functions as well.  The problem,
> however, is that there doesn’t seem to be a way to get the location of
> a knode/kcell from the knode/kcell itself.


​Because this is part of the kview of the outline.  Use kcell-view:label
and kcell-view:level which take a buffer position and return the
appropriate information.

​


>   Also,
> kfile:insert-attributes-v3 would have to make sure that such a
> function where this information was available was called, to make sure
> that initialization was correctly performed.
>

​If the info is stored as an attribute, this will happen.

Bob
​

Reply via email to