title: Advising an emacs interactive function: before
body: <p>I want to before-advice some function, which uses interactive arguments, e.g. <code>find-dired</code>:</p>
  
  <pre><code>(defadvice find-dired (before eab-find-dired activate)
    (message "before!")
    (setq find-args '("-iname '**'" . 10)))
  </code></pre>
  
  <p>But emacs executes this advice only after <code>find-dired</code> interactive session and I can't setup <code>find-args</code> before. How to resolve the contradiction?</p>
  
  <p>Upd. Note that <code>defadvice</code> macro is <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Porting-old-advices.html#Porting-old-advices" rel="nofollow">deprecated</a>.</p>