joaotavora / autopair

Automagically pair braces and quotes in emacs like TextMate
208 stars 35 forks source link

Fixes #28 : if (second err) isn't a string, errors occur. #29

Closed crocket closed 10 years ago

crocket commented 10 years ago

By checking that (second err) is a string, you can prevent errors.

crocket commented 10 years ago

The content of err in #28 is (args-out-of-range 54 235)

crocket commented 10 years ago

It doesn't seem to be a proper change, so I close it.

crocket commented 10 years ago

OK, it seems that the model is still intact, but autopair.el assumed (second err) had to be a string. However, (second err) could be a number since err was (args-out-of-range 54 235)

I open this again.

we need to consider it.

joaotavora commented 10 years ago

Thanks for the report and the ideia for the fix. I'm merging this into #22 and closing this.