all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: No possibility of determining image position/object from click
Date: Sat, 15 Jun 2002 08:13:51 -0600 (MDT)	[thread overview]
Message-ID: <200206151413.g5FEDpp10322@aztec.santafe.edu> (raw)
In-Reply-To: <x5d6v0i407.fsf@tupik.goethe.zz> (David.Kastrup@t-online.de)

      If one
    does an actual _click_ on such an image, the positions(?) but at least
    the keymaps that get consulted for this click are the keymaps that
    belong to the display _after_ Emacs updates the screen.  This means,
    for example, that you were sure to click on an image in the buffer
    (and display and corresponding tooltip suggested you would), but if
    Emacs actually gets to look at the click, it will instead yank the cut
    buffer into a different location than that at the time of the click.

I am trying to read this and understand it, but having trouble parsing
it.  I can't really grasp the sequence of user actions and Emacs
behaviors.

It seems correct that Emacs uses the latest data to interpret a click;
what else should it do?  If the text is changing rapidly, in general
you are taking a risk by clicking on it, since what you intended to
click on could have moved or changed by the time the mouse button
makes contact.  But I don't understand enough to say that there is no
bug here.  I am not sure if this is a bug, or an unfortunate
consequence of correct Emacs actions, or just what the user deserves.

    Also, if a larger body of text is displayed as an image by way of a
    'display property, the buffer position does not buy me anything (it
    will probably be that of the first letter of the text).

The buffer position tells you what image was clicked on.  Doesn't that
suffice for your immediate goal, which is to use just one keymap for
all the images?

We could add the relative position within in the image to the event,
and we could add other things to the event too.  Would someone like to
propose an upward compatible data representation that does the whole
job?

  reply	other threads:[~2002-06-15 14:13 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 [this message]
2002-06-15 14:34       ` David Kastrup
2002-06-15 16:58         ` Eli Zaretskii
2002-06-15 17:10           ` David Kastrup
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

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

  git send-email \
    --in-reply-to=200206151413.g5FEDpp10322@aztec.santafe.edu \
    --to=rms@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 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.