From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71598: Text property "help-echo" display "mouse-x" incorrectly Date: Sun, 16 Jun 2024 22:03:15 +0300 Message-ID: <86cyogsob0.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34894"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71598@debbugs.gnu.org To: Siyuan Chen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 16 21:04:20 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 1sIvAq-0008sd-L2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jun 2024 21:04:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIvAY-000440-BZ; Sun, 16 Jun 2024 15:04: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 1sIvAW-00043R-MT for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 15:04:00 -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 1sIvAW-0000Jp-Eb for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 15:04:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIvAX-0002eY-J8 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2024 15:04:01 -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 2024 19:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71598 X-GNU-PR-Package: emacs Original-Received: via spool by 71598-submit@debbugs.gnu.org id=B71598.171856460810118 (code B ref 71598); Sun, 16 Jun 2024 19:04:01 +0000 Original-Received: (at 71598) by debbugs.gnu.org; 16 Jun 2024 19:03:28 +0000 Original-Received: from localhost ([127.0.0.1]:51822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIv9z-0002d6-H7 for submit@debbugs.gnu.org; Sun, 16 Jun 2024 15:03:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIv9x-0002cn-Mx; Sun, 16 Jun 2024 15:03:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIv9q-0000GS-P7; Sun, 16 Jun 2024 15:03:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=C914FSOlNtxZ5OV/ty3l8HCdKgeYg6nS8RfBMChmCho=; b=XcqkgcuYgv2J MY2Knimh4DBnizVegNlBNFov21G3/fqbAl3cXjW4MMysltOQmTXetQsEulGH1P0YBi2qTkRneoOPE 62ChrRTc96dNQIY1saST5NykwOo0JrY2pgq8Z0Z+s9uxdUwtzumjqIUJC+VMflLwQy3poresjY+oi HE2Eiti4X1NMRXqxwieTWen4z8iHbkb9+2Rsgj8YkIcWZAF7EmTNOC7SCojgogrzQ79MVKErjzrLN os7DLWB2sbTZCiycHT9dIa+3dQoIZ3Oyv/zTpm9wfiRbUE+CXYuWAErPvqb5DPieH926/UvH1wIAu CsAkiIDd3TWzQxByUcdb1A==; In-Reply-To: (message from Siyuan Chen on Mon, 17 Jun 2024 00:34:35 +0800) 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:287343 Archived-At: 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.