Make the current buffer and the project root available to filter functions