summaryrefslogtreecommitdiffstats
path: root/mutt.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-07-15 19:44:52 -0700
committerKevin McCarthy <kevin@8t8.us>2020-07-19 14:23:52 -0700
commit40ce20c8e3d704a14ee3ed8e89effb04a02796a4 (patch)
tree0014c11657a72ef7cd23a2f50bada47e9d93730c /mutt.h
parentc5c448d465388b4043f9a25e73d17a88f207db15 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mutt.h b/mutt.h
index 67eb99ce..402133bb 100644
--- a/mutt.h
+++ b/mutt.h
@@ -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,