(defun helm-do-ag (&optional basedir targets default-input)
I want to call the above function with default-input, leaving basedir targets empty
Do I call (helm-do-ag nil nil "something") ?
(defun helm-do-ag (&optional basedir targets default-input)
I want to call the above function with default-input, leaving basedir targets empty
Do I call (helm-do-ag nil nil "something") ?
Correct. Unspecified optional arguments get the value
nilby default, and so passingnilfor them explicitly is no different.