From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Siyuan Chen Newsgroups: gmane.emacs.bugs Subject: bug#71598: Text property "help-echo" display "mouse-x" incorrectly Date: Mon, 17 Jun 2024 07:47:40 +0800 Message-ID: References: <86cyogsob0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000204a2b061b0a7a66" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10621"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71598@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 17 01:50:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sIzdf-0002a6-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jun 2024 01:50:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIzdK-0001CO-Fy; Sun, 16 Jun 2024 19:50:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIzdJ-0001CD-GS for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 19:50:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIzdJ-0003tM-8C for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 19:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIzdK-0005d2-H1 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 19:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Siyuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2024 23:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71598 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 71598-submit@debbugs.gnu.org id=B71598.171858174321512 (code B ref 71598); Sun, 16 Jun 2024 23:50:02 +0000 Original-Received: (at 71598) by debbugs.gnu.org; 16 Jun 2024 23:49:03 +0000 Original-Received: from localhost ([127.0.0.1]:56602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIzcM-0005at-G2 for submit@debbugs.gnu.org; Sun, 16 Jun 2024 19:49:02 -0400 Original-Received: from mail-yw1-f180.google.com ([209.85.128.180]:57840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIzcK-0005aN-Ab for 71598@debbugs.gnu.org; Sun, 16 Jun 2024 19:49:01 -0400 Original-Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-632bcf111ffso21823587b3.3 for <71598@debbugs.gnu.org>; Sun, 16 Jun 2024 16:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718581673; x=1719186473; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rBMGU8kElKvNpmOp4KhKEzlmOPaS7Y8fFeVSnWuE73k=; b=XyS5or7Bf3riS+AVClRvs7DeMcsjp4VCf2+VRhSMxWcgGyEwUY6lw2wMXJ4JiTqkL0 1ciH4JQM1wL/Md+624kDalVG6T/QOcsKGybJLzBZhQyk0+O6QUPX+77fpUZnYpmrW0Fl ZDjHtYZPaKTY3hX6SUSgNrhPP/h3Py+ZP8PXW/2lLDm7MaJIL1wE6xDJoq8Dtum4eccJ 6stTT+9YyXlubkREHANx+zgRCjEI7nCIHmhFAKCJXDURrwe3f2vgjrblt0l5uqqY49Ga iopJOVcHDrPiE410lAv8JgcjVXgeAJPys7EO0gfpy2OjshoiuRJozdWcw2HBpXtIpCdr 7hTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718581673; x=1719186473; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rBMGU8kElKvNpmOp4KhKEzlmOPaS7Y8fFeVSnWuE73k=; b=tPYOVshHeyZESA6ZZo/Krt7SIfIYjco/qxWFtQlSjEnx5b1T53I2tyYQ4N9Qi6G18+ 1bv8/PCmtP3toZYyqdAqjlB9B4gcDQK2CwgSxOetBZM5vxg8+T/QzId9cjBcZzW5uAac jbHUHIhRpZfDXpjLPnsKBtMd+oHkVh6Uis6I+CVvOBUaA02byYk3RgW5mzWK4WJhzQ6E +vUGyF66oxwUQdRibyolM7knTAiMTBgeWQLsnLpTy1Jrzl0RVwzkT7rXRfgA+lnAhS8O I5r7bUO/GmMkYaQ5lVg6kcQWLe26GcxCd9pWCmyLhO2OvlvnZSSdpm8ct1+x/nYpuGiy nq9Q== X-Gm-Message-State: AOJu0YysDE3cHXJc99RxyLsSyHXBVi8BOTPRLHJcneImM52S4+Npqnj7 eakvxOwrRzfA5NZWRit81Z3FU9DpjBwW2m9mX/EfRG3RfJxYwX9Ycml6KUxjNSa1BvyaXbHP9Dc 1JpJHo6SNSOw3qLPOu6hmqwm7StY= X-Google-Smtp-Source: AGHT+IG7zEZHrQOUzt3AhrQnOTmLP+IynYTi0H/2ispnaqJ6Py3b2HQj6RhJjv397Ib1kz2C03Q25xp/O3ri0eHoyWI= X-Received: by 2002:a81:8845:0:b0:615:8c1:d7ec with SMTP id 00721157ae682-63224a0a4f1mr74551177b3.33.1718581672820; Sun, 16 Jun 2024 16:47:52 -0700 (PDT) In-Reply-To: <86cyogsob0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287346 Archived-At: --000000000000204a2b061b0a7a66 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I reported this issue because I once wanted to search the Emacs codebase for a string, such as "mouse-1: some tips" on mouse hover, but couldn't find it. Later I realized that it was automatically mapped to "mouse-2". Emacs seems to recognize some keywords (e.g. "mouse-1", "mouse-2") at the beginning of the string on help-echo. Anyway, now I know what happened there. Thanks. Best regards, Siyuan Chen On Mon, Jun 17, 2024 at 3:03=E2=80=AFAM Eli Zaretskii wrote: > tags 71598 notabug > thanks > > > From: Siyuan Chen > > Date: Mon, 17 Jun 2024 00:34:35 +0800 > > > > 1. Open Emacs with -Q > > > > 2. Copy the following code to *scratch* > > > > ``` > > (with-current-buffer (get-buffer-create "*TestBuffer*") > > (let ((inhibit-read-only t)) > > (insert (propertize "aaaa" > > 'mouse-face 'highlight > > 'follow-link t > > 'help-echo "mouse-2: some tips")) > > )) > > ``` > > > > 3. Put the cursor after the last parenthesis and M-x `eval-last-sexp` > > > > 4. M-x `switch-to-buffer` "*TestBuffer*" > > > > 5. Put the mouse over "aaaa". > > > > The Expected Behavior: shows "mouse-2: some tips". > > > > The Actual Behavior: shows "mouse-1: some tips". > > This is not a bug, but the intended behavior. It is triggered by the > follow-link text property and the default value of > mouse-1-click-follows-link. If you don't like this behavior, set > mouse-1-click-follows-link to nil. > --000000000000204a2b061b0a7a66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I reported this issue because I once wanted to search the Emacs codebase for a string, such as "mouse-1: some tips" on mouse hover, but c= ouldn't find it. Later I realized that it was automatically mapped to=20 "mouse-2". Emacs seems to recognize some keywords (e.g. "mou= se-1",=20 "mouse-2") at the beginning of the string on help-echo.

Anyway,=20 now=20 I know what happened there.

Thanks.
=

Best regards,
Siyuan Chen

= On Mon, Jun 17, 2024 at 3:03=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
tags 71598 notabug
thanks

> From: Siyuan Chen <chansey97@gmail.com>
> Date: Mon, 17 Jun 2024 00:34:35 +0800
>
> 1. Open Emacs with -Q
>
> 2. Copy the following code to *scratch*
>
> ```
> (with-current-buffer (get-buffer-create "*TestBuffer*")
>=C2=A0 =C2=A0(let ((inhibit-read-only t))
>=C2=A0 =C2=A0 =C2=A0(insert (propertize "aaaa"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0'mouse-face 'highlight
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0'follow-link t
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0'help-echo "mouse-2: some tips"))
>=C2=A0 =C2=A0 =C2=A0))
> ```
>
> 3. Put the cursor after the last parenthesis and M-x `eval-last-sexp`<= br> >
> 4. M-x `switch-to-buffer` "*TestBuffer*"
>
> 5. Put the mouse over "aaaa".
>
> The Expected Behavior: shows "mouse-2: some tips".
>
> The Actual Behavior: shows "mouse-1: some tips".

This is not a bug, but the intended behavior.=C2=A0 It is triggered by the<= br> follow-link text property and the default value of
mouse-1-click-follows-link.=C2=A0 If you don't like this behavior, set<= br> mouse-1-click-follows-link to nil.
--000000000000204a2b061b0a7a66--