unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Steven Tamm <steventamm@mac.com>
Subject: Executing Key Sequences directly
Date: Thu, 19 Sep 2002 10:00:20 -0700	[thread overview]
Message-ID: <47FC1DE0-CBF1-11D6-B497-00039390AB82@mac.com> (raw)

While working on the Mac OS X carbon port I was trying to switch from 
using a "polling" style of event handling to a "callback" style of 
event handling.  The intent is that the UI will run in a different 
thread from the eval loop, in a way similar to the w32 port.   However 
the port also needs to work so that it can work if the UI and the eval 
loop are in the same thread.  The complication comes from the scroll 
bars; the way that Mac OS X handles scroll bars is through a callback 
while in an "event loop" for the scroll bar.  So while doing live 
scrolling, the command loop never gets re-entered because it's stuck in 
another loop.  What is the best way to have this callback evaluate the 
lisp code for a specific keymap (in this case <vertical-scroll-bar> 
<mouse-down>)?   Should I use read_key_sequence?

Previously, the port didn't use this mechanism at all, but instead 
trapped all mouse down events and passed them to the system.  I'm 
trying to avoid this, but if there is no "good" way to evaluate a 
key-sequence inside C-code, this is what it will continue to do.

Thanks,
-Steven

                 reply	other threads:[~2002-09-19 17:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=47FC1DE0-CBF1-11D6-B497-00039390AB82@mac.com \
    --to=steventamm@mac.com \
    /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).