[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: calc-dispatch problem
From: |
Jason Rumney |
Subject: |
Re: calc-dispatch problem |
Date: |
Sun, 10 Sep 2006 21:05:08 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
Slawomir Nowaczyk <address@hidden> writes:
> Hello,
>
> Start emacs --no-init-file --no-site-file
>
> Evaluate (global-set-key (kbd "M-`") 'calc-dispatch)
>
> Press "M-`" twice, *fast*. I get an error "calc-embedded-edit: Expected `)'"
>
> If I press "M-`" slowly, however (with about 1-2 second pause between
> first and second keypress), calc opens properly.
>
> Strange. Any ideas?
It seems to be deliberate. calc-dispatch uses (sit-for
echo-keystrokes) to wait for further input, then acts differently
depending on what keys were pressed or if the sit-for timed out starts
calc normally. Repeating the keys that invoked calc-dispatch seems to
try to evaluate the current line using calc as far as I can tell.