Advising an emacs interactive function: before
I want to before-advice some function, which uses interactive arguments, e.g. find-dired : (defadvice find-dired (before eab-find-dired activate) (message "before!") (setq find-args '("-iname '**'" . 10))) But emacs executes this advice only after find-dired interactive session and I can't setup find-args before. How to resolve the contradiction? Upd. Note that defadvice macro is deprecated . Trey Jackson artscan answered his own question with a workable answer, but it's a bit incomplete and misleading. This also involves 'interactive , which can be confusing in and of itself - in that it