all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 36232@debbugs.gnu.org
Subject: bug#36232: 26.2; (elisp) `Click Events': OBJECT "string-type text property" etc.
Date: Sun, 16 Jun 2019 21:42:11 +0300	[thread overview]
Message-ID: <834l4pv0cc.fsf@gnu.org> (raw)
In-Reply-To: <94ee0170-93a4-425c-a8c2-2608296860ed@default> (message from Drew Adams on Sun, 16 Jun 2019 11:32:24 -0700 (PDT))

> Date: Sun, 16 Jun 2019 11:32:24 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 36232@debbugs.gnu.org
> 
> > When the text or overlay properties specify a string to display, that
> > string is displayed instead of, or in addition to, buffer text.  And
> > then you definitely CAN click on some character from such a string on
> > display.
> 
> Is that really what this is all about?  I guess you're
> talking about a "replacement" `display' property value
> that's a string.

Not necessarily "replacing".  For example, the 'before-string' overlay
property doesn't replace any text.

> (You're still not clicking a string.  You're clicking
> the displayed text of the string.  This is not to be
> pedantic; it's to say that the text quoted is unclear
> to confusing.)

You are splitting hair.  "Clicking a string" is as natural as
"clicking buffer text".  (Let's please not make this into another
bikeshedding galore.)

> > There is such a thing, but since you were confused, I replaced that
> > text with something more specific.
> 
> Thanks.  I'd still like to know what you are
> calling a "string-type property".  From above,
> are you talking about property `display'?

It's just one example, as I wrote before.

> > > Still, doesn't nil just mean that something besides
> > > buffer text (e.g. an image?) - and certainly not a
> > > string (IIUC) was what was clicked?
> > 
> > No, it means buffer text.
> 
> Not if it means clicking what property `display'
> shows.  That's not buffer text (chars in the buffer).

In that case, you get a string as OBJECT, not nil.

> > Among others, yes.  One example is the 'display' property whose value
> > is a string, a.k.a. "display string".  Another example is the
> > 'before-string' overlay property.
> 
> OK, now it's becoming more clear.  I don't think
> you should assume that that will be understood by
> just referring to "string-type" properties.

Which is why I replaced that text with a more concrete one.

> Overlay properties are not text properties.

I never said they were.

> > > > > `posn-object-x-y' is described as coordinates
> > > > > relative to a corner of "the object in POSITION"
> > > > > - what kind of cornered object is this, and
> > > > > what/where are its "corners"?
> > > >
> > > > Every object on display, be it a character glyph, a display string,
> > > > an image, or anything else, has 2 dimensions, which means it has 4
> > > > corners.
> > >
> > > So OBJECT means an "object on display"?
> > 
> > No, it means an object that caused something to be displayed.  That
> > something then has corners.
> 
> Then the object itself (e.g. string, nil, cons) does
> not have corners.

See above: I said "object on display".

> Too many shortcuts, too many assumptions that a
> reader will figure out what invisible jumps you're
> intending.

There should be fewer of them now.





  reply	other threads:[~2019-06-16 18:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<f8fbfedf-57fa-498e-a4ff-4a44169e7ab1@default>
     [not found] ` <<83fto9v989.fsf@gnu.org>
2019-06-16 16:43   ` bug#36232: 26.2; (elisp) `Click Events': OBJECT "string-type text property" etc Drew Adams
2019-06-16 17:36     ` Eli Zaretskii
2019-06-16 18:32       ` Drew Adams
2019-06-16 18:42         ` Eli Zaretskii [this message]
2019-06-15 21:21 Drew Adams
2019-06-16 15:30 ` Eli Zaretskii

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=834l4pv0cc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=36232@debbugs.gnu.org \
    --cc=drew.adams@oracle.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 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.