From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: calc-dispatch problem Date: Sun, 10 Sep 2006 21:05:08 +0100 Message-ID: References: <20060909194523.29BA.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157918834 13854 80.91.229.2 (10 Sep 2006 20:07:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2006 20:07:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 10 22:07:12 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMVaC-0003VV-4R for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 22:07:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMVaB-0003SM-Lp for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 16:07:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMVZx-0003O3-BM for emacs-devel@gnu.org; Sun, 10 Sep 2006 16:06:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMVZt-0003Du-FT for emacs-devel@gnu.org; Sun, 10 Sep 2006 16:06:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMVZt-0003Dl-9j for emacs-devel@gnu.org; Sun, 10 Sep 2006 16:06:53 -0400 Original-Received: from [194.106.33.237] (helo=outmail.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMVb0-0004AQ-7r for emacs-devel@gnu.org; Sun, 10 Sep 2006 16:08:02 -0400 Original-Received: from wanchan.jasonrumney.net (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail.freedom2surf.net (Postfix) with ESMTP id 61CFC5016A; Sun, 10 Sep 2006 21:06:52 +0100 (BST) Original-Received: from TONKOTSU-RAMEN (tonkotsu-ramen.jasonrumney.net [10.0.0.28]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 296C13B; Sun, 10 Sep 2006 21:06:52 +0100 (BST) Original-To: Slawomir Nowaczyk In-Reply-To: <20060909194523.29BA.SLAWOMIR.NOWACZYK.847@student.lu.se> (Slawomir Nowaczyk's message of "Sun\, 10 Sep 2006 18\:04\:09 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59636 Archived-At: Slawomir Nowaczyk 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.