DogLooksGood / parinfer-mode

Parinfer for Emacs :)
GNU General Public License v3.0
407 stars 33 forks source link

parinfer--prepare: Invalid function: parinfer-save-excursion #46

Closed marcinwaldowski closed 7 years ago

marcinwaldowski commented 7 years ago

After installing parinfer 0.4.10 from MELPA Stable in emacs 24.5 I cannot work on clojure files anymore. Cursor jumps to random place on backspace and in Messages I see lines: parinfer--prepare: Invalid function: parinfer-save-excursion.

It looks like version 0.4.9 works correctly. Previously I used version 0.4.5 which also worked for me.

DogLooksGood commented 7 years ago

This is not related to the changes in 0.4.10 I think. the function parinfer-save-excursion should be an alias to save-excursion. And I need some help.

Please execute (defalias 'parinfer-save-excursion 'save-excursion) manually, you can do this with M-:, enter the form then press enter.

Then, will this problem still occurred?

Also, please tell me which function is bound to your backspace? (you can check with C-h k backspace)

marcinwaldowski commented 7 years ago

Thanks for the answer.

Executing (defalias 'parinfer-save-excursion 'save-excursion) doesn't help. The problem still occurs.

C-h k backspace doesn't show anything. I tried C-h c backspace and it prints: DEL (translated from <backspace>) runs the command backward-delete-char-untabify.

Previously I wrote jumps to random place. I should have wrote jumps to beggining of buffer. Also sometimes it behave same way for enter.

C-h c enter results with: RET (translated from <return>) runs the command newline

marcinwaldowski commented 7 years ago

I removed all .elc files from .emacs.d/elpa/parinfer-0.4.10, restarted emacs and now version 0.4.10 works for me. It looks like there is a need to know Emacs internals to actually use it. Sorry for bothering and big thanks for great Parinfer for Emacs.