Emacs Lisp: How to use interactive (for conditional arguments)?
I want to ask a second question to the user depending on the answer to the first one. (defun something (a b) (interactive (list (read-number "First num: ") (read-number "Second num: "))) (message "a is %s and b is %s" a b)) So I need a way to test the entry values : (defun something-else (a &optional b) (interactive (list (read-number "First num: ") (if (< a 2) (read-number "Second num: ")))) (message "a is %s" a)) But if: Symbol's value as variable is void: a Question : How can I use interactive in a really interactive way? (defun xtest (a &optional b) (interactive (let (a b) (setq a (read