From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: The display margin
Date: 29 Nov 2003 04:15:27 +0100 [thread overview]
Message-ID: <m3oeuvx3u8.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <x5u14ou5li.fsf@lola.goethe.zz>
David Kastrup <dak@gnu.org> writes:
> storm@cua.dk (Kim F. Storm) writes:
>
> > David Kastrup <dak@gnu.org> writes:
> >
> > > > In addition, the mouse cursor now changes to an arrow (rather
> > > > than the text mouse cursor) when it hoovers above an image.
> > >
> > > Rationale for that? Just interested. Maybe this should rather
> > > depend on an appropriate image property?
> >
> > That would be an improvement, yes. Will see what I can do.
> >
> > The rationale is that the "active point" of text cursor (the
> > vertical bar) is somewhere in the middle of the vertical line,
> > i.e. it's no good as a pointer if you want to have precise clicks on
> > an image.
> >
> > But of course, if that image is showing text, a text cursor may
> > still make sense...
>
> In general, a change of cursor is an indicator that the behavior of
> clicking will change. Since different cursors might indicate
> different behaviors, it certainly makes sense to have this as a
> separate property.
I will add both a generic 'pointer' text property, and a specific
image :pointer property.
Maybe also an image :keymap property, but that will require more work,
so I will have to investigate further before doing so.
> Now there is one situation when one _does_ have a
> change-of-behavior-on-click, and that is when we have a local keymap
> on the image, in particular one with mouse clicks in it. But this is
> not really fundamentally different from textual buttons (like the
> widgets used in customization buffers). So _if_ we get a default
> cursor change, I think it should be orthogonal to the image issue and
> rather depend on keymaps.
I think an explicit pointer property is better; then you can always
get the exact behaviour you want (who says that just because there is
a local keymap as some position, that keymap has any mouse-specific
bindings)?
>
> > > > Finally, when you use a block cursor, images are no longer shown
> > > > in "negative" when your window cursor is a filled block cursor
> > > > (only the border of the image is highlighted now). So clicking
> > > > on an image no longer makes it "unreadable"...
> > >
> > Is this good or bad?
>
> It would have been even better if it had been done previously.
That's life...
>
> > or newer would do... But if you want something which really narrows
> > down when this was introduced, (fboundp 'posn-object-x-y) will do.
>
> This has such an _indirect_ flavor to it. Let's hope that nobody
> does a branch having one but not the other feature.
Sure. Maybe (boundp 'void-text-area-pointer) will be better as it's
in the C code [will be when my current fixes are committed in a few days].
> > I was just asking in the context of "required information in mouse
> > click events". Your answer seems to be "nothing further".
>
> Actually, given that we now have a pixel-accurate position within the
> object (maybe this is generalizable in some manner also for text?), it
> would be nice having a way of knowing the pixel-accurate size of a
> displayed object in the first place so that one can calculate the
> relative position in the image easily, too.
I'll look into adding this info as well ... at least for images.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2003-11-29 3:15 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-25 16:22 The display margin Nick Roberts
2003-05-25 16:36 ` Stefan Monnier
2003-05-26 23:42 ` Nick Roberts
2003-11-23 2:08 ` Kim F. Storm
2003-11-23 22:53 ` Nick Roberts
2003-11-23 23:12 ` David Kastrup
2003-11-24 9:52 ` Kim F. Storm
2003-11-24 15:33 ` Kim F. Storm
2003-11-27 23:08 ` Kim F. Storm
2003-11-27 22:30 ` David Kastrup
2003-11-27 23:17 ` Stefan Monnier
2003-11-28 11:09 ` Kim F. Storm
2003-11-28 10:53 ` David Kastrup
2003-11-28 14:23 ` Thien-Thi Nguyen
2003-11-28 16:02 ` David Kastrup
2003-11-28 17:01 ` Thien-Thi Nguyen
2003-11-29 3:15 ` Kim F. Storm [this message]
2003-11-29 11:37 ` David Kastrup
2003-12-01 10:15 ` Kim F. Storm
2003-12-01 13:08 ` David Kastrup
2003-12-28 1:43 ` Kim F. Storm
2003-12-29 11:54 ` Richard Stallman
2003-11-24 0:09 ` Kim F. Storm
2003-11-25 21:11 ` Nick Roberts
2003-11-25 22:42 ` Kim F. Storm
-- strict thread matches above, loose matches on Subject: below --
2003-11-28 12:47 David PONCE
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=m3oeuvx3u8.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--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).