unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Siyuan Chen <chansey97@gmail.com>
Cc: 71598@debbugs.gnu.org
Subject: bug#71598: Text property "help-echo" display "mouse-x" incorrectly
Date: Sun, 16 Jun 2024 22:03:15 +0300	[thread overview]
Message-ID: <86cyogsob0.fsf@gnu.org> (raw)
In-Reply-To: <CAHWTsY=Q_CF5=eUb-4-PGtwEMkb-Mx2Rj4H9UNdUYtg-znsc2Q@mail.gmail.com> (message from Siyuan Chen on Mon, 17 Jun 2024 00:34:35 +0800)

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*")
>   (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.





  reply	other threads:[~2024-06-16 19:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-16 16:34 bug#71598: Text property "help-echo" display "mouse-x" incorrectly Siyuan Chen
2024-06-16 19:03 ` Eli Zaretskii [this message]
2024-06-16 23:47   ` Siyuan Chen
2024-06-22  8:50     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86cyogsob0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71598@debbugs.gnu.org \
    --cc=chansey97@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).