Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: sticky emulation



On Feb 12, 11:10am, Oliver Kiddle wrote:
}
} Is it somehow possible with this new feature to, from a function,
} revert to the user's interactive option set.

That'd require a bit more finagling; the saved option state is on the
C call stack, not somewhere that it can easily be grabbed, and we'd
need to figure out at exactly what point to save the options so as to
have the interactive set -- probably within ZLE, so it's orthogonal
to this feature.

Really all you need for option completion is to stash $options during
precmd and reference that in _options instead of the actual $options.



Messages sorted by: Reverse Date, Date, Thread, Author