title: emacs lisp: How to remove/delete an element of a list?
body: <p>I tried my first steps with emacs lisp to remove the element <code>"\\.synctex\\.gz"</code> from <code>LaTeX-clean-intermediate-suffixes</code>:</p>
  
  <pre><code>(eval-after-load 'latex
    '(setq my-LaTeX-clean-intermediate-suffixes (remove '"\\.synctex\\.gz" LaTeX-clean-intermediate-suffixes)); that's not working
    '(setq LaTeX-clean-intermediate-suffixes
       (append my-LaTeX-clean-intermediate-suffixes (list "-blx\\.bib" "\\.run\\.xml"))))
  </code></pre>
  
  <p>How can I remove this element here? I found <code>remove</code> and <code>delete</code>, tried them both, but I get an <code>wrong-number-of-arguments</code>-type of error.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I tried this:</p>
  
  <pre><code>(eval-after-load 'latex
    (setq LaTeX-clean-intermediate-suffixes (delete "\\.synctex\\.gz"  LaTeX-clean-intermediate-suffixes))
    '(setq LaTeX-clean-intermediate-suffixes
       (append LaTeX-clean-intermediate-suffixes (list "-blx\\.bib" "\\.run\\.xml"))))
  </code></pre>
  
  <p>but I receive quite a long output in <em>Backtrace</em> :-(</p>