I am new to Emacs and trying to write some Emacs Lisp functions.
I would like to write a function that takes two parameters and can handle interactivity. However, one of the parameters is logical - it would be ideal if I could use (y-or-no-p) , but (interactive) doesn't seem to have character code for this.
Any ideas?
Update: I am using GNU Emacs 23.
Also, here is what my function looks like:
(defun foo (str bool) (interactive "sSome text: \nsDo the thing?") (some-func str) (if bool (some-other-func str)))
emacs lisp elisp
a paid nerd
source share