title: How to call a function after quickfix windows was opened by calling make
body: <p>I'm writing a small plugin to work with <a href="https://mesonbuild.com" rel="nofollow noreferrer">meson</a>: I use the <code>makeprg</code> variable to set up the command, so I can benefit from the quickfix window. After I set the variable I call make and after that I want to call another local function:</p>
  
  <pre><code>  function s:LinkCompilationDatabase()
      ...
    endfunction
  
    function s:MesonSetup() abort
      let &amp;makeprg = 'meson setup builddir'
      silent make|redraw!
  
      s:LinkCompilationDatabase()
    endfunction
  </code></pre>
  
  <p>It fails with this error:</p>
  
  <pre><code>  Error detected while processing function &lt;SNR&gt;22_MesonSetup:
    line   xx:
    E21: Cannot make changes, 'modifiable' is off
  </code></pre>
  
  <p>It doesn't make any difference if the make step has an error or not.</p>
  
  <p>How do I call a function after <code>make</code>?</p>