On Tue, Oct 27, 2015 at 5:45 PM, Raph <gibbo...@gmail.com> wrote:
> The issue is the expansion of $from which happens during the evaluation of the
> double-quoted string. This is too soon. It would have to be delayed to after 
> `source`
> has been evaluated so that $from takes the new and expected value.

Hi Raph,

I remember having wanted to delay the evaluation of variables. My
problem was something like
> set my_old_editor=$editor
> (...)
> set editor=$my_old_editor
Don't remember if I managed... Probably not.

However, you could try hooks. I'm pretty sure "$my_default_from" below
will be evaluated when the hook occurs. Maybe send-hooks in your case.
> folder-hook . 'set from="$my_default_from"'

-- 
Gabriel

Reply via email to