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


Message #8 received at 71598 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Siyuan Chen <chansey97 <at> gmail.com>
Cc: 71598 <at> debbugs.gnu.org
Subject: Re: bug#71598: Text property "help-echo" display "mouse-x" incorrectly
Date: Sun, 16 Jun 2024 22:03:15 +0300
tags 71598 notabug
thanks

> From: Siyuan Chen <chansey97 <at> 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*")
>   (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.




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.