Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folding eats comments before next definition #91

Open
wilcoxjay opened this issue Feb 24, 2016 · 1 comment
Open

Folding eats comments before next definition #91

wilcoxjay opened this issue Feb 24, 2016 · 1 comment

Comments

@wilcoxjay
Copy link
Contributor

Consider the following code

(* a foo is a nat *) 
Definition foo := nat.

(* bar increments a foo *)
Definition bar (x : foo) : foo := S x.

If I then fold the definition of foo, the documenting comment on bar also gets hidden. Is it possible to prevent this, or have an option that prevents this?

@cpitclaudel
Copy link
Owner

It would be nice :) That folding is handled by outline-minor-mode. Do you want to have a look at whether it supports the kind of feature that you described? (I think it doesn't, but we could double-check)

I've been wanting to experiment with origami.el, but I haven't really had time to do so; see gregsexton/origami.el#20. The scary part is the parse tree; it's more or less impossible to get a parse tree of a Coq document at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants