all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jay Belanger <belanger@truman.edu>
Cc: belanger@truman.edu
Subject: Re: calc-dispatch problem
Date: Mon, 11 Sep 2006 12:48:42 -0500	[thread overview]
Message-ID: <87lkoql2f9.fsf@vh213602.truman.edu> (raw)
In-Reply-To: <u4pvfjxmz.fsf@jasonrumney.net> (Jason Rumney's message of "Sun\, 10 Sep 2006 21\:05\:08 +0100")


Jason Rumney <jasonr@gnu.org> writes:
> Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> 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

  parent reply	other threads:[~2006-09-11 17:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-10 16:04 calc-dispatch problem Slawomir Nowaczyk
2006-09-10 18:19 ` David Kastrup
2006-09-10 19:11   ` Slawomir Nowaczyk
2006-09-10 20:05 ` Jason Rumney
2006-09-11 14:30   ` Slawomir Nowaczyk
2006-09-11 17:48   ` Jay Belanger [this message]
2006-09-11 19:20     ` Slawomir Nowaczyk
2006-09-12 18:27       ` Jay Belanger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lkoql2f9.fsf@vh213602.truman.edu \
    --to=belanger@truman.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.