guide-key icon indicating copy to clipboard operation
guide-key copied to clipboard

Getting error when passing negative arguments to a function

Open kaushalmodi opened this issue 11 years ago • 11 comments

When I tried doing M- -1 M-f, I got the below error in the mode-line.

Should that be reported as emacs bug or is it a bug in this package?

Error running timer `guide-key/polling-function': (wrong-type-argument sequencep #<EMACS BUG: INVALID DATATYPE (PVEC 0xfffffffffffffffe) Save your buffers immediately and please report this bug>)

kaushalmodi avatar Dec 10 '14 16:12 kaushalmodi

I also meets this error.

Please tell me the version of your Emacs and guide-key. How often does this error happen? How about other commands with universal-negative-argument?

kai2nenobu avatar Dec 11 '14 03:12 kai2nenobu

Hi,

I am using the stable 24.4 version of GNU emacs and Version: 20141207.907 of guide-key (latest from Melpa as of now).

This error happens every time I hit ESC - 1, even before I continue entering a binding like M-f. C-u M-f works fine (no error).

The issue is repeatable when using any negative prefix: ESC - 2, ESC - 3

kaushalmodi avatar Dec 11 '14 04:12 kaushalmodi

Hmm, I sometimes get this error but not always. I'll survey conditions to reproduce the error and report to Emacs developers.

BTW, does this error prevent a command behavior? For example, when you type ESC - 1 M-f, does the cursor move backward one word? Or doesn't the cursor move?

If this error prevents that command behavior, I'll revert this feature.

kai2nenobu avatar Dec 12 '14 03:12 kai2nenobu

No, the command behavior is not altered, it works as expected. Just that I see that error in the minibuffer.

Thanks.

Kaushal Modi

On Thu, Dec 11, 2014 at 10:48 PM, Tsunenobu Kai [email protected] wrote:

Hmm, I sometimes get this error but not always. I'll survey conditions to reproduce the error and report to Emacs developers.

BTW, does this error prevent a command behavior? For example, when you type ESC - 1 M-f, does the cursor move backward one word? Or doesn't the cursor move?

If this error prevents that command behavior, I'll revert this feature.

Reply to this email directly or view it on GitHub https://github.com/kai2nenobu/guide-key/issues/32#issuecomment-66728992.

kaushalmodi avatar Dec 12 '14 04:12 kaushalmodi

I'm seeing this error too, but only on Emacs 24.4.1 on Windows (7, 64 bit). I don't see the error on GNU/Linux or Mac OS X.

If I enter ESC - 1, see the error, and then enter ESC - 1 again it reliably crashes Emacs.

johnmastro avatar Dec 15 '14 21:12 johnmastro

@johnmastro Thanks for your informatin. But in my envirinment, both in Windows and in Linux this error happens.

@kaushalmodi @johnmastro Are you using key-chord with guide-key? If you so, turn off key-chord-mode and try again. In my case, key-chord-inut-method seems to conflict with guide-key.

kai2nenobu avatar Dec 17 '14 03:12 kai2nenobu

You're correct! That error does not show up after disabling key-chord-mode.

kaushalmodi avatar Dec 17 '14 13:12 kaushalmodi

Yep, confirmed for me too: no problem without key-chord-mode.

johnmastro avatar Dec 22 '14 21:12 johnmastro

Funny enough, this error occurs only when using -1, -2 or -3 negative prefixes. -4 does not cause a problem.

kaushalmodi avatar Feb 04 '15 14:02 kaushalmodi

It depends on your key-chord bindings. You must define key-chord bindings including 1, 2 or 3 but not 4.

Because I define key-chord like @4 and @5, I got the error with negative prefiex -4 or `-5'.

kai2nenobu avatar Feb 08 '15 15:02 kai2nenobu

Does this issue fixed with emacs' commit https://lists.gnu.org/archive/html/emacs-diffs/2015-02/msg00425.html ?

I don't have emacs-trunk environment :-(

lurdan avatar May 10 '15 00:05 lurdan