From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36232: 26.2; (elisp) `Click Events': OBJECT "string-type text property" etc. Date: Sun, 16 Jun 2019 21:42:11 +0300 Message-ID: <834l4pv0cc.fsf@gnu.org> References: <> <<83fto9v989.fsf@gnu.org>> <83a7ehv3dv.fsf@gnu.org> <94ee0170-93a4-425c-a8c2-2608296860ed@default> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17712"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36232@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 20:47:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcaBP-0004Pn-6b for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 20:47:15 +0200 Original-Received: from localhost ([::1]:42072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcaBO-0007XL-5L for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 14:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59168) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcaBC-0007WV-2F for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:47:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hca7K-0002er-Gy for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hca7K-0002ei-Cj for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hca7K-0007PM-6T for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36232 X-GNU-PR-Package: emacs Original-Received: via spool by 36232-submit@debbugs.gnu.org id=B36232.156071053828411 (code B ref 36232); Sun, 16 Jun 2019 18:43:02 +0000 Original-Received: (at 36232) by debbugs.gnu.org; 16 Jun 2019 18:42:18 +0000 Original-Received: from localhost ([127.0.0.1]:41431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hca6b-0007OA-OW for submit@debbugs.gnu.org; Sun, 16 Jun 2019 14:42:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hca6a-0007Nv-69 for 36232@debbugs.gnu.org; Sun, 16 Jun 2019 14:42:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hca6U-00029J-Rb; Sun, 16 Jun 2019 14:42:10 -0400 Original-Received: from [176.228.60.248] (port=2482 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hca6N-0002If-PE; Sun, 16 Jun 2019 14:42:05 -0400 In-reply-to: <94ee0170-93a4-425c-a8c2-2608296860ed@default> (message from Drew Adams on Sun, 16 Jun 2019 11:32:24 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160681 Archived-At: > Date: Sun, 16 Jun 2019 11:32:24 -0700 (PDT) > From: Drew Adams > 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.