vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vile] setv for buffer-local variables?


From: Wayne Cuddy
Subject: [vile] setv for buffer-local variables?
Date: Fri, 24 Nov 2017 13:59:56 -0500
User-agent: Mutt/1.6.1 (2016-04-27)

I have a procedure that toggles boolean variables using setv. The
problem with this is that setv seems to adjust that corresponding
variable in all buffers.  What is the equivalent setl in vile's macro
language?

This is the offending line:
    setv &indirect $1 &not &indirect %mode

Note the name of the variable is determined/evaluated at execution
time using &indirect.  Replacing setv with setl does not work.

Or is there a way to build up a string and execute it... something
like sh's eval command?

I see execute-string exists but it doesn't seem to be callable from
the macro language?

What am I missing?

Wayne



reply via email to

[Prev in Thread] Current Thread [Next in Thread]