diff options
author | Kevin McCarthy <kevin@8t8.us> | 2020-07-15 19:44:52 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2020-07-19 14:23:52 -0700 |
commit | 40ce20c8e3d704a14ee3ed8e89effb04a02796a4 (patch) | |
tree | 0014c11657a72ef7cd23a2f50bada47e9d93730c /mutt.h | |
parent | c5c448d465388b4043f9a25e73d17a88f207db15 (diff) |
Add first version of MuttLisp.
This is somewhat simple enhancement to muttrc processing, not a
full-blown embedded scripting language. There are no variables,
functions, types, or abilities that compete with macros.
MuttLisp can be invoked using the "run" command. If
$muttlisp_inline_eval is set, it can also be invoked with a bare
parenthesis expression as a command argument.
$muttlisp_inline_eval defaults unset, to avoid breaking existing
configurations, which might have bare parenthesis arguments for
regexps.
Diffstat (limited to 'mutt.h')
-rw-r--r-- | mutt.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -127,6 +127,8 @@ struct timespec #define MUTT_TOKEN_COMMENT (1<<5) /* don't reap comments */ #define MUTT_TOKEN_SEMICOLON (1<<6) /* don't treat ; as special */ #define MUTT_TOKEN_ESC_VARS (1<<7) /* escape configuration variables */ +#define MUTT_TOKEN_LISP (1<<8) /* enable lisp processing */ +#define MUTT_TOKEN_NOLISP (1<<9) /* force-disable lisp, ignoring $lisp_args */ typedef struct { @@ -475,6 +477,7 @@ enum OPTINCLUDEENCRYPTED, OPTINCLUDEONLYFIRST, OPTKEEPFLAGGED, + OPTMUTTLISPINLINEEVAL, OPTMAILCAPSANITIZE, OPTMAILCHECKRECENT, OPTMAILCHECKSTATS, |