FStarLang / fstar-mode.el

Emacs support for F*
Apache License 2.0
67 stars 17 forks source link

Feature requests from 2014-04-17 discussion #56

Closed cpitclaudel closed 7 years ago

cpitclaudel commented 7 years ago
cpitclaudel commented 7 years ago

Jump to the "alternate" location of an error

@fournet Do you have a small example where multiple locations being reported for an error, and it's useful to be able to visit all locations?

s-zanella commented 7 years ago

While you're at it, it would be really useful if describe-repl could print the current value of interactively-settable options (https://github.com/FStarLang/FStar/wiki/Pragmas-%28%23set-options%2C-%23reset-options%29)

cpitclaudel commented 7 years ago

@s-zanella Happy to add support for this on the Emacs side. Do you want to volunteer an F*-side patch (presumably on top of the currently-unmerged PR)?

s-zanella commented 7 years ago

Sure, I'll prepare a patch for https://github.com/FStarLang/FStar/pull/995

cpitclaudel commented 7 years ago

Wonderful, thanks! I'll update the UI side very soon (the patch looks great)

cpitclaudel commented 7 years ago

I extended your patch to include default values, too, and pushed the UI. Let me know if it works! The keybinding is C-c C-s h o, or M-x fstar-options.

s-zanella commented 7 years ago

Works and looks great. Thanks!

cpitclaudel commented 7 years ago

Great, thanks for the suggestion and the patch!

cpitclaudel commented 7 years ago

Feel free to comment on the rest of the PR, of course.

s-zanella commented 7 years ago

Nit: the buffer that shows the list of options is called *fstar: dependencies*

cpitclaudel commented 7 years ago

Thanks, fixed.