<<< Date Index >>>     <<< Thread Index >>>

Re: ^R / ^D and threads



Andrew W. Nosenko <awn@xxxxxxxxx>:

> Inapplicable.  "toggle resolve" just inverts value of resolve where we
> need "save and restore" ability.

I hate programming with macros (I prefer functional programming) and I
don't use Mutt's macros much, but the way you solve this sort of
problem in macro programming languages (like LaTeX) is to use a macro
to remember the current state of $resolve. This macro gets redefined
by every macro that changes $resolve. So you might have a macro
save-resolve that redefines restore-resolve to invoke either
set-resolve or clear-resolve, each of which redefines save-resolve as
appropriate. It's fun to debug, and it's good practice for using
LaTeX.