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

Edit Abbrevs broken? #52

Open
SimonBoulier opened this issue Feb 16, 2016 · 2 comments
Open

Edit Abbrevs broken? #52

SimonBoulier opened this issue Feb 16, 2016 · 2 comments

Comments

@SimonBoulier
Copy link

I don't succeed in editing abbrevs.

Step to reproduce:

  • Click Coq > ABBREVS > Abbrev Mode (here it works)
  • Click Coq > ABBREVS > Edit Abbrevs
  • edit an abbrev (let's say change "a" in "aa" for auto)
  • save the buffer (it says "Wrote /home/rascar/.emacs.d/abbrev_defs" and it indeed creates this file, which is merely empty, see here)
  • go back to Coq (it works with the edited abbrevs)
  • try to close emacs, it asks "Save abbrevs to ~/.emacs.d/abbrev_defs?"
  • answer Yes (the file abbrev_defs stay the same)
  • now if you reopen emacs and enable abbrevs no one abbrev is available ...

Temporarily, is there a way to change abbrevs directly in the code of PG?

@Matafou
Copy link
Contributor

Matafou commented Feb 16, 2016

Hi, thanks for reporting

To workaround: You can edit the coq-syntax.el and see the variable
coq-xxx-db. The second element of each entry is the abbrev.
P

Le mardi 16 février 2016, SimonBoulier notifications@github.com a écrit :

I don't succeed in editing abbrevs.

Step to reproduce:

  • Click Coq > ABBREVS > Abbrev Mode (here it works)
  • Click Coq > ABBREVS > Edit Abbrevs
  • edit an abbrev (let's say change "a" in "aa" for auto)
  • save the buffer (it says "Wrote /home/rascar/.emacs.d/abbrev_defs"
    and it indeed creates this file, which is merely empty, see here
    https://gist.github.com/SimonBoulier/e3ecac6617fb4d4a1a71)
  • go back to Coq (it works with the edited abbrevs)
  • try to close emacs, it asks "Save abbrevs to ~/.emacs.d/abbrev_defs?"
  • answer Yes (the file abbrev_defs stay the same)
  • now if you reopen emacs and enable abbrevs no one abbrev is
    available ...

Temporarily, is there a way to change abbrevs directly in the code of PG?


Reply to this email directly or view it on GitHub
#52.

@hendriktews
Copy link
Collaborator

I vaguely remember that I once spotted that coq mode always resets the abbrev table instead of reading it from disk. This could explain the reported behavior. However, I was under the impression that this problem was fixed several years ago?

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

No branches or pull requests

3 participants