DogLooksGood / parinfer-mode

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

save-mark-and-excursion is undefined in the prior version of Emacs #43

Closed zhcosin closed 7 years ago

zhcosin commented 7 years ago

Hi, I found a problem about parinfer-mode but it maybe is not problem of parinfer-mode. The cursor will auto backward many lines when I use backspace delete char in evil insert state, and the problem went away when I disable parinfer-mode. The problem only found in Emacs 24.5 on windows 7, not be found in Emacs 24 on debian.

DogLooksGood commented 7 years ago

Hi, @zhcosin , Which function is bound to the backspace delete char when the issue occur? You can query it via C-h k.

BTW, Is that you have the same configuration for your Emacs on Window7 and Emacs on Debian?

zhcosin commented 7 years ago

The configuration is same, and the function bind to backspace is parinfer-backward-delete-char . When I press i to enter evil insert state, the error "function is void: save-mark-and-excursion" has occur, this is a new function in emacs 25.1 and it do what save-excursion did in emacs 24.5.

zhcosin commented 7 years ago

I use emacs 25.1 and re-install all packages so the problem is went away.

DogLooksGood commented 7 years ago

This is caused by save-mark-and-excursion only available in the version after Emacs 25.

I just have a fix for this. 0b933c2dfcf27b2f9d2feefaaeeb2b111b36f94d