tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

indent-line-to: Wrong type argument: wholenump, -2 #28

Closed pigmej closed 13 years ago

pigmej commented 13 years ago

when indenting a region emacs says:

indent-line-to: Wrong type argument: wholenump, -2
tamzinblake commented 13 years ago

@pigmej Can you provide an example region? I can't reproduce this.

pigmej commented 13 years ago

Will try it tomorrow on other computer... Can't reproduce it on laptop...

tamzinblake commented 13 years ago

@pigmej Any news on this?

pigmej commented 13 years ago

Can't reproduce with latest git... But I don't really remember the source code that was causing it ;/

tamzinblake commented 13 years ago

Assuming for now that b7273e1 fixed it.

Closing.

emallson commented 11 years ago

This error (I think) is currently occurring when attempting to indent block comment regions which are missing the *s.

For example:

/*
 * No problem indenting this.
 */

/*
   Problem indenting this.
 */

The message I'm getting is Wrong type argument: wholenump, -1. The error was originally for Wrong type argument: wholenump, -2, but was still an indent-related error. It occurs when attempting to indent individual lines or indent whole regions containing 'malformed' block comments.

tamzinblake commented 11 years ago

@emallson New issue for this, #82