m-fleury / isabelle-emacs

Clone of isabelle, with LSP extensions in seperate branches
Other
24 stars 5 forks source link

UTF-8 symbols #90

Open m-fleury opened 2 months ago

m-fleury commented 2 months ago

As the bug that inserts utf8 symbols instead of the Isabelle version is still not fixed, I have added a function that replaces them when saving (in isar-mode). That should having to open Isabelle/jEdit to fix symbols.

This should fix #74 and #81 (it is a work-around technically and requires to save twice actually, but that should be good enough)

m-fleury commented 3 weeks ago

Actually I now tend to think that we should go the full road: when opening a file, replace all symbols by utf-8 (isabelle-vsce is accepting them anyway, it is only isabelle build) and only replace them when closing the file.

Side issue: on a crash you get the inconsistent state.

Overall, I think his would avoid a lot of problems and make it easier to adapt to other text editors.