unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David.Kastrup@t-online.de (David Kastrup)
Cc: emacs-devel@gnu.org
Subject: Re: No possibility of determining image position/object from click
Date: 15 Jun 2002 19:10:10 +0200	[thread overview]
Message-ID: <x5sn3oii31.fsf@tupik.goethe.zz> (raw)
In-Reply-To: <1659-Sat15Jun2002195833+0300-eliz@is.elta.co.il>

"Eli Zaretskii" <eliz@is.elta.co.il> writes:

> > From: David.Kastrup@t-online.de
> > Date: 15 Jun 2002 16:34:25 +0200
> > 
> > 
> > Emacs does not update the
> > screen while it is busy, which can easily last for a few seconds.  If
> > I click onto the screen during that time, buffer positions and
> > keymaps will be calculated corresponding to what the screen will look
> > like after the next screen update finally gets done.
> 
> How is this different from the situation where a user types C-w in
> the middle of a lengthy calculation which will eventually change the
> text inside the region (and thus the result of C-w).
> 
> In other words, typing ahead when Emacs is busy always runs a risk of
> doing the wrong thing.  Am I missing something?

When clicking on something, we establish a visual correlation between
the object we are clicking on and the mouse pointer, not between the
naked screen position and the mouse pointer.  That is, when we are
queing keyboard events, we are conceptually queuing
"process C-x C-w"
"process C-d" ...

With mouse clicks, we are conceptually queuing "click on object/buffer
position ...", not "click on screen pixel coordinates ...".  The
perceived discrepancy in processing is quite disconcerting.

During such busy calculations, for example tooltips are still being
processed, and they are processed taking into account the look of the
buffer _before_ redisplay (which is the only thing that makes sense
to the user, anyhow), at least that is my impression.  The tooltip in
my case then promises something like "[button-2] toggles preview",
but if you press the button, and this gets queued, and then some
other stuff gets updated in a process sentinel or wherever else
before the event gets processed, something quite different from what
the tooltip promised will happen.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de

  reply	other threads:[~2002-06-15 17:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <x5r8jnfi8a.fsf@tupik.goethe.zz>
2002-06-09 15:19 ` No possibility of determining image position/object from click Richard Stallman
2002-06-09 20:36   ` David Kastrup
2002-06-15 14:13     ` Richard Stallman
2002-06-15 14:34       ` David Kastrup
2002-06-15 16:58         ` Eli Zaretskii
2002-06-15 17:10           ` David Kastrup [this message]
2002-06-16 23:29         ` Richard Stallman

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=x5sn3oii31.fsf@tupik.goethe.zz \
    --to=david.kastrup@t-online.de \
    --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).