Subject: bug#71598: Text property "help-echo" display "mouse-x" incorrectly

From: Siyuan Chen <[email-masked]>
Date: Mon, 17 Jun 2024 00:34:35 +0800

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