From e3d4762275b810307acf865c124b1265bc01a5d8 Mon Sep 17 00:00:00 2001 From: Clément Pit--Claudel Date: Thu, 31 Dec 2015 17:48:47 +0100 Subject: Fix spurious scrolling of *goals* and *response* buffers See https://github.com/cpitclaudel/company-coq/issues/8 and https://github.com/cpitclaudel/company-coq/issues/32 for some background info. --- generic/proof-shell.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'generic') diff --git a/generic/proof-shell.el b/generic/proof-shell.el index cb9ed2bb..4f89963e 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -1658,6 +1658,14 @@ i.e., 'goals or 'response." ;; indicate that (only) a response output has been given 'response)) + ;; FIXME (CPC 2015-12-31): The documentation of this hook suggests that it + ;; only gets run after new output has been displayed, but this isn't true at + ;; the moment: indeed, it gets run even for invisible commands. + ;; + ;; This causes issues in company-coq, where completion uses invisible + ;; commands to display the types of completion candidates; this causes the + ;; goals and response buffers to scroll. I fixed it by adding checks to + ;; coq-mode's hooks, but maybe we should do more. (run-hooks 'proof-shell-handle-delayed-output-hook))) -- cgit v1.2.3