GNU bug report logs - #71598
Text property "help-echo" display "mouse-x" incorrectly

Previous Next

Package: emacs;

Reported by: Siyuan Chen <chansey97 <at> gmail.com>

Date: Sun, 16 Jun 2024 18:09:01 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#71598: closed (Text property "help-echo" display "mouse-x"
 incorrectly)
Date: Sat, 22 Jun 2024 08:51:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 22 Jun 2024 11:50:47 +0300
with message-id <86msndicns.fsf <at> gnu.org>
and subject line Re: bug#71598: Text property "help-echo" display "mouse-x" incorrectly
has caused the debbugs.gnu.org bug report #71598,
regarding Text property "help-echo" display "mouse-x" incorrectly
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
71598: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71598
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Siyuan Chen <chansey97 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Text property "help-echo" display "mouse-x" incorrectly
Date: Mon, 17 Jun 2024 00:34:35 +0800
[Message part 3 (text/plain, inline)]
The reproduce steps:

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".

Emacs 29.3 on Windows 10.

Anyone can reproduce it? Thanks.

Best Regards,
Siyuan Chen
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Siyuan Chen <chansey97 <at> gmail.com>
Cc: 71598-done <at> debbugs.gnu.org
Subject: Re: bug#71598: Text property "help-echo" display "mouse-x" incorrectly
Date: Sat, 22 Jun 2024 11:50:47 +0300
> From: Siyuan Chen <chansey97 <at> gmail.com>
> Date: Mon, 17 Jun 2024 07:47:40 +0800
> Cc: 71598 <at> debbugs.gnu.org
> 
> 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.

OK, closing.


This bug report was last modified 1 year and 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.