diff options
author | Pierre Courtieu <Pierre.Courtieu@cnam.fr> | 2018-06-13 21:42:18 +0200 |
---|---|---|
committer | Pierre Courtieu <Pierre.Courtieu@cnam.fr> | 2018-06-13 21:42:18 +0200 |
commit | c54b17d14e57eb77093ec0006d2db5e9e3754902 (patch) | |
tree | 09ca5cc2f06aa749efc04f6c033fc95f2ca6842b | |
parent | 40ce93b55acf2a03f8455370694bff2205f9602d (diff) |
small fix on hyp overlays.
-rw-r--r-- | coq/coq.el | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1506,8 +1506,12 @@ Returnns the list of mappings hypname -> overlays. (let* ((fsthyp-pos (coq-find-first-hyp)) (fsthyp-ov (when fsthyp-pos (with-current-buffer proof-goals-buffer - (overlays-at fsthyp-pos))))) - (if fsthyp-ov coq-hyps-positions ;overlays are already there + (overlays-at fsthyp-pos)))) + ; is there at least one hyp overlay there? + (fsthyp-hypov (when fsthyp-ov + (cl-some (lambda(x) (overlay-get x 'hyp-name)) + fsthyp-ov)))) + (if fsthyp-hypov coq-hyps-positions ;overlays are already there (coq-build-hyps-overlays (coq-detect-hyps-positions-in-goals) proof-goals-buffer)))) (defun coq-find-hyp-overlay (h) |