From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel Subject: Re: calc-dispatch problem Date: Mon, 11 Sep 2006 12:48:42 -0500 Message-ID: <87lkoql2f9.fsf@vh213602.truman.edu> References: <20060909194523.29BA.SLAWOMIR.NOWACZYK.847@student.lu.se> Reply-To: belanger@truman.edu NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157996950 12975 80.91.229.2 (11 Sep 2006 17:49:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 17:49:10 +0000 (UTC) Cc: belanger@truman.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 11 19:49:05 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 1GMpu0-0003pl-S6 for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 19:49:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMpu0-0003VT-CX for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 13:49:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMptn-0003UN-U7 for emacs-devel@gnu.org; Mon, 11 Sep 2006 13:48:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMptl-0003T7-Ti for emacs-devel@gnu.org; Mon, 11 Sep 2006 13:48:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMptl-0003T3-LF for emacs-devel@gnu.org; Mon, 11 Sep 2006 13:48:45 -0400 Original-Received: from [150.243.160.94] (helo=uranium.truman.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMpv5-0004Tl-87 for emacs-devel@gnu.org; Mon, 11 Sep 2006 13:50:07 -0400 Original-Received: from uranium.truman.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 5390551ED5 for ; Mon, 11 Sep 2006 12:55:19 -0500 (CDT) Original-Received: from vh213602.truman.edu.truman.edu (vh213602.truman.edu [150.243.64.4]) by uranium.truman.edu (Postfix) with ESMTP id 3FA5614080; Mon, 11 Sep 2006 12:55:18 -0500 (CDT) Original-To: emacs-devel@gnu.org In-Reply-To: (Jason Rumney's message of "Sun\, 10 Sep 2006 21\:05\:08 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:59695 Archived-At: Jason Rumney writes: > Slawomir Nowaczyk writes: ... >> 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. ... > 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. Repeating the keys should start calc up normally. But `calc-dispatch' followed by "`" or "M-`" normally starts calc-embedded-edit, and which behavior is used depends on whether or not the `sit-for' is interrupted or not. If the `sit-for' is interrupted, then a subsequent call of `this-command-keys' gets a longer string than if `sit-for' isn't interrupted. I don't know what good the `sit-for' is doing; calc shouldn't behave differently depending on how fast those keys are pressed. The behaviour without the `sit-for' seems the proper behaviour; perhaps the `sit-for' should be removed. Jay