Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when passing negative arguments to a function #32

Open
kaushalmodi opened this issue Dec 10, 2014 · 11 comments
Open

Getting error when passing negative arguments to a function #32

kaushalmodi opened this issue Dec 10, 2014 · 11 comments

Comments

@kaushalmodi
Copy link

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>)

@kai2nenobu
Copy link
Owner

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?

@kaushalmodi
Copy link
Author

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

@kai2nenobu
Copy link
Owner

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.

@kaushalmodi
Copy link
Author

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 notifications@github.com
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
#32 (comment).

@johnmastro
Copy link

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.

@kai2nenobu
Copy link
Owner

@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.

@kaushalmodi
Copy link
Author

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

@johnmastro
Copy link

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

@kaushalmodi
Copy link
Author

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

@kai2nenobu
Copy link
Owner

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'.

@lurdan
Copy link

lurdan commented May 10, 2015

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 :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants