unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: calc-dispatch problem
Date: Sun, 10 Sep 2006 21:05:08 +0100	[thread overview]
Message-ID: <u4pvfjxmz.fsf@jasonrumney.net> (raw)
In-Reply-To: <20060909194523.29BA.SLAWOMIR.NOWACZYK.847@student.lu.se> (Slawomir Nowaczyk's message of "Sun\, 10 Sep 2006 18\:04\:09 +0200")

Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> 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.

  parent reply	other threads:[~2006-09-10 20:05 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 [this message]
2006-09-11 14:30   ` Slawomir Nowaczyk
2006-09-11 17:48   ` Jay Belanger
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=u4pvfjxmz.fsf@jasonrumney.net \
    --to=jasonr@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).