hooks works on a folder basis.
In my case I want to trigger the change using a keybinding/macro (there
is not rule I want to automatize, just a From: change I want to be able
to run manually)

I'm not quite sure send-hook or any other *-hook would provide a
workaround here.


but thx anyway!


On Sat, Jan 30, 2016 at 03:13:10AM +0100, Gabriel Philippe wrote:
> On Tue, Oct 27, 2015 at 5:45 PM, Raph <[email protected]> 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.
> 
> 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
> 
> 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"'
> 

Reply via email to