The attached patch adds some further comments about how to set up emacs clang-completion-mode and moves duplicated code in the process filter functions to a common function.